diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-07 19:00:21 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-07 19:00:21 +0000 |
commit | 718b4e9ea018afd023a9e82251954d10814c0244 (patch) | |
tree | 960edfb9a75e23469822711a5e6016993fe6326b | |
parent | 916f41d7175e67d2c9bfa022dd4cc94094c94960 (diff) | |
download | ruby-718b4e9ea018afd023a9e82251954d10814c0244.tar.gz |
* lib/irb/workspace.rb, lib/irb/ext/math-mode.rb,
lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb,
lib/irb/lc/help-message, lib/irb/lc/ja/error.rb,
lib/shell/command-processor.rb, lib/shell/error.rb,
lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/irb/ext/math-mode.rb | 2 | ||||
-rw-r--r-- | lib/irb/ext/multi-irb.rb | 4 | ||||
-rw-r--r-- | lib/irb/lc/error.rb | 8 | ||||
-rw-r--r-- | lib/irb/lc/help-message | 32 | ||||
-rw-r--r-- | lib/irb/lc/ja/error.rb | 8 | ||||
-rw-r--r-- | lib/irb/workspace.rb | 2 | ||||
-rw-r--r-- | lib/shell/command-processor.rb | 2 | ||||
-rw-r--r-- | lib/shell/error.rb | 4 | ||||
-rw-r--r-- | lib/shell/filter.rb | 8 |
10 files changed, 43 insertions, 35 deletions
@@ -1,3 +1,11 @@ +Sat Feb 8 03:57:32 2003 Akinori MUSHA <knu@iDaemons.org> + + * lib/irb/workspace.rb, lib/irb/ext/math-mode.rb, + lib/irb/ext/multi-irb.rb, lib/irb/lc/error.rb, + lib/irb/lc/help-message, lib/irb/lc/ja/error.rb, + lib/shell/command-processor.rb, lib/shell/error.rb, + lib/shell/filter.rb: Fix typos and grammos. [approved by: keiju] + Sat Feb 8 03:34:28 2003 Akinori MUSHA <knu@iDaemons.org> * intern.h (HAVE_RB_DEFINE_ALLOC_FUNC): New boolean macro to make diff --git a/lib/irb/ext/math-mode.rb b/lib/irb/ext/math-mode.rb index a98664448e..5e268bb3e5 100644 --- a/lib/irb/ext/math-mode.rb +++ b/lib/irb/ext/math-mode.rb @@ -18,7 +18,7 @@ module IRB def math_mode=(opt) if @math_mode == true && opt == false - IRB.fail CantRetuenNormalMode + IRB.fail CantReturnToNormalMode return end diff --git a/lib/irb/ext/multi-irb.rb b/lib/irb/ext/multi-irb.rb index 86569ae333..e815889383 100644 --- a/lib/irb/ext/multi-irb.rb +++ b/lib/irb/ext/multi-irb.rb @@ -9,7 +9,7 @@ # # # -IRB.fail CanNotGoMultiIrbMode unless defined?(Thread) +IRB.fail CantShiftToMultiIrbMode unless defined?(Thread) require "thread" module IRB @@ -54,7 +54,7 @@ module IRB def switch(key) th, irb = search(key) IRB.fail IrbAlreadyDead unless th.alive? - IRB.fail IrbSwitchToCurrentThread if th == Thread.current + IRB.fail IrbSwitchedToCurrentThread if th == Thread.current @current_job = irb th.run Thread.stop diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb index a80da7567f..27d151f98f 100644 --- a/lib/irb/lc/error.rb +++ b/lib/irb/lc/error.rb @@ -17,13 +17,13 @@ module IRB extend Exception2MessageMapper def_exception :UnrecognizedSwitch, "Unrecognized switch: %s" def_exception :NotImplementError, "Need to define `%s'" - def_exception :CantRetuenNormalMode, "Can't return normal mode." + def_exception :CantReturnToNormalMode, "Can't return to normal mode." def_exception :IllegalParameter, "Illegal parameter(%s)." def_exception :IrbAlreadyDead, "Irb is already dead." - def_exception :IrbSwitchToCurrentThread, "Change to current thread." + def_exception :IrbSwitchedToCurrentThread, "Switched to current thread." def_exception :NoSuchJob, "No such job(%s)." - def_exception :CanNotGoMultiIrbMode, "Can't go multi irb mode." - def_exception :CanNotChangeBinding, "Can't change binding to (%s)." + def_exception :CantShiftToMultiIrbMode, "Can't shift to multi irb mode." + def_exception :CantChangeBinding, "Can't change binding to (%s)." def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)." end diff --git a/lib/irb/lc/help-message b/lib/irb/lc/help-message index 29c7c0fe4a..42e861a343 100644 --- a/lib/irb/lc/help-message +++ b/lib/irb/lc/help-message @@ -10,25 +10,25 @@ # # Usage: irb.rb [options] [programfile] [arguments] - -f suppress read ~/.irbrc - -m bc mode (load mathn, fraction or matrix are available) - -d set $DEBUG to true (same as `ruby -d') - -r load-module same as `ruby -r' - --inspect uses `inspect' for output (the default except bc mode) - --noinspect doesn't uses inspect for output - --readline uses Readline extension module - --noreadline doesn't use Readline extension module + -f Suppress read of ~/.irbrc + -m Bc mode (load mathn, fraction or matrix are available) + -d Set $DEBUG to true (same as `ruby -d') + -r load-module Same as `ruby -r' + --inspect Use `inspect' for output (default except for bc mode) + --noinspect Don't use inspect for output + --readline Use Readline extension module + --noreadline Don't use Readline extension module --prompt prompt-mode --prompt-mode prompt-mode - switches prompt mode. Pre-defined prompt modes are + Switch prompt mode. Pre-defined prompt modes are `default', `simple', `xmp' and `inf-ruby' - --inf-ruby-mode uses prompt appreciate for inf-ruby-mode on emacs. + --inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs. Suppresses --readline. - --simple-prompt simple prompt mode - --noprompt no prompt - --tracer display trace for each execution of commands. + --simple-prompt Simple prompt mode + --noprompt No prompt mode + --tracer Display trace for each execution of commands. --back-trace-limit n - displayes backtrace top n and tail n. The default + Display backtrace top n and tail n. The default value is 16. - --irb_debug n sets internal debug level to n (It shouldn't be used) - -v, --version prints the version of irb + --irb_debug n Set internal debug level to n (not for popular use) + -v, --version Print the version of irb diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb index 19585467a0..42493554c6 100644 --- a/lib/irb/lc/ja/error.rb +++ b/lib/irb/lc/ja/error.rb @@ -16,13 +16,13 @@ module IRB extend Exception2MessageMapper def_exception :UnrecognizedSwitch, '$B%9%$%C%A(B(%s)$B$,J,$j$^$;$s(B' def_exception :NotImplementError, '`%s\'$B$NDj5A$,I,MW$G$9(B' - def_exception :CantRetuenNormalMode, 'Normal$B%b!<%I$KLa$l$^$;$s(B.' + def_exception :CantReturnToNormalMode, 'Normal$B%b!<%I$KLa$l$^$;$s(B.' def_exception :IllegalParameter, '$B%Q%i%a!<%?(B(%s)$B$,4V0c$C$F$$$^$9(B.' def_exception :IrbAlreadyDead, 'Irb$B$O4{$K;`$s$G$$$^$9(B.' - def_exception :IrbSwitchToCurrentThread, 'Change to current thread.' + def_exception :IrbSwitchedToCurrentThread, '$B%+%l%s%H%9%l%C%I$K@Z$jBX$o$j$^$7$?(B.' def_exception :NoSuchJob, '$B$=$N$h$&$J%8%g%V(B(%s)$B$O$"$j$^$;$s(B.' - def_exception :CanNotGoMultiIrbMode, 'multi-irb mode$B$K0\$l$^$;$s(B.' - def_exception :CanNotChangeBinding, '$B%P%$%s%G%#%s%0(B(%s)$B$KJQ99$G$-$^$;$s(B.' + def_exception :CantShiftToMultiIrbMode, 'multi-irb mode$B$K0\$l$^$;$s(B.' + def_exception :CantChangeBinding, '$B%P%$%s%G%#%s%0(B(%s)$B$KJQ99$G$-$^$;$s(B.' def_exception :UndefinedPromptMode, '$B%W%m%s%W%H%b!<%I(B(%s)$B$ODj5A$5$l$F$$$^$;$s(B.' end diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 6dcb450fd7..3659fa8b56 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -67,7 +67,7 @@ EOF begin @binding = eval("IRB.conf[:__MAIN__].instance_eval('binding', __FILE__, __LINE__)", @binding, __FILE__, __LINE__) rescue TypeError - IRB.fail CanNotChangeBinding, @main.inspect + IRB.fail CantChangeBinding, @main.inspect end end end diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 79310359e6..0c65d3be36 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -277,7 +277,7 @@ class Shell when IO AppendIO.new(@shell, to, filter) else - Shell.Fail CanNotMethodApply, "append", to.class + Shell.Fail CantApplyMethod, "append", to.class end end diff --git a/lib/shell/error.rb b/lib/shell/error.rb index df5e669af6..d338b1c5d1 100644 --- a/lib/shell/error.rb +++ b/lib/shell/error.rb @@ -18,8 +18,8 @@ class Shell def_e2message TypeError, "wrong argument type %s (expected %s)" def_exception :DirStackEmpty, "Directory stack empty." - def_exception :CanNotDefine, "Can't define method(%s, %s)." - def_exception :CanNotMethodApply, "This method(%s) can't apply this type(%s)." + def_exception :CantDefine, "Can't define method(%s, %s)." + def_exception :CantApplyMethod, "This method(%s) does not apply to this type(%s)." def_exception :CommandNotFound, "Command not found(%s)." end end diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb index 727826b7c9..4cf793a3b3 100644 --- a/lib/shell/filter.rb +++ b/lib/shell/filter.rb @@ -47,7 +47,7 @@ class Shell self.input = src self else - Filter.Fail CanNotMethodApply, "<", to.class + Filter.Fail CantApplyMethod, "<", to.class end end @@ -63,7 +63,7 @@ class Shell when IO each(){|l| to << l} else - Filter.Fail CanNotMethodApply, ">", to.class + Filter.Fail CantApplyMethod, ">", to.class end self end @@ -71,8 +71,8 @@ class Shell def >> (to) begin Shell.cd(@shell.pwd).append(to, self) - rescue CanNotMethodApply - Shell.Fail CanNotMethodApply, ">>", to.class + rescue CantApplyMethod + Shell.Fail CantApplyMethod, ">>", to.class end end |