mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements.
* test/rubygems: Tests for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
61f3a787f6
commit
8eb3918581
13 changed files with 173 additions and 124 deletions
|
@ -134,7 +134,7 @@ command help for an example.
|
|||
|
||||
specs = dependency.matching_specs
|
||||
|
||||
selected = specs.sort_by { |s| s.version }.last # HACK: hunt last down
|
||||
selected = specs.max_by { |s| s.version }
|
||||
|
||||
return Gem::RemoteFetcher.fetcher.download_to_cache(dependency) unless
|
||||
selected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue