Module: Bundler::FetchMetadata
- Included in:
- MatchRemoteMetadata
- Defined in:
- lib/bundler/match_remote_metadata.rb
Instance Method Summary collapse
-
#matches_current_ruby? ⇒ Boolean
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
. - #matches_current_rubygems? ⇒ Boolean
Instance Method Details
#matches_current_ruby? ⇒ Boolean
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
.
8 9 10 11 12 |
# File 'lib/bundler/match_remote_metadata.rb', line 8 def matches_current_ruby? @required_ruby_version ||= _remote_specification.required_ruby_version || Gem::Requirement.default super end |
#matches_current_rubygems? ⇒ Boolean
14 15 16 17 18 19 20 21 |
# File 'lib/bundler/match_remote_metadata.rb', line 14 def matches_current_rubygems? # 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+. @required_rubygems_version ||= _remote_specification.required_rubygems_version || Gem::Requirement.default super end |