File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -598,11 +598,7 @@ def handle_exception(exc)
598
598
599
599
if exc . backtrace
600
600
order = nil
601
- if '2.5.0' == RUBY_VERSION
602
- # Exception#full_message doesn't have keyword arguments.
603
- message = exc . full_message # the same of (highlight: true, order: bottom)
604
- order = :bottom
605
- elsif '2.5.1' <= RUBY_VERSION && RUBY_VERSION < '3.0.0'
601
+ if RUBY_VERSION < '3.0.0'
606
602
if STDOUT . tty?
607
603
message = exc . full_message ( order : :bottom )
608
604
order = :bottom
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
35
35
spec . require_paths = [ "lib" ]
36
36
37
- spec . required_ruby_version = Gem ::Requirement . new ( ">= 2.5 " )
37
+ spec . required_ruby_version = Gem ::Requirement . new ( ">= 2.6 " )
38
38
39
39
spec . add_dependency "reline" , ">= 0.3.0"
40
40
end
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ def test_eval_input_with_exception
492
492
irb . eval_input
493
493
end
494
494
assert_empty err
495
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
495
+ if RUBY_VERSION < '3.0.0' && STDOUT . tty?
496
496
expected = [
497
497
:* , /Traceback \( most recent call last\) :\n / ,
498
498
:* , /\t 2: from \( irb\) :1:in `<main>'\n / ,
@@ -523,7 +523,7 @@ def test_eval_input_with_invalid_byte_sequence_exception
523
523
irb . eval_input
524
524
end
525
525
assert_empty err
526
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
526
+ if RUBY_VERSION < '3.0.0' && STDOUT . tty?
527
527
expected = [
528
528
:* , /Traceback \( most recent call last\) :\n / ,
529
529
:* , /\t 2: from \( irb\) :1:in `<main>'\n / ,
@@ -560,7 +560,7 @@ def test_eval_input_with_long_exception
560
560
irb . eval_input
561
561
end
562
562
assert_empty err
563
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
563
+ if RUBY_VERSION < '3.0.0' && STDOUT . tty?
564
564
expected = [
565
565
:* , /Traceback \( most recent call last\) :\n / ,
566
566
:* , /\t ... \d + levels...\n / ,
Original file line number Diff line number Diff line change @@ -181,9 +181,6 @@ def test_symbols
181
181
end
182
182
183
183
def test_endless_range_at_end_of_line
184
- if Gem ::Version . new ( RUBY_VERSION ) < Gem ::Version . new ( '2.6.0' )
185
- pend 'Endless range is available in 2.6.0 or later'
186
- end
187
184
input_with_prompt = [
188
185
PromptRow . new ( '001:0: :> ' , %q(a = 3..) ) ,
189
186
PromptRow . new ( '002:0: :* ' , %q() ) ,
You can’t perform that action at this time.
0 commit comments