diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 07:41:10 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 07:41:10 +0000 |
commit | e913ecfdedcf607ceda5a8a0c0d87368c0bb1ef9 (patch) | |
tree | 68a66ece3c0180680e15a58b3860c807995e71dc /lib/irb.rb | |
parent | 57a67eb8a476bb0a73385a09c1c35b2d55be524e (diff) |
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
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |