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 = meth_name_from_binding.call(target)
|
||||||
meth_name = "N/A" if !meth_name
|
meth_name = "N/A" if !meth_name
|
||||||
|
|
||||||
# FIX ME!!! this line is screwed
|
if file =~ /(\(.*\))|<.*>/ || file == ""
|
||||||
# check_for_dynamically_defined_method.call()
|
|
||||||
if file =~ /(\(.*\))|<.*>/
|
|
||||||
output.puts "Cannot find local context. Did you use `binding.pry` ?"
|
output.puts "Cannot find local context. Did you use `binding.pry` ?"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
@ -463,7 +461,7 @@ e.g: eval-file -c self "hello.rb"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
target.eval("#{obj}.pry")
|
target.eval("#{obj}").pry
|
||||||
end
|
end
|
||||||
|
|
||||||
process_comment_markup = lambda do |comment, code_type|
|
process_comment_markup = lambda do |comment, code_type|
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Pry
|
||||||
file = target.eval('__FILE__')
|
file = target.eval('__FILE__')
|
||||||
|
|
||||||
# /unknown/ for rbx
|
# /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
|
Pry.run_command "whereami", :output => out, :show_output => true, :context => target, :commands => Pry::Commands
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class Pry
|
class Pry
|
||||||
VERSION = "0.7.7.1"
|
VERSION = "0.7.7.2"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue