mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
version 0.5.9, improved error messages for show-method et al, on 1.8.7. Improved Pry.run_command error message
This commit is contained in:
parent
d65a13ae30
commit
c80f347861
3 changed files with 5 additions and 5 deletions
|
@ -345,9 +345,9 @@ e.g show-doc hello_method
|
|||
next
|
||||
end
|
||||
|
||||
doc = meth.comment
|
||||
file, line = meth.source_location
|
||||
check_for_dynamically_defined_method.call(file)
|
||||
doc = meth.comment
|
||||
|
||||
output.puts "--\nFrom #{file} @ line ~#{line}:\n--"
|
||||
output.puts doc
|
||||
|
@ -407,9 +407,9 @@ e.g: show-method hello_method
|
|||
next
|
||||
end
|
||||
|
||||
code = meth.source
|
||||
file, line = meth.source_location
|
||||
check_for_dynamically_defined_method.call(file)
|
||||
code = meth.source
|
||||
|
||||
output.puts "--\nFrom #{file} @ line #{line}:\n--"
|
||||
output.puts code
|
||||
|
@ -425,9 +425,9 @@ e.g: show-method hello_method
|
|||
if commands[command_name]
|
||||
meth = commands[command_name][:action]
|
||||
|
||||
code = meth.source
|
||||
file, line = meth.source_location
|
||||
check_for_dynamically_defined_method.call(file)
|
||||
code = meth.source
|
||||
|
||||
output.puts "--\nFrom #{file} @ line #{line}:\n--"
|
||||
output.puts code
|
||||
|
|
|
@ -133,7 +133,7 @@ class Pry
|
|||
action = cmd[:action]
|
||||
commands.instance_exec(*Shellwords.shellwords(arg_string), &action)
|
||||
else
|
||||
raise "No such command: #{name}"
|
||||
raise "No such Pry command: #{name}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Pry
|
||||
VERSION = "0.5.8"
|
||||
VERSION = "0.5.9"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue