Skip to content

Commit

Permalink
Fix Gemspec/RequiredRubyVersion cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver authored and stejskalleos committed Jan 18, 2024
1 parent e68d9d0 commit d735fce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ inherit_mode:
merge:
- Exclude

AllCops:
TargetRubyVersion: '2.7'
Exclude:
- 'vendor/bundle/**/*'

Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
IndentationWidth: 2
Expand All @@ -28,3 +33,6 @@ Metrics/BlockLength:
- 'config/*routes.rb'
- 'lib/foreman_puppet/register.rb'
- 'config/initializers/api_reroute.rb'

Gemspec/RequiredRubyVersion:
Enabled: true
2 changes: 2 additions & 0 deletions foreman_puppet.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Gem::Specification.new do |s|

s.files = Dir['{app,config,db,lib,locale,webpack}/**/*'] + ['LICENSE', 'Rakefile', 'README.md', 'package.json']
s.test_files = Dir['test/**/*']

s.required_ruby_version = '>= 2.7', '< 4'
end

0 comments on commit d735fce

Please sign in to comment.