From e913ecfdedcf607ceda5a8a0c0d87368c0bb1ef9 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 12 Dec 2018 07:41:10 +0000 Subject: Backport https://github.com/ruby/irb/pull/2 Fix and improve version string by @stomar git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/irb.rb') diff --git a/lib/irb.rb b/lib/irb.rb index f2c7959cae..ee3e649e81 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -356,8 +356,7 @@ module IRB 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 -- cgit v1.2.3