ruby-changes:54135
From: hsbt <ko1@a...>
Date: Wed, 12 Dec 2018 16:41:25 +0900 (JST)
Subject: [ruby-changes:54135] hsbt:r66356 (trunk): Backport https://github.com/ruby/irb/pull/2
hsbt 2018-12-12 16:41:10 +0900 (Wed, 12 Dec 2018) New Revision: 66356 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66356 Log: Backport https://github.com/ruby/irb/pull/2 Fix and improve version string by @stomar Modified files: trunk/lib/irb/version.rb trunk/lib/irb.rb Index: lib/irb/version.rb =================================================================== --- lib/irb/version.rb (revision 66355) +++ lib/irb/version.rb (revision 66356) @@ -13,5 +13,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb/version.rb#L13 module IRB # :nodoc: VERSION = "0.9.6" @RELEASE_VERSION = VERSION - @LAST_UPDATE_DATE = "09/06/30" + @LAST_UPDATE_DATE = "2009-06-30" end Index: lib/irb.rb =================================================================== --- lib/irb.rb (revision 66355) +++ lib/irb.rb (revision 66356) @@ -356,8 +356,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L356 def IRB.version if v = @CONF[:VERSION] then return v end - rv = @RELEASE_VERSION.sub(/\.0/, "") - @CONF[:VERSION] = format("irb %s(%s)", rv, @LAST_UPDATE_DATE) + @CONF[:VERSION] = format("irb %s (%s)", @RELEASE_VERSION, @LAST_UPDATE_DATE) end # The current IRB::Context of the session, see IRB.conf -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/