mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix gem-list to work against new API.
This commit is contained in:
parent
a86ddc550a
commit
dce86f8b44
1 changed files with 2 additions and 4 deletions
|
@ -45,12 +45,10 @@ class Pry
|
|||
|
||||
gems.each do |gemname, specs|
|
||||
versions = specs.map(&:version).sort.reverse.map(&:to_s)
|
||||
versions = ["<bright_green>#{versions.first}</bright_green>"] +
|
||||
versions[1..-1].map{|v| "<green>#{v}</green>" }
|
||||
versions = ["#{bright_green versions.first}"] + versions[1..-1].map{|v| "#{green v}" }
|
||||
|
||||
gemname = highlight(gemname, query) if query
|
||||
result = "<white>#{gemname} <grey>(#{versions.join ', '})</grey>"
|
||||
output.puts colorize(result)
|
||||
output.puts "#{white gemname} (#{grey(versions.join ', ')})"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue