Permalink
Browse files

Added handlebars-source gemspec for sharing with 3rd party precompila…

…tion libs
  • Loading branch information...
1 parent c95b3d6 commit 519156138dd03fb99125ce8ec9e3b34c3934c8f1 @machty machty committed Feb 20, 2013
Showing with 32 additions and 0 deletions.
  1. +21 −0 handlebars-source.gemspec
  2. +11 −0 lib/handlebars/source.rb
View
@@ -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
View
@@ -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

0 comments on commit 5191561

Please sign in to comment.