Skip to content

Commit cd2f3fe

Browse files
committed
Replace Ruby 3.5 with Ruby 4.0
This commit updates the Ruby version in the error message to follow the commit in Ruby master branch. ruby/ruby@6d81969
1 parent 8bde92b commit cd2f3fe

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/error_highlight/core_ext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module CoreExt
2424
_, _, snippet, highlight = ErrorHighlight.formatter.message_for(spot).lines
2525
out += "\n | #{ snippet } #{ highlight }"
2626
else
27-
out += "\n (cannot highlight method definition; try Ruby 3.5 or later)"
27+
out += "\n (cannot highlight method definition; try Ruby 4.0 or later)"
2828
end
2929
end
3030
ret << "\n" + out if out

test/test_error_highlight.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def test_wrong_number_of_arguments_for_method
14681468
MethodDefLocationSupported ?
14691469
"| def wrong_number_of_arguments_test(x, y)
14701470
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" :
1471-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1471+
"(cannot highlight method definition; try Ruby 4.0 or later)"
14721472
}
14731473
END
14741474

@@ -1494,7 +1494,7 @@ def test_missing_keyword
14941494
MethodDefLocationSupported ?
14951495
"| def keyword_test(kw1:, kw2:, kw3:)
14961496
^^^^^^^^^^^^" :
1497-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1497+
"(cannot highlight method definition; try Ruby 4.0 or later)"
14981498
}
14991499
END
15001500

@@ -1515,7 +1515,7 @@ def test_missing_keywords # multiple missing keywords
15151515
MethodDefLocationSupported ?
15161516
"| def keyword_test(kw1:, kw2:, kw3:)
15171517
^^^^^^^^^^^^" :
1518-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1518+
"(cannot highlight method definition; try Ruby 4.0 or later)"
15191519
}
15201520
END
15211521

@@ -1536,7 +1536,7 @@ def test_unknown_keyword
15361536
MethodDefLocationSupported ?
15371537
"| def keyword_test(kw1:, kw2:, kw3:)
15381538
^^^^^^^^^^^^" :
1539-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1539+
"(cannot highlight method definition; try Ruby 4.0 or later)"
15401540
}
15411541
END
15421542

@@ -1557,7 +1557,7 @@ def test_unknown_keywords
15571557
MethodDefLocationSupported ?
15581558
"| def keyword_test(kw1:, kw2:, kw3:)
15591559
^^^^^^^^^^^^" :
1560-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1560+
"(cannot highlight method definition; try Ruby 4.0 or later)"
15611561
}
15621562
END
15631563

@@ -1587,7 +1587,7 @@ def test_wrong_number_of_arguments_for_method2
15871587
MethodDefLocationSupported ?
15881588
"| def wrong_number_of_arguments_test2(
15891589
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" :
1590-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1590+
"(cannot highlight method definition; try Ruby 4.0 or later)"
15911591
}
15921592
END
15931593

@@ -1609,7 +1609,7 @@ def test_wrong_number_of_arguments_for_lambda_literal
16091609
MethodDefLocationSupported ?
16101610
"| v = -> {}
16111611
^^" :
1612-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1612+
"(cannot highlight method definition; try Ruby 4.0 or later)"
16131613
}
16141614
END
16151615

@@ -1631,7 +1631,7 @@ def test_wrong_number_of_arguments_for_lambda_method
16311631
MethodDefLocationSupported ?
16321632
"| v = lambda { }
16331633
^" :
1634-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1634+
"(cannot highlight method definition; try Ruby 4.0 or later)"
16351635
}
16361636
END
16371637

@@ -1657,7 +1657,7 @@ def test_wrong_number_of_arguments_for_define_method
16571657
MethodDefLocationSupported ?
16581658
"| define_method :define_method_test do |x, y|
16591659
^^" :
1660-
"(cannot highlight method definition; try Ruby 3.5 or later)"
1660+
"(cannot highlight method definition; try Ruby 4.0 or later)"
16611661
}
16621662
END
16631663

0 commit comments

Comments
 (0)