Fix failing specs for 1.8 (#233).

This commit is contained in:
robgleeson 2011-09-02 10:58:22 +01:00
parent 9aff1f47dc
commit e97652fc5b
1 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class Pry
# The default prompt; includes the target and nesting level
DEFAULT_PROMPT = [
proc { |target_self, nest_level|
proc { |target_self, nest_level, _|
if nest_level == 0
"pry(#{Pry.view_clip(target_self)})> "
else
@ -51,7 +51,7 @@ class Pry
end
},
proc { |target_self, nest_level|
proc { |target_self, nest_level, _|
if nest_level == 0
"pry(#{Pry.view_clip(target_self)})* "
else
@ -82,8 +82,8 @@ class Pry
SIMPLE_PROMPT = [proc { ">> " }, proc { " | " }]
SHELL_PROMPT = [
proc { |target_self, _| "pry #{Pry.view_clip(target_self)}:#{Dir.pwd} $ " },
proc { |target_self, _| "pry #{Pry.view_clip(target_self)}:#{Dir.pwd} * " }
proc { |target_self, _, _| "pry #{Pry.view_clip(target_self)}:#{Dir.pwd} $ " },
proc { |target_self, _, _| "pry #{Pry.view_clip(target_self)}:#{Dir.pwd} * " }
]
# As a REPL, we often want to catch any unexpected exceptions that may have