Skip to content

Commit 2b30230

Browse files
justin808claude
andcommitted
Fix Ruby version consistency and pin RuboCop versions
- Set minimum Ruby version to 3.0 across all configurations - Updated .rubocop.yml TargetRubyVersion from 2.6 to 3.0 - Updated GitHub Actions workflow to use Ruby 3.0 - Added required_ruby_version >= 3.0.0 to gemspec - Pinned RuboCop versions for consistency: - rubocop ~> 1.81 - rubocop-rake ~> 0.7 - rubocop-rspec ~> 3.7 - Updated to use new plugin syntax instead of require This ensures consistency between CI, local development, and RuboCop configuration. Ruby 3.0 is a reasonable minimum for modern projects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent bede28d commit 2b30230

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Ruby
1717
uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: '3.2'
19+
ruby-version: '3.0'
2020
bundler-cache: true
2121

2222
- name: Run RuboCop

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
require:
1+
plugins:
22
- rubocop-rake
33
- rubocop-rspec
44

55
AllCops:
6-
TargetRubyVersion: 2.6
6+
TargetRubyVersion: 3.0
77
NewCops: enable
88
Exclude:
99
- 'vendor/**/*'

cypress-on-rails.gemspec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ Gem::Specification.new do |s|
2222
s.add_development_dependency 'factory_bot', '!= 6.4.5'
2323
s.add_development_dependency 'vcr'
2424
s.add_development_dependency 'gem-release'
25-
s.add_development_dependency 'rubocop'
26-
s.add_development_dependency 'rubocop-rake'
27-
s.add_development_dependency 'rubocop-rspec'
25+
s.add_development_dependency 'rubocop', '~> 1.81'
26+
s.add_development_dependency 'rubocop-rake', '~> 0.7'
27+
s.add_development_dependency 'rubocop-rspec', '~> 3.7'
28+
29+
s.required_ruby_version = '>= 3.0.0'
30+
2831
s.metadata = {
2932
"bug_tracker_uri" => "https://github.com/shakacode/cypress-on-rails/issues",
3033
"changelog_uri" => "https://github.com/shakacode/cypress-on-rails/blob/master/CHANGELOG.md",

0 commit comments

Comments
 (0)