Skip to content

Commit 63eff0e

Browse files
committed
refactor!: drop support for Ruby 2.3
1 parent 316e466 commit 63eff0e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.rubocop.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
AllCops:
3-
TargetRubyVersion: 2.3
3+
TargetRubyVersion: 2.4
44
Exclude:
55
- vendor/**/*
66

7-
Layout/AlignArray:
7+
Layout/ArrayAlignment:
88
Enabled: false
9-
Layout/AlignHash:
9+
Layout/HashAlignment:
1010
EnforcedHashRocketStyle: table
11-
Layout/AlignParameters:
11+
Layout/ParameterAlignment:
1212
Enabled: false
1313
Layout/EmptyLinesAroundAccessModifier:
1414
Enabled: false
@@ -22,11 +22,11 @@ Layout/FirstParameterIndentation:
2222
EnforcedStyle: consistent
2323
Layout/IndentationWidth:
2424
Severity: error
25-
Layout/IndentArray:
25+
Layout/FirstArrayElementIndentation:
2626
EnforcedStyle: consistent
27-
Layout/IndentHash:
27+
Layout/FirstHashElementIndentation:
2828
EnforcedStyle: consistent
29-
Layout/IndentHeredoc:
29+
Layout/HeredocIndentation:
3030
Enabled: false
3131
Exclude:
3232
- spec/**/*
@@ -46,7 +46,7 @@ Lint/DuplicateMethods:
4646
- lib/mercenary/command.rb
4747
Layout/EndAlignment:
4848
Severity: error
49-
Lint/HandleExceptions:
49+
Lint/SuppressedException:
5050
Exclude:
5151
- lib/mercenary/option.rb
5252
Style/RescueStandardError:
@@ -168,5 +168,5 @@ Style/TrailingCommaInArrayLiteral:
168168
EnforcedStyleForMultiline: consistent_comma
169169
Style/TrailingCommaInHashLiteral:
170170
EnforcedStyleForMultiline: consistent_comma
171-
Style/UnneededCapitalW:
171+
Style/RedundantCapitalW:
172172
Enabled: false

mercenary.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
2020
spec.require_paths = ["lib"]
2121

22-
spec.required_ruby_version = ">= 2.3.0"
22+
spec.required_ruby_version = ">= 2.4.0"
2323

2424
spec.add_development_dependency "bundler"
2525
spec.add_development_dependency "rake"

0 commit comments

Comments
 (0)