mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 02:23:59 +02:00
merge revision(s) 57412: [Backport #13308]
Update Rubygems 2.6.10 *2ee5bf9fd3
*be510dd409
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
94e70ce869
commit
b85d2e8a5a
23 changed files with 236 additions and 57 deletions
|
@ -39,7 +39,12 @@ class Gem::StubSpecification < Gem::BasicSpecification
|
|||
def initialize data, extensions
|
||||
parts = data[PREFIX.length..-1].split(" ".freeze, 4)
|
||||
@name = parts[0].freeze
|
||||
@version = Gem::Version.new parts[1]
|
||||
@version = if Gem::Version.correct?(parts[1])
|
||||
Gem::Version.new(parts[1])
|
||||
else
|
||||
Gem::Version.new(0)
|
||||
end
|
||||
|
||||
@platform = Gem::Platform.new parts[2]
|
||||
@extensions = extensions
|
||||
@full_name = if platform == Gem::Platform::RUBY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue