Skip to content

Commit

Permalink
Set minimal Ruby version to 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeg committed Dec 19, 2024
1 parent f2980af commit dc14d48
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 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 Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ DEPENDENCIES
tetra!

BUNDLED WITH
2.4.22
2.6.1
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 dc14d48

Please sign in to comment.