Skip to content

Commit 151eff1

Browse files
committed
- Drop support for Ruby 2.7
1 parent a66f3e3 commit 151eff1

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13-
matrix: { ruby: ['2.7', '3.0', '3.1', '3.2', head] }
13+
matrix: { ruby: ['3.0', '3.1', '3.2', head] }
1414

1515
steps:
1616
- name: Checkout code

.rubocop.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inherit_gem:
88
- rspec.yml
99

1010
AllCops:
11-
TargetRubyVersion: 2.7
11+
TargetRubyVersion: 3.0
1212
Exclude:
1313
- 'spec/approvals/**/*'
1414
- 'debug.rb'
@@ -18,8 +18,3 @@ AllCops:
1818
Naming/AccessorMethodName:
1919
Exclude:
2020
- 'lib/completely/tester.rb'
21-
22-
# The `bounce` method here is more readable without this cop
23-
Style/GuardClause:
24-
Exclude:
25-
- 'lib/completely/commands/install.rb'

completely.gemspec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ Gem::Specification.new do |s|
1111
s.email = 'db@dannyben.com'
1212
s.files = Dir['README.md', 'lib/**/*.*']
1313
s.executables = ['completely']
14-
s.homepage = 'https://github.com/dannyben/completely'
14+
s.homepage = 'https://github.com/DannyBen/completely'
1515
s.license = 'MIT'
1616

17-
s.required_ruby_version = '>= 2.7.0'
17+
s.required_ruby_version = '>= 3.0'
1818

1919
s.add_runtime_dependency 'colsole', '>= 0.8.1', '< 2'
2020
s.add_runtime_dependency 'mister_bin', '~> 0.7'
2121

22-
s.metadata['rubygems_mfa_required'] = 'true'
22+
s.metadata = {
23+
'bug_tracker_uri' => 'https://github.com/DannyBen/completely/issues',
24+
'changelog_uri' => 'https://github.com/DannyBen/completely/blob/master/CHANGELOG.md',
25+
'source_code_uri' => 'https://github.com/DannyBen/completely',
26+
'rubygems_mfa_required' => 'true',
27+
}
2328
end

spec/completely/commands/install_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
context 'when the installer fails' do
4646
it 'raises an error' do
4747
allow(subject).to receive(:installer).and_return(mock_installer)
48-
49-
expect(mock_installer).to receive(:install).and_return false
48+
allow(mock_installer).to receive(:install).and_return false
5049

5150
expect { subject.execute %w[install completely-test] }
5251
.to raise_approval('cli/install/install-error')

0 commit comments

Comments
 (0)