[DRE-commits] [ruby-jquery-datatables-rails] 05/05: Added engine-root.patch and installs app files.

Andrew Lee ajqlee at moszumanska.debian.org
Mon Aug 31 08:50:06 UTC 2015


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

ajqlee pushed a commit to branch master
in repository ruby-jquery-datatables-rails.

commit c20337a59a6f6d0e0e0c0f97a690516efdabb046
Author: Andrew Lee (李健秋) <andrew.lee at collabora.co.uk>
Date:   Mon Aug 31 16:49:44 2015 +0800

    Added engine-root.patch and installs app files.
---
 debian/ruby-jquery-datatables-rails.install |  1 +
 patches/engine-root.patch                   | 10 ++++++++++
 patches/series                              |  1 +
 3 files changed, 12 insertions(+)

diff --git a/debian/ruby-jquery-datatables-rails.install b/debian/ruby-jquery-datatables-rails.install
new file mode 100644
index 0000000..e01bf7d
--- /dev/null
+++ b/debian/ruby-jquery-datatables-rails.install
@@ -0,0 +1 @@
+app usr/share/ruby-jquery-datatables-rails/
diff --git a/patches/engine-root.patch b/patches/engine-root.patch
new file mode 100644
index 0000000..da72f2f
--- /dev/null
+++ b/patches/engine-root.patch
@@ -0,0 +1,10 @@
+--- ruby-jquery-datatables-rails-1.12.2.orig/lib/jquery/datatables/rails/engine.rb
++++ ruby-jquery-datatables-rails-1.12.2/lib/jquery/datatables/rails/engine.rb
+@@ -4,6 +4,7 @@ module Jquery
+     if defined?(::Rails) and Gem::Requirement.new('>= 3.1').satisfied_by?(Gem::Version.new ::Rails.version)
+       module Rails
+         class Engine < ::Rails::Engine
++	  config.root = '/usr/share/ruby-jquery-datatables-rails'
+         end
+       end
+     end
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..d77d941
--- /dev/null
+++ b/patches/series
@@ -0,0 +1 @@
+engine-root.patch

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



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