Skip to content

Commit

Permalink
test: Fix CI
Browse files Browse the repository at this point in the history
- rubocop-rspec v3 requires Ruby 2.7+
- Group gems for lint
  • Loading branch information
mishina2228 committed Nov 16, 2024
1 parent ea100c9 commit 3109c7b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ source 'https://rubygems.org'
gemspec

gem 'factory_bot', '~> 6.4', '!= 6.4.5'
gem 'haml_lint', '~> 0.37'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.10'
gem 'rubocop', '~> 1.8'
gem 'rubocop-factory_bot', '~> 2.26'
gem 'rubocop-performance', '~> 1.9'
gem 'rubocop-rake', '~> 0.5'
gem 'rubocop-rspec', '~> 3.2'
gem 'simplecov', '~> 0.21'
gem 'simplecov-cobertura', '~> 2.0'

Expand All @@ -24,3 +18,14 @@ else
gem 'actionview', active_support_version
gem 'activesupport', active_support_version
end

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
group :lint do
gem 'haml_lint', '~> 0.37'
gem 'rubocop', '~> 1.8'
gem 'rubocop-factory_bot', '~> 2.26'
gem 'rubocop-performance', '~> 1.9'
gem 'rubocop-rake', '~> 0.5'
gem 'rubocop-rspec', '~> 3.2'
end
end

0 comments on commit 3109c7b

Please sign in to comment.