diff options
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | handlebars-source.gemspec | 21 | ||||
-rw-r--r-- | lib/handlebars/source.rb | 11 |
3 files changed, 33 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index 56042f4..0b338e8 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -[](http://travis-ci.org/wycats/handlebars.js) +[](https://travis-ci.org/wycats/handlebars.js) Handlebars.js ============= diff --git a/handlebars-source.gemspec b/handlebars-source.gemspec new file mode 100644 index 0000000..514e2b1 --- /dev/null +++ b/handlebars-source.gemspec @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +require 'json' + +package = JSON.parse(File.read('package.json')) + +Gem::Specification.new do |gem| + gem.name = "handlebars-source" + gem.authors = ["Yehuda Katz"] + gem.email = ["wycats@gmail.com"] + gem.date = Time.now.strftime("%Y-%m-%d") + gem.description = %q{Handlebars.js source code wrapper for (pre)compilation gems.} + gem.summary = %q{Handlebars.js source code wrapper} + gem.homepage = "https://github.com/wycats/handlebars.js/" + gem.version = package["version"] + + gem.files = [ + 'dist/handlebars.js', + 'dist/handlebars.runtime.js', + 'lib/handlebars/source.rb' + ] +end diff --git a/lib/handlebars/source.rb b/lib/handlebars/source.rb new file mode 100644 index 0000000..f576885 --- /dev/null +++ b/lib/handlebars/source.rb @@ -0,0 +1,11 @@ +module Handlebars + module Source + def self.bundled_path + File.expand_path("../../../dist/handlebars.js", __FILE__) + end + + def self.runtime_bundled_path + File.expand_path("../../../dist/handlebars.runtime.js", __FILE__) + end + end +end |