зеркало из https://github.com/github/ruby.git
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@8329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2ac523a891
Коммит
ce7c263fb6
|
@ -1,3 +1,12 @@
|
||||||
|
Thu Apr 14 18:51:02 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Thu Apr 14 15:10:30 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
|
Thu Apr 14 15:10:30 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
|
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
#
|
||||||
|
# help.rb - helper using ri
|
||||||
|
# $Release Version: 0.9.5$
|
||||||
|
# $Revision$
|
||||||
|
# $Date$
|
||||||
|
#
|
||||||
|
# --
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
require 'rdoc/ri/ri_driver'
|
require 'rdoc/ri/ri_driver'
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
|
|
|
@ -10,14 +10,13 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
@RCS_ID='-$Id$-'
|
|
||||||
|
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
class LoadAbort < Exception;end
|
class LoadAbort < Exception;end
|
||||||
|
|
||||||
module IrbLoader
|
module IrbLoader
|
||||||
@RCS_ID='-$Id$-'
|
@RCS_ID='-$Id$-'
|
||||||
|
|
||||||
alias ruby_load load
|
alias ruby_load load
|
||||||
alias ruby_require require
|
alias ruby_require require
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,13 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
@RCS_ID='-$Id$-'
|
|
||||||
|
|
||||||
require "readline"
|
require "readline"
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
|
module HistorySavingAbility
|
||||||
|
@RCS_ID='-$Id$-'
|
||||||
|
end
|
||||||
|
|
||||||
class Context
|
class Context
|
||||||
def init_save_history
|
def init_save_history
|
||||||
unless (class<<@io;self;end).include?(HistorySavingAbility)
|
unless (class<<@io;self;end).include?(HistorySavingAbility)
|
||||||
|
|
|
@ -100,7 +100,8 @@ class RubyLex
|
||||||
|
|
||||||
def getc
|
def getc
|
||||||
while @rests.empty?
|
while @rests.empty?
|
||||||
return nil unless buf_input
|
# return nil unless buf_input
|
||||||
|
@rests.push nil unless buf_input
|
||||||
end
|
end
|
||||||
c = @rests.shift
|
c = @rests.shift
|
||||||
if @here_header
|
if @here_header
|
||||||
|
@ -121,7 +122,7 @@ class RubyLex
|
||||||
def gets
|
def gets
|
||||||
l = ""
|
l = ""
|
||||||
while c = getc
|
while c = getc
|
||||||
l.concat c
|
l.concat(c)
|
||||||
break if c == "\n"
|
break if c == "\n"
|
||||||
end
|
end
|
||||||
return nil if l == "" and c.nil?
|
return nil if l == "" and c.nil?
|
||||||
|
|
Загрузка…
Ссылка в новой задаче