fix version lookup

parent b03da88b
version-fix.patch
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]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment