Package: ruby-entypo-rails / 3.0.0-1

engine-root.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Use /usr/share/$pkg as engine root
 This patch is Debian-specific
Author: Pirate Praveen <praveen@debian.org>

--- a/lib/entypo-rails.rb
+++ b/lib/entypo-rails.rb
@@ -23,6 +23,7 @@
   # Dummy engine so that lib/assets/stylesheets and vendor/assets/fonts
   # are picked up by Rails asset pipeline.
   class Engine < ::Rails::Engine
+    config.root = '/usr/share/ruby-entypo-rails'
     initializer :assets do |config|
       Rails.application.config.assets.precompile += %w{ entypo.css } if Entypo.charmap?
     end
--- a/lib/entypo/charmap.rb
+++ b/lib/entypo/charmap.rb
@@ -16,7 +16,7 @@
     #
     # Returns Charmap instance.
     def self.instance
-      @@instance ||= self.new File.expand_path('../../../app/assets/stylesheets/entypo.scss.erb', __FILE__)
+      @@instance ||= self.new File.expand_path('/usr/share/ruby-entypo-rails/app/assets/stylesheets/entypo.css.scss.erb', __FILE__)
     end
 
     # Public: Returns Array of icons.