123456789_123456789_123456789_123456789_123456789_

Module: Bundler::FetchMetadata

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/bundler/match_remote_metadata.rb

Instance Attribute Summary

Instance Attribute Details

#matches_current_ruby?Boolean (readonly)

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.

[ GitHub ]

  
# 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 (readonly)

[ GitHub ]

  
# 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