summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-12 07:41:10 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-12 07:41:10 +0000
commite913ecfdedcf607ceda5a8a0c0d87368c0bb1ef9 (patch)
tree68a66ece3c0180680e15a58b3860c807995e71dc /lib/irb.rb
parent57a67eb8a476bb0a73385a09c1c35b2d55be524e (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.rb3
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