# File bundler/rubygems_ext.rb, line 143 def encode_with(coder) to_yaml_properties.each do |ivar| coder[ivar.to_s.sub(/^@/, "")] = instance_variable_get(ivar) end end
Backport of performance enhancement added to RubyGems 1.4
# File bundler/rubygems_ext.rb, line 163 def matches_spec?(spec) # name can be a Regexp, so use === return false unless name === spec.name return true if requirement.none? requirement.satisfied_by?(spec.version) end
# File bundler/shared_helpers.rb, line 17 def requirement version_requirements end