[DRE-commits] [rerun] 02/11: add patch to read version number from the right place
Antonio Terceiro
terceiro at moszumanska.debian.org
Sat Aug 8 16:18:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository rerun.
commit bfc0531606f0dc88e0ee9dec8bba38dde484b0a1
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sat Aug 8 10:26:30 2015 -0300
add patch to read version number from the right place
---
...Read-version-number-from-installed-gemspec.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 22 insertions(+)
diff --git a/debian/patches/0001-Read-version-number-from-installed-gemspec.patch b/debian/patches/0001-Read-version-number-from-installed-gemspec.patch
new file mode 100644
index 0000000..9947c10
--- /dev/null
+++ b/debian/patches/0001-Read-version-number-from-installed-gemspec.patch
@@ -0,0 +1,21 @@
+From: Antonio Terceiro <terceiro at softwarelivre.org>
+Date: Sat, 8 Aug 2015 10:26:05 -0300
+Subject: Read version number from installed gemspec
+
+---
+ lib/rerun/options.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/rerun/options.rb b/lib/rerun/options.rb
+index 265ed12..a5b1aaf 100644
+--- a/lib/rerun/options.rb
++++ b/lib/rerun/options.rb
+@@ -4,7 +4,7 @@ require 'rerun/watcher'
+
+ libdir = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"
+
+-$spec = Gem::Specification.load(File.join(libdir, "..", "rerun.gemspec"))
++$spec = Gem::Specification.load(Dir.glob("/usr/share/rubygems-integration/all/specifications/rerun-*.gemspec").first)
+
+ module Rerun
+ class Options
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3249890
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Read-version-number-from-installed-gemspec.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rerun.git
More information about the Pkg-ruby-extras-commits
mailing list