Module: Bundler::MatchMetadata
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Included In: | |
| Defined in: | lib/bundler/match_metadata.rb | 
Instance Attribute Summary
- #matches_current_metadata? ⇒ Boolean readonly
- #matches_current_ruby? ⇒ Boolean readonly
- #matches_current_rubygems? ⇒ Boolean readonly
Instance Method Summary
Instance Attribute Details
    #matches_current_metadata?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/bundler/match_metadata.rb', line 5
def matches_current_ruby? && matches_current_rubygems? end
    #matches_current_ruby?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/bundler/match_metadata.rb', line 9
def matches_current_ruby? @required_ruby_version.satisfied_by?(Gem.ruby_version) end
    #matches_current_rubygems?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/bundler/match_metadata.rb', line 13
def matches_current_rubygems? @required_rubygems_version.satisfied_by?(Gem.rubygems_version) end
Instance Method Details
#expanded_dependencies
[ GitHub ]# File 'lib/bundler/match_metadata.rb', line 17
def runtime_dependencies + [ ("Ruby", @required_ruby_version), ("RubyGems", @required_rubygems_version), ].compact end
#metadata_dependency(name, requirement)
[ GitHub ]# File 'lib/bundler/match_metadata.rb', line 24
def (name, requirement) return if requirement.nil? || requirement.none? Gem::Dependency.new("#{name}\0", requirement) end