ruby-changes:53002
From: hsbt <ko1@a...>
Date: Sat, 20 Oct 2018 16:55:02 +0900 (JST)
Subject: [ruby-changes:53002] hsbt:r65216 (trunk): Merge irb from github repository.
hsbt 2018-10-20 16:54:58 +0900 (Sat, 20 Oct 2018) New Revision: 65216 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65216 Log: Merge irb from github repository. * IRB::VERSION is available on irb session. Modified files: trunk/lib/irb.rb Index: lib/irb.rb =================================================================== --- lib/irb.rb (revision 65215) +++ lib/irb.rb (revision 65216) @@ -19,6 +19,8 @@ require "irb/ruby-lex" https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L19 require "irb/input-method" require "irb/locale" +require "irb/version" + # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby # expressions read from the standard input. # @@ -354,7 +356,6 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L356 def IRB.version if v = @CONF[:VERSION] then return v end - require "irb/version" rv = @RELEASE_VERSION.sub(/\.0/, "") @CONF[:VERSION] = format("irb %s(%s)", rv, @LAST_UPDATE_DATE) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/