mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Sync latest development version of bundler & rubygems
This commit is contained in:
parent
2ab6b7a751
commit
53468cc111
Notes:
git
2021-03-08 13:47:56 +09:00
161 changed files with 2544 additions and 1016 deletions
|
@ -158,6 +158,22 @@ module Gem
|
|||
end
|
||||
end
|
||||
|
||||
if Gem::Requirement.new("~> 2.0").hash == Gem::Requirement.new("~> 2.0.0").hash
|
||||
class Requirement
|
||||
module CorrectHashForLambdaOperator
|
||||
def hash
|
||||
if requirements.any? {|r| r.first == "~>" }
|
||||
requirements.map {|r| r.first == "~>" ? [r[0], r[1].to_s] : r }.sort.hash
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
prepend CorrectHashForLambdaOperator
|
||||
end
|
||||
end
|
||||
|
||||
class Platform
|
||||
JAVA = Gem::Platform.new("java") unless defined?(JAVA)
|
||||
MSWIN = Gem::Platform.new("mswin32") unless defined?(MSWIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue