[DRE-commits] [ruby-uuid] 06/06: fix version lookup
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Oct 21 18:17:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-uuid.
commit 85bf742b87045ed1508061fe2ec0722c6086b669
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Oct 21 23:45:16 2014 +0530
fix version lookup
---
debian/patches/series | 1 +
debian/patches/version-fix.patch | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..074c8b4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+version-fix.patch
diff --git a/debian/patches/version-fix.patch b/debian/patches/version-fix.patch
new file mode 100644
index 0000000..ec82c86
--- /dev/null
+++ b/debian/patches/version-fix.patch
@@ -0,0 +1,13 @@
+Index: ruby-uuid-2.3.7/lib/uuid.rb
+===================================================================
+--- ruby-uuid-2.3.7.orig/lib/uuid.rb
++++ ruby-uuid-2.3.7/lib/uuid.rb
+@@ -63,7 +63,7 @@ class UUID
+
+ # Version number.
+ module Version
+- version = Gem::Specification.load(File.expand_path("../uuid.gemspec", File.dirname(__FILE__))).version.to_s.split(".").map { |i| i.to_i }
++ version = "Dir[../../../share/rubygems-integration/all/specifications/uuid*.gemspec].to_s.match /.*-(.*)\.gemspec/"
+ MAJOR = version[0]
+ MINOR = version[1]
+ PATCH = version[2]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-uuid.git
More information about the Pkg-ruby-extras-commits
mailing list