Skip to content

Commit

Permalink
Merge pull request #35 from mkmn/ci_against_ruby3_3_and_drop_ruby2_7
Browse files Browse the repository at this point in the history
CI against Ruby 3.3 & Drop Ruby2.7
  • Loading branch information
mkmn authored May 8, 2024
2 parents b76d098 + f299141 commit 473fd1c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 24 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- master
schedule:
- cron: '* 0 * * *'
pull_request:

jobs:
Expand All @@ -15,10 +13,10 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand Down
39 changes: 32 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,44 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-10-08 20:59:18 +0900 using RuboCop version 0.34.2.
# on 2024-05-07 01:52:46 UTC using RuboCop version 1.63.4.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 4
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 200
# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'tsubaki.gemspec'

# Offense count: 14
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 200
Max: 183

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
Exclude:
- 'lib/tsubaki/matchers/validate_corporate_number_of_matcher.rb'
- 'lib/tsubaki/matchers/validate_my_number_of_matcher.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'tsubaki.gemspec'
- 'tsubaki.gemspec'

# Offense count: 4
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/tsubaki/matchers/validate_corporate_number_of_matcher.rb'
- 'lib/tsubaki/matchers/validate_my_number_of_matcher.rb'
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.0
3.3.1
37 changes: 24 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ GEM
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
ast (2.4.0)
ast (2.4.2)
concurrent-ruby (1.2.2)
diff-lcs (1.3)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.4)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.19.0)
parallel (1.19.1)
parser (2.6.5.0)
ast (~> 2.4.0)
rainbow (3.0.0)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
rake (13.0.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
Expand All @@ -39,17 +44,23 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubocop (0.77.0)
jaro_winkler (~> 1.5.1)
rubocop (1.63.4)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 2.6)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.6.0)
unicode-display_width (2.5.0)

PLATFORMS
ruby
Expand All @@ -62,4 +73,4 @@ DEPENDENCIES
tsubaki!

BUNDLED WITH
2.2.14
2.5.10

0 comments on commit 473fd1c

Please sign in to comment.