Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
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.
#
Expand Down Expand Up @@ -354,7 +356,6 @@ def IRB.conf
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
Expand Down