mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
version 0.7.7.2, fixed jruby support and improved cd
command so it
can operate on arbitrary expressions
This commit is contained in:
parent
3837b1cf2e
commit
0fa6fdce5e
3 changed files with 4 additions and 6 deletions
|
@ -176,9 +176,7 @@ class Pry
|
|||
meth_name = meth_name_from_binding.call(target)
|
||||
meth_name = "N/A" if !meth_name
|
||||
|
||||
# FIX ME!!! this line is screwed
|
||||
# check_for_dynamically_defined_method.call()
|
||||
if file =~ /(\(.*\))|<.*>/
|
||||
if file =~ /(\(.*\))|<.*>/ || file == ""
|
||||
output.puts "Cannot find local context. Did you use `binding.pry` ?"
|
||||
next
|
||||
end
|
||||
|
@ -463,7 +461,7 @@ e.g: eval-file -c self "hello.rb"
|
|||
next
|
||||
end
|
||||
|
||||
target.eval("#{obj}.pry")
|
||||
target.eval("#{obj}").pry
|
||||
end
|
||||
|
||||
process_comment_markup = lambda do |comment, code_type|
|
||||
|
|
|
@ -11,7 +11,7 @@ class Pry
|
|||
file = target.eval('__FILE__')
|
||||
|
||||
# /unknown/ for rbx
|
||||
if file !~ /(\(.*\))|<.*>/ && file !~ /__unknown__/
|
||||
if file !~ /(\(.*\))|<.*>/ && file !~ /__unknown__/ && file != ""
|
||||
Pry.run_command "whereami", :output => out, :show_output => true, :context => target, :commands => Pry::Commands
|
||||
end
|
||||
end,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Pry
|
||||
VERSION = "0.7.7.1"
|
||||
VERSION = "0.7.7.2"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue