Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI against Ruby 3.3 & Drop Ruby2.7 #35

Merged
merged 4 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading