Skip to content

Commit d07b5a2

Browse files
authored
Merge pull request #1267 from ydah/drop_ruby_25
Drop Ruby 2.5 support
2 parents 2f8ec8a + 6b99116 commit d07b5a2

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
strategy:
2424
matrix:
2525
ruby:
26-
- 2.5
2726
- 2.6
2827
- 2.7
2928
- "3.0"

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require:
66

77
AllCops:
88
DisplayCopNames: true
9-
TargetRubyVersion: 2.5
9+
TargetRubyVersion: 2.6
1010
NewCops: disable
1111
Exclude:
1212
- 'vendor/**/*'

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Master (Unreleased)
44

5+
* Drop Ruby 2.5 support. ([@ydah][])
6+
57
## 2.10.0 (2022-04-19)
68

79
* Fix a false positive for `RSpec/EmptyExampleGroup` when expectations in case statement. ([@ydah][])

lib/rubocop/cop/rspec/expect_output.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def on_gvasgn(node)
2424
# rubocop:disable InternalAffairs/NodeDestructuring
2525
variable_name, _rhs = *node
2626
# rubocop:enable InternalAffairs/NodeDestructuring
27-
name = variable_name[1..-1]
27+
name = variable_name[1..]
2828
return unless name.eql?('stdout') || name.eql?('stderr')
2929

3030
add_offense(node.loc.name, message: format(MSG, name: name))

lib/rubocop/cop/rspec/variable_definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def on_send(node)
4747
def correct_variable(variable)
4848
case variable.type
4949
when :dsym
50-
variable.source[1..-1]
50+
variable.source[1..]
5151
when :sym
5252
variable.value.to_s.inspect
5353
else

rubocop-rspec.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.version = RuboCop::RSpec::Version::STRING
2323
spec.platform = Gem::Platform::RUBY
24-
spec.required_ruby_version = '>= 2.5.0'
24+
spec.required_ruby_version = '>= 2.6.0'
2525

2626
spec.require_paths = ['lib']
2727
spec.files = Dir[

0 commit comments

Comments
 (0)