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:
parent
fa9f31c0ba
commit
abf7e1fe32
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue