- Since rubygems 2.5.0 the default version in the gem bin stub

changed from '>= 0' to '>= 0.a'. This was done to allow
  prerelease versions. Our patching script didn't take the '.a'
  into account and generated version fields like '= 0.10.1.a'
  instead of the expected '= 0.10.1'. This fix accounts for the
  '.a'.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=91
This commit is contained in:
Marcus Rückert 2016-03-01 01:05:13 +00:00 committed by Git OBS Bridge
parent d28464f23c
commit 75d1c0de7c
2 changed files with 11 additions and 1 deletions

View File

@ -206,7 +206,7 @@ if options.symlinkbinaries && File.exists?(bindir)
ruby_versioned = "#{unversioned}#{options.rubysuffix}"
gem_versioned = "#{unversioned}-#{spec.version}"
File.rename(default_path, full_versioned)
patchfile(full_versioned, />= 0/, "= #{options.gemversion}")
patchfile(full_versioned, />= 0(\.a)?/, "= #{options.gemversion}")
# unversioned
[unversioned, ruby_versioned, gem_versioned].each do |linkname|
full_path = File.join(br_ua_dir, linkname)

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Mar 1 01:01:56 UTC 2016 - mrueckert@suse.de
- Since rubygems 2.5.0 the default version in the gem bin stub
changed from '>= 0' to '>= 0.a'. This was done to allow
prerelease versions. Our patching script didn't take the '.a'
into account and generated version fields like '= 0.10.1.a'
instead of the expected '= 0.10.1'. This fix accounts for the
'.a'.
-------------------------------------------------------------------
Thu Jun 11 14:33:37 UTC 2015 - lnussel@suse.de