mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb.rb: remove double exclamation marks. a patch from Diego
Viola. [ruby-core:30589] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b77773f44d
commit
7a8a264f1d
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jun 19 11:11:37 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb.rb: remove double exclamation marks. a patch from Diego
|
||||||
|
Viola. [ruby-core:30589]
|
||||||
|
|
||||||
Sat Jun 19 03:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
Sat Jun 19 03:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
* ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
|
* ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
|
||||||
|
|
|
@ -85,9 +85,9 @@ module IRB
|
||||||
|
|
||||||
def IRB.irb_abort(irb, exception = Abort)
|
def IRB.irb_abort(irb, exception = Abort)
|
||||||
if defined? Thread
|
if defined? Thread
|
||||||
irb.context.thread.raise exception, "abort then interrupt!!"
|
irb.context.thread.raise exception, "abort then interrupt!"
|
||||||
else
|
else
|
||||||
raise exception, "abort then interrupt!!"
|
raise exception, "abort then interrupt!"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ module IRB
|
||||||
printf "... %d levels...\n", levels if levels > 0
|
printf "... %d levels...\n", levels if levels > 0
|
||||||
print lasts.join("\n")
|
print lasts.join("\n")
|
||||||
end
|
end
|
||||||
print "Maybe IRB bug!!\n" if irb_bug
|
print "Maybe IRB bug!\n" if irb_bug
|
||||||
end
|
end
|
||||||
if $SAFE > 2
|
if $SAFE > 2
|
||||||
abort "Error: irb does not work for $SAFE level higher than 2"
|
abort "Error: irb does not work for $SAFE level higher than 2"
|
||||||
|
@ -245,7 +245,7 @@ module IRB
|
||||||
|
|
||||||
def signal_handle
|
def signal_handle
|
||||||
unless @context.ignore_sigint?
|
unless @context.ignore_sigint?
|
||||||
print "\nabort!!\n" if @context.verbose?
|
print "\nabort!\n" if @context.verbose?
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue