mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Merge branch 'bugfix/gem-cd' of github.com:epitron/pry
This commit is contained in:
commit
0a5f38041c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class Pry
|
|||
Gem.source_index.find_name(name)
|
||||
end
|
||||
|
||||
first_spec = specs.sort_by{ |spec| Gem::Version.new(spec.version) }.first
|
||||
first_spec = specs.sort_by{ |spec| Gem::Version.new(spec.version) }.last
|
||||
|
||||
first_spec or raise CommandError, "Gem `#{name}` not found"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue