diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-09-05 09:15:30 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-09-05 14:37:12 +0900 |
commit | 3eca1e438db6fabaa7cd5e5a7120da147ac0ec26 (patch) | |
tree | 597be042af7d0052616ba41bb9d0b8d8ceedd094 /lib/bundler/match_remote_metadata.rb | |
parent | 3767c6a90d8970f9b39e9ed116a7b9bbac3f9f26 (diff) | |
download | ruby-3eca1e438db6fabaa7cd5e5a7120da147ac0ec26.tar.gz |
Merge https://github.com/rubygems/rubygems/commit/16c3535413afebcdbab7582c6017c27b5da8a8dc
Diffstat (limited to 'lib/bundler/match_remote_metadata.rb')
-rw-r--r-- | lib/bundler/match_remote_metadata.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/match_remote_metadata.rb b/lib/bundler/match_remote_metadata.rb index e1b2f4d0e2..5e46d52441 100644 --- a/lib/bundler/match_remote_metadata.rb +++ b/lib/bundler/match_remote_metadata.rb @@ -2,8 +2,11 @@ module Bundler module FetchMetadata + # A fallback is included because the original version of the specification + # API didn't include that field, so some marshalled specs in the index have it + # set to +nil+. def matches_current_ruby? - @required_ruby_version ||= _remote_specification.required_ruby_version + @required_ruby_version ||= _remote_specification.required_ruby_version || Gem::Requirement.default super end |