diff options
author | st0012 <stan001212@gmail.com> | 2022-07-25 23:35:25 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-11-17 13:06:32 +0900 |
commit | 923c1aaed7a5707d5c358627aad37f29e7738143 (patch) | |
tree | 6df756bc50ad8080cf043767790bf9605cf0647a /lib/irb.rb | |
parent | e61b3e6f43434bd815577a67d4f1719091b57d5c (diff) |
Drop Ruby 2.5 support
Because it has reached EOL for more than 1.5 years and it won't be
supported by the next reline version either.
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index 04009664ef..ab5702c9f2 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -598,11 +598,7 @@ module IRB if exc.backtrace order = nil - if '2.5.0' == RUBY_VERSION - # Exception#full_message doesn't have keyword arguments. - message = exc.full_message # the same of (highlight: true, order: bottom) - order = :bottom - elsif '2.5.1' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' + if RUBY_VERSION < '3.0.0' if STDOUT.tty? message = exc.full_message(order: :bottom) order = :bottom |