[DRE-commits] [ruby-underscore-rails] 05/05: Use packaged underscore.js

Balasankar C balasankarc-guest at moszumanska.debian.org
Wed Jul 1 14:34:55 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-underscore-rails.

commit 4c1fe34cffdd5370566efe2e3148ade166239402
Author: Balasankar C <balasankarc at autistici.org>
Date:   Wed Jul 1 19:52:50 2015 +0530

    Use packaged underscore.js
---
 debian/dirs                |  1 +
 debian/links               |  1 +
 debian/patches/assets-path | 10 ++++++++++
 debian/patches/series      |  1 +
 4 files changed, 13 insertions(+)

diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..cb32a34
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/share/ruby-underscore-rails/vendor/assets/javascripts
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..d90201c
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+/usr/share/javascript/underscore/underscore.js /usr/share/ruby-underscore-rails/vendor/assets/javascripts/underscore.js
diff --git a/debian/patches/assets-path b/debian/patches/assets-path
new file mode 100644
index 0000000..797bfec
--- /dev/null
+++ b/debian/patches/assets-path
@@ -0,0 +1,10 @@
+--- a/lib/underscore-rails.rb
++++ b/lib/underscore-rails.rb
+@@ -4,6 +4,7 @@
+   module Rails
+     if defined?(::Rails) and Gem::Requirement.new('>= 3.1').satisfied_by?(Gem::Version.new ::Rails.version)
+       class Rails::Engine < ::Rails::Engine
++        config.root = '/usr/share/ruby-underscore-rails'
+         # this class enables the asset pipeline
+       end
+     end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9751122
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+assets-path

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



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