aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorKevin Logan <klogan@enova.com>2019-05-14 00:02:48 -0500
committergit <svn-admin@ruby-lang.org>2021-12-10 20:54:29 +0900
commiteb2d3c19fe70812f1f826eef225613baba3cc087 (patch)
tree48077433112ae88b33069b27ae79509489ff3426 /lib/rubygems.rb
parent0e60bc118b66d626d7e1f985dbd15cfba5e62715 (diff)
downloadruby-eb2d3c19fe70812f1f826eef225613baba3cc087.tar.gz
[rubygems/rubygems] Properly fetch Gem#latest_spec_for with multiple sources
https://github.com/rubygems/rubygems/commit/a93ec63df3
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 8e050ef3c7..f803e47628 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -854,7 +854,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
fetcher = Gem::SpecFetcher.fetcher
spec_tuples, = fetcher.spec_for_dependency dependency
- spec, = spec_tuples.first
+ spec, = spec_tuples.last
spec
end