Skip to content

Commit

Permalink
irbrc: use wirble only when Ruby is earlier than 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Feb 18, 2020
1 parent f201095 commit 5b1a49b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions irbrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ IRB.conf[:SAVE_HISTORY] = 10_000

require 'rubygems'
require 'irb/completion'
require 'wirble'

Wirble.init
Wirble.colorize
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
begin
require 'wirble'

Wirble.init
Wirble.colorize
rescue LoadError # rubocop:disable Lint/SuppressedException
end
end

0 comments on commit 5b1a49b

Please sign in to comment.