Skip to content

Commit 8ab5fd8

Browse files
authored
Update minimal Ruby version and dependencies
1 parent 1626fbf commit 8ab5fd8

8 files changed

+48
-29
lines changed

.github/workflows/rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
run: bundle install
4141
- name: Run RuboCop
4242
run: |
43+
ruby --version
44+
rubocop --version
4345
rubocop 'bin/tetra'
4446
rubocop 'lib/tetra.rb'
4547
rubocop 'lib/tetra/'

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
matrix:
3434
os: [ubuntu-latest]
3535
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
36-
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
36+
ruby: ['3.1', '3.2', '3.3']
3737
runs-on: ${{ matrix.os }}
3838
steps:
3939
- name: Checkout
@@ -50,6 +50,8 @@ jobs:
5050
git config --global user.name "GitHub Actions Bot"
5151
git config --global user.email "<>"
5252
- name: Run tests and collect coverage
53-
run: bundle exec rake
53+
run: |
54+
ruby --version
55+
bundle exec rake
5456
- name: Upload coverage to Codecov
5557
uses: codecov/codecov-action@v5

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ inherit_from: .rubocop_todo.yml
22

33
AllCops:
44
NewCops: disable
5-
TargetRubyVersion: 2.7
5+
TargetRubyVersion: 3.1
66

77
Layout/LineLength:
88
Max: 140

.rubocop_todo.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2024-02-06 10:24:39 UTC using RuboCop version 1.57.2.
3+
# on 2024-12-19 18:05:31 UTC using RuboCop version 1.69.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -99,12 +99,6 @@ Lint/MissingSuper:
9999
- 'lib/tetra/facades/process_runner.rb'
100100
- 'lib/tetra/project.rb'
101101

102-
# Offense count: 1
103-
# This cop supports safe autocorrection (--autocorrect).
104-
Lint/RedundantCopDisableDirective:
105-
Exclude:
106-
- 'spec/lib/fine/pom_spec.rb'
107-
108102
# Offense count: 1
109103
Lint/UriEscapeUnescape:
110104
Exclude:
@@ -158,7 +152,7 @@ Style/ConditionalAssignment:
158152
Exclude:
159153
- 'lib/tetra/ui/subcommand.rb'
160154

161-
# Offense count: 54
155+
# Offense count: 55
162156
# This cop supports safe autocorrection (--autocorrect).
163157
Style/Encoding:
164158
Enabled: false
@@ -182,7 +176,7 @@ Style/ExplicitBlockArgument:
182176
Style/FormatStringToken:
183177
EnforcedStyle: template
184178

185-
# Offense count: 60
179+
# Offense count: 61
186180
# This cop supports unsafe autocorrection (--autocorrect-all).
187181
# Configuration parameters: EnforcedStyle.
188182
# SupportedStyles: always, always_true, never

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
To develop tetra, you will need:
66

77
* to install Bundler and Ruby development headers. On SUSE distros, use
8-
`sudo zypper install ruby2.7-rubygem-bundler ruby-devel`;
8+
`sudo zypper install ruby3.1-rubygem-bundler ruby-devel`;
99
* to get development dependencies: `bundle install`;
1010

1111
To install a development version of tetra use:

Gemfile.lock

+35-14
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ GEM
2121
bigdecimal (3.1.8)
2222
builder (3.3.0)
2323
cgi (0.4.1)
24-
childprocess (5.0.0)
24+
childprocess (5.1.0)
25+
logger (~> 1.5)
2526
clamp (1.3.2)
2627
cucumber (9.2.0)
2728
builder (~> 3.2)
@@ -36,26 +37,37 @@ GEM
3637
multi_test (~> 1.1)
3738
sys-uname (~> 1.2)
3839
cucumber-ci-environment (10.0.1)
39-
cucumber-core (13.0.2)
40+
cucumber-core (13.0.3)
4041
cucumber-gherkin (>= 27, < 28)
4142
cucumber-messages (>= 20, < 23)
4243
cucumber-tag-expressions (> 5, < 7)
4344
cucumber-cucumber-expressions (17.1.0)
4445
bigdecimal
4546
cucumber-gherkin (27.0.0)
4647
cucumber-messages (>= 19.1.4, < 23)
47-
cucumber-html-formatter (21.3.1)
48-
cucumber-messages (> 19, < 25)
48+
cucumber-html-formatter (21.7.0)
49+
cucumber-messages (> 19, < 27)
4950
cucumber-messages (22.0.0)
50-
cucumber-tag-expressions (6.1.0)
51+
cucumber-tag-expressions (6.1.1)
5152
diff-lcs (1.5.1)
52-
docile (1.4.0)
53+
docile (1.4.1)
5354
erb (4.0.4)
5455
cgi (>= 0.3.3)
55-
ffi (1.16.3)
56+
ffi (1.17.0)
57+
ffi (1.17.0-aarch64-linux-gnu)
58+
ffi (1.17.0-aarch64-linux-musl)
59+
ffi (1.17.0-arm-linux-gnu)
60+
ffi (1.17.0-arm-linux-musl)
61+
ffi (1.17.0-arm64-darwin)
62+
ffi (1.17.0-x86-linux-gnu)
63+
ffi (1.17.0-x86-linux-musl)
64+
ffi (1.17.0-x86_64-darwin)
65+
ffi (1.17.0-x86_64-linux-gnu)
66+
ffi (1.17.0-x86_64-linux-musl)
5667
json (2.9.1)
5768
json_pure (2.8.1)
5869
language_server-protocol (3.17.0.3)
70+
logger (1.6.4)
5971
mini_mime (1.1.5)
6072
multi_test (1.1.0)
6173
open4 (1.3.4)
@@ -72,15 +84,15 @@ GEM
7284
rspec-core (~> 3.13.0)
7385
rspec-expectations (~> 3.13.0)
7486
rspec-mocks (~> 3.13.0)
75-
rspec-core (3.13.0)
87+
rspec-core (3.13.2)
7688
rspec-support (~> 3.13.0)
77-
rspec-expectations (3.13.0)
89+
rspec-expectations (3.13.3)
7890
diff-lcs (>= 1.2.0, < 2.0)
7991
rspec-support (~> 3.13.0)
80-
rspec-mocks (3.13.1)
92+
rspec-mocks (3.13.2)
8193
diff-lcs (>= 1.2.0, < 2.0)
8294
rspec-support (~> 3.13.0)
83-
rspec-support (3.13.1)
95+
rspec-support (3.13.2)
8496
rubocop (1.69.2)
8597
json (~> 2.3)
8698
language_server-protocol (>= 3.17.0)
@@ -99,18 +111,27 @@ GEM
99111
docile (~> 1.1)
100112
simplecov-html (~> 0.11)
101113
simplecov_json_formatter (~> 0.1)
102-
simplecov-html (0.12.3)
114+
simplecov-html (0.13.1)
103115
simplecov_json_formatter (0.1.4)
104-
sys-uname (1.3.0)
116+
sys-uname (1.3.1)
105117
ffi (~> 1.1)
106118
text (1.3.1)
107119
unicode-display_width (3.1.2)
108120
unicode-emoji (~> 4.0, >= 4.0.4)
109121
unicode-emoji (4.0.4)
110122

111123
PLATFORMS
124+
aarch64-linux-gnu
125+
aarch64-linux-musl
126+
arm-linux-gnu
127+
arm-linux-musl
128+
arm64-darwin
112129
ruby
130+
x86-linux-gnu
131+
x86-linux-musl
132+
x86_64-darwin
113133
x86_64-linux-gnu
134+
x86_64-linux-musl
114135

115136
DEPENDENCIES
116137
aruba (~> 0.6.2)
@@ -121,4 +142,4 @@ DEPENDENCIES
121142
tetra!
122143

123144
BUNDLED WITH
124-
2.4.22
145+
2.6.1

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See [MOTIVATION.md](MOTIVATION.md) for further information.
1414

1515
You need:
1616

17-
- [Ruby 2.7.0](https://www.ruby-lang.org) or later;
17+
- [Ruby 3.1](https://www.ruby-lang.org) or later;
1818
- [git](https://git-scm.com) with your credentials set in ~/.gitconfig (name and email);
1919
- some basic Unix commands: bash, unzip, tar;
2020
- a JDK that can compile whatever software you need to package;

tetra.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
2424
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
2525
s.require_paths = ["lib"]
2626

27-
s.required_ruby_version = '>= 2.7.0'
27+
s.required_ruby_version = '>= 3.1.0'
2828

2929
s.add_development_dependency "aruba", "~> 0.6.2"
3030
s.add_development_dependency "simplecov", "~> 0.22.0"

0 commit comments

Comments
 (0)