[DRE-commits] [ruby-devise-two-factor] 02/02: use unshift for lib
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Jun 19 10:31:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-devise-two-factor.
commit 72e22af602ddfb30ca40a80082fbc347e37a8fe9
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sun Jun 19 16:01:02 2016 +0530
use unshift for lib
---
debian/changelog | 4 +++-
debian/patches/series | 1 +
debian/patches/unshift-lib.patch | 10 ++++++++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 6862220..9f5e048 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
ruby-devise-two-factor (3.0.0-2) UNRELEASED; urgency=medium
- * Check gemspec dependecies during build
+ * Check gemspec dependecies during build
+ * Use unshift for adding lib to LOAD_PATH (fixes gemspec version when older
+ version is installed during build)
-- Pirate Praveen <praveen at debian.org> Sun, 19 Jun 2016 15:45:36 +0530
diff --git a/debian/patches/series b/debian/patches/series
index f958273..b47c528 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
simplecov
+unshift-lib.patch
diff --git a/debian/patches/unshift-lib.patch b/debian/patches/unshift-lib.patch
new file mode 100644
index 0000000..ea148b3
--- /dev/null
+++ b/debian/patches/unshift-lib.patch
@@ -0,0 +1,10 @@
+Index: ruby-devise-two-factor/devise-two-factor.gemspec
+===================================================================
+--- ruby-devise-two-factor.orig/devise-two-factor.gemspec
++++ ruby-devise-two-factor/devise-two-factor.gemspec
+@@ -1,4 +1,4 @@
+-$:.push File.expand_path('../lib', __FILE__)
++$:.unshift File.expand_path('../lib', __FILE__)
+ require 'devise_two_factor/version'
+
+ Gem::Specification.new do |s|
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-devise-two-factor.git
More information about the Pkg-ruby-extras-commits
mailing list