[DRE-commits] [ruby-devise] 42/43: setup as rails engine

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Apr 21 13:11:14 UTC 2015


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

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

commit ac280b5cd17791d564998c23302989a08c310c97
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Apr 15 19:18:46 2015 +0530

    setup as rails engine
---
 debian/install                |  1 +
 debian/patches/engine-root.rb | 12 ++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 14 insertions(+)

diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..d90c802
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+app usr/share/ruby-devise
diff --git a/debian/patches/engine-root.rb b/debian/patches/engine-root.rb
new file mode 100644
index 0000000..29eb8b6
--- /dev/null
+++ b/debian/patches/engine-root.rb
@@ -0,0 +1,12 @@
+Index: ruby-devise/lib/devise/rails.rb
+===================================================================
+--- ruby-devise.orig/lib/devise/rails.rb
++++ ruby-devise/lib/devise/rails.rb
+@@ -3,6 +3,7 @@ require 'devise/rails/warden_compat'
+ 
+ module Devise
+   class Engine < ::Rails::Engine
++    config.root = '/usr/share/ruby-devise'
+     config.devise = Devise
+ 
+     # Initialize Warden and copy its configurations.
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..b06d6c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+engine-root.rb

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



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