[DRE-commits] [ruby-handlebars-assets] 01/01: correct paths for engine root

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed May 7 22:17:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-handlebars-assets.

commit 76082c625886196c911d6f931fd50bb1038f8789
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed May 7 23:28:55 2014 +0530

    correct paths for engine root
---
 debian/patches/engine-root.patch | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/debian/patches/engine-root.patch b/debian/patches/engine-root.patch
index b7a262b..c982ef2 100644
--- a/debian/patches/engine-root.patch
+++ b/debian/patches/engine-root.patch
@@ -3,14 +3,12 @@ Description: change path for assets
 Author: Pirate Praveen <praveen at debian.org>
 Last-Updated: 2014-05-04
 
---- a/lib/handlebars_assets.rb
-+++ b/lib/handlebars_assets.rb
-@@ -1,7 +1,7 @@
- require "handlebars_assets/version"
- 
+--- a/lib/handlebars_assets/engine.rb
++++ b/lib/handlebars_assets/engine.rb
+@@ -1,5 +1,6 @@
  module HandlebarsAssets
--  PATH = File.expand_path("../../vendor/assets/javascripts", __FILE__)
-+  PATH = File.expand_path("/usr/share/ruby-handlebars-assets/vendor/assets/javascripts", __FILE__)
- 
-   def self.path
-     PATH
+   class Engine < ::Rails::Engine
++    config.root = '/usr/share/ruby-handlebars-assets'
+     initializer "sprockets.handlebars", :after => "sprockets.environment", :group => :all do |app|
+       next unless app.assets
+       app.assets.register_engine('.hbs', TiltHandlebars)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-handlebars-assets.git



More information about the Pkg-ruby-extras-commits mailing list