Module: Gem::Requirement::CorrectHashForLambdaOperator
- Included in:
- Gem::Requirement
- Defined in:
- lib/bundler/rubygems_ext.rb
Instance Method Summary collapse
Instance Method Details
#hash ⇒ Object
285 286 287 288 289 290 291 |
# File 'lib/bundler/rubygems_ext.rb', line 285 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 |