1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Don't mangle plugin names in help

This commit is contained in:
Conrad Irwin 2012-02-22 23:04:28 -08:00
parent fa9f31c0ba
commit abf7e1fe32

View file

@ -139,9 +139,9 @@ class Pry
case Pry::Method(block).source_file
when %r{/pry/.*_commands/(.*).rb}
$1.capitalize.gsub(/_/, " ")
when %r{pry-([\w_]+)-([\d\.]+)}
when %r{(pry-[\w_]+)-([\d\.]+)}
name, version = $1, $2
"Plugin: #{name.to_s.capitalize.gsub(/_/, " ")} v#{version.to_s}"
"#{name.to_s} (v#{version.to_s})"
when /pryrc/
"~/.pryrc"
else