diff options
| author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-14 09:58:18 +0000 |
|---|---|---|
| committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-14 09:58:18 +0000 |
| commit | 176e8f6b22a59659424a3d76dc7595411fba6bea (patch) | |
| tree | c393f23305c8aa2a61374c9d44b4c3d089e406c2 /lib | |
| parent | 4a9e592e15bc1df3df328d0b05e923a46957909e (diff) | |
| download | ruby-176e8f6b22a59659424a3d76dc7595411fba6bea.tar.gz ruby-176e8f6b22a59659424a3d76dc7595411fba6bea.tar.xz ruby-176e8f6b22a59659424a3d76dc7595411fba6bea.zip | |
* lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]
* lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb:
fix location of @RCS_ID
* lib/irb/cmd/help.rb: a lost of release IRB 0.9.5.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/irb/cmd/help.rb | 11 | ||||
| -rw-r--r-- | lib/irb/ext/loader.rb | 3 | ||||
| -rw-r--r-- | lib/irb/ext/save-history.rb | 6 | ||||
| -rw-r--r-- | lib/irb/ruby-lex.rb | 5 |
4 files changed, 19 insertions, 6 deletions
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 73067f53c..3e8d1388e 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -1,3 +1,14 @@ +# +# help.rb - helper using ri +# $Release Version: 0.9.5$ +# $Revision$ +# $Date$ +# +# -- +# +# +# + require 'rdoc/ri/ri_driver' module IRB diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb index ac8cc6d74..837e2553a 100644 --- a/lib/irb/ext/loader.rb +++ b/lib/irb/ext/loader.rb @@ -10,14 +10,13 @@ # # -@RCS_ID='-$Id$-' - module IRB class LoadAbort < Exception;end module IrbLoader @RCS_ID='-$Id$-' + alias ruby_load load alias ruby_require require diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 95ef71b5c..5260bfcdd 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -11,11 +11,13 @@ # # -@RCS_ID='-$Id$-' - require "readline" module IRB + module HistorySavingAbility + @RCS_ID='-$Id$-' + end + class Context def init_save_history unless (class<<@io;self;end).include?(HistorySavingAbility) diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 9e055ee94..4c51afbc2 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -100,7 +100,8 @@ class RubyLex def getc while @rests.empty? - return nil unless buf_input +# return nil unless buf_input + @rests.push nil unless buf_input end c = @rests.shift if @here_header @@ -121,7 +122,7 @@ class RubyLex def gets l = "" while c = getc - l.concat c + l.concat(c) break if c == "\n" end return nil if l == "" and c.nil? |
