mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/rubygems: Update to RubyGems 2.1.3
Fixed installing platform gems Restored concurrent requires Fixed installing gems with extensions with --install-dir Fixed `gem fetch -v` to install the latest version Fixed installing gems with "./" in their files entries * test/rubygems/test_gem_package.rb: Tests for the above. * NEWS: Updated for RubyGems 2.1.3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
85995e88d4
commit
1daa0b113d
110 changed files with 3493 additions and 4942 deletions
|
@ -203,8 +203,6 @@ class Gem::Dependency
|
|||
requirement.satisfied_by? version
|
||||
end
|
||||
|
||||
alias === =~
|
||||
|
||||
# DOC: this method needs either documented or :nodoc'd
|
||||
|
||||
def match? obj, version=nil
|
||||
|
@ -252,10 +250,10 @@ class Gem::Dependency
|
|||
# DOC: this method needs either documented or :nodoc'd
|
||||
|
||||
def matching_specs platform_only = false
|
||||
matches = Gem::Specification.stubs.find_all { |spec|
|
||||
matches = Gem::Specification.find_all { |spec|
|
||||
self.name === spec.name and # TODO: == instead of ===
|
||||
requirement.satisfied_by? spec.version
|
||||
}.map(&:to_spec)
|
||||
}
|
||||
|
||||
if platform_only
|
||||
matches.reject! { |spec|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue