Skip to content

Commit

Permalink
Update minimal Ruby version and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeg authored Dec 19, 2024
1 parent 1626fbf commit 8ab5fd8
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
run: bundle install
- name: Run RuboCop
run: |
ruby --version
rubocop --version
rubocop 'bin/tetra'
rubocop 'lib/tetra.rb'
rubocop 'lib/tetra/'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
matrix:
os: [ubuntu-latest]
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
ruby: ['3.1', '3.2', '3.3']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -50,6 +50,8 @@ jobs:
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
- name: Run tests and collect coverage
run: bundle exec rake
run: |
ruby --version
bundle exec rake
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_from: .rubocop_todo.yml

AllCops:
NewCops: disable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.1

Layout/LineLength:
Max: 140
Expand Down
12 changes: 3 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-06 10:24:39 UTC using RuboCop version 1.57.2.
# on 2024-12-19 18:05:31 UTC using RuboCop version 1.69.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -99,12 +99,6 @@ Lint/MissingSuper:
- 'lib/tetra/facades/process_runner.rb'
- 'lib/tetra/project.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
- 'spec/lib/fine/pom_spec.rb'

# Offense count: 1
Lint/UriEscapeUnescape:
Exclude:
Expand Down Expand Up @@ -158,7 +152,7 @@ Style/ConditionalAssignment:
Exclude:
- 'lib/tetra/ui/subcommand.rb'

# Offense count: 54
# Offense count: 55
# This cop supports safe autocorrection (--autocorrect).
Style/Encoding:
Enabled: false
Expand All @@ -182,7 +176,7 @@ Style/ExplicitBlockArgument:
Style/FormatStringToken:
EnforcedStyle: template

# Offense count: 60
# Offense count: 61
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
To develop tetra, you will need:

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

To install a development version of tetra use:
Expand Down
49 changes: 35 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ GEM
bigdecimal (3.1.8)
builder (3.3.0)
cgi (0.4.1)
childprocess (5.0.0)
childprocess (5.1.0)
logger (~> 1.5)
clamp (1.3.2)
cucumber (9.2.0)
builder (~> 3.2)
Expand All @@ -36,26 +37,37 @@ GEM
multi_test (~> 1.1)
sys-uname (~> 1.2)
cucumber-ci-environment (10.0.1)
cucumber-core (13.0.2)
cucumber-core (13.0.3)
cucumber-gherkin (>= 27, < 28)
cucumber-messages (>= 20, < 23)
cucumber-tag-expressions (> 5, < 7)
cucumber-cucumber-expressions (17.1.0)
bigdecimal
cucumber-gherkin (27.0.0)
cucumber-messages (>= 19.1.4, < 23)
cucumber-html-formatter (21.3.1)
cucumber-messages (> 19, < 25)
cucumber-html-formatter (21.7.0)
cucumber-messages (> 19, < 27)
cucumber-messages (22.0.0)
cucumber-tag-expressions (6.1.0)
cucumber-tag-expressions (6.1.1)
diff-lcs (1.5.1)
docile (1.4.0)
docile (1.4.1)
erb (4.0.4)
cgi (>= 0.3.3)
ffi (1.16.3)
ffi (1.17.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86-linux-musl)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0-x86_64-linux-musl)
json (2.9.1)
json_pure (2.8.1)
language_server-protocol (3.17.0.3)
logger (1.6.4)
mini_mime (1.1.5)
multi_test (1.1.0)
open4 (1.3.4)
Expand All @@ -72,15 +84,15 @@ GEM
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rspec-support (3.13.2)
rubocop (1.69.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand All @@ -99,18 +111,27 @@ GEM
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sys-uname (1.3.0)
sys-uname (1.3.1)
ffi (~> 1.1)
text (1.3.1)
unicode-display_width (3.1.2)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)

PLATFORMS
aarch64-linux-gnu
aarch64-linux-musl
arm-linux-gnu
arm-linux-musl
arm64-darwin
ruby
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
aruba (~> 0.6.2)
Expand All @@ -121,4 +142,4 @@ DEPENDENCIES
tetra!

BUNDLED WITH
2.4.22
2.6.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See [MOTIVATION.md](MOTIVATION.md) for further information.

You need:

- [Ruby 2.7.0](https://www.ruby-lang.org) or later;
- [Ruby 3.1](https://www.ruby-lang.org) or later;
- [git](https://git-scm.com) with your credentials set in ~/.gitconfig (name and email);
- some basic Unix commands: bash, unzip, tar;
- a JDK that can compile whatever software you need to package;
Expand Down
2 changes: 1 addition & 1 deletion tetra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ["lib"]

s.required_ruby_version = '>= 2.7.0'
s.required_ruby_version = '>= 3.1.0'

s.add_development_dependency "aruba", "~> 0.6.2"
s.add_development_dependency "simplecov", "~> 0.22.0"
Expand Down

0 comments on commit 8ab5fd8

Please sign in to comment.