Accepting request 367890 from devel:languages:ruby

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/367890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ruby-common?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2016-03-11 08:46:58 +00:00 committed by Git OBS Bridge
commit 4ac45903a3
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