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 | |
parent | e61b3e6f43434bd815577a67d4f1719091b57d5c (diff) | |
download | ruby-923c1aaed7a5707d5c358627aad37f29e7738143.tar.gz |
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')
-rw-r--r-- | lib/irb.rb | 6 | ||||
-rw-r--r-- | lib/irb/irb.gemspec | 2 |
2 files changed, 2 insertions, 6 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 diff --git a/lib/irb/irb.gemspec b/lib/irb/irb.gemspec index d443938043..c3e8a4dc58 100644 --- a/lib/irb/irb.gemspec +++ b/lib/irb/irb.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.5") + spec.required_ruby_version = Gem::Requirement.new(">= 2.6") spec.add_dependency "reline", ">= 0.3.0" end |