Skip to content

Commit

Permalink
Drop minimum ruby version to work with Puppet 6 (#22)
Browse files Browse the repository at this point in the history
* Roll back various gems to ruby 2.5-compatible versions
* Fix up cops to match older rubocop
* Add ruby 2.5 to test matrix

Fixes #21
  • Loading branch information
silug authored Oct 11, 2022
1 parent 9623f62 commit a6868f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
strategy:
matrix:
ruby:
- '2.5'
- '2.6'
- '2.7'
- '3.0'
Expand All @@ -29,6 +30,7 @@ jobs:
strategy:
matrix:
ruby:
- '2.5'
- '2.6'
- '2.7'
- '3.0'
Expand Down
32 changes: 0 additions & 32 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -520,14 +520,8 @@ Style/RedundantArgument:
Enabled: false
Style/SwapValues:
Enabled: false
Gemspec/DeprecatedAttributeAssignment:
Enabled: false
Gemspec/RequireMFA:
Enabled: false
Layout/LineContinuationLeadingSpace:
Enabled: false
Layout/LineContinuationSpacing:
Enabled: false
Layout/LineEndStringConcatenationIndentation:
Enabled: false
Layout/SpaceBeforeBrackets:
Expand All @@ -538,8 +532,6 @@ Lint/AmbiguousOperatorPrecedence:
Enabled: true
Lint/AmbiguousRange:
Enabled: true
Lint/ConstantOverwrittenInRescue:
Enabled: true
Lint/DeprecatedConstants:
Enabled: true
Lint/EmptyInPattern:
Expand All @@ -548,8 +540,6 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
Enabled: true
Lint/LambdaWithoutLiteralBlock:
Enabled: true
Lint/NonAtomicFileOperation:
Enabled: true
Lint/NumberedParameterAssignment:
Enabled: true
Lint/OrAssignmentToConstant:
Expand All @@ -558,8 +548,6 @@ Lint/RedundantDirGlobSort:
Enabled: true
Lint/RefinementImportMethods:
Enabled: true
Lint/RequireRangeParentheses:
Enabled: true
Lint/RequireRelativeSelfPath:
Enabled: true
Lint/SymbolConversion:
Expand All @@ -574,12 +562,8 @@ Security/CompoundHash:
Enabled: true
Security/IoMethods:
Enabled: true
Style/EmptyHeredoc:
Enabled: true
Style/EndlessMethod:
Enabled: true
Style/EnvHome:
Enabled: true
Style/FetchEnvVar:
Enabled: true
Style/FileRead:
Expand All @@ -594,10 +578,6 @@ Style/IfWithBooleanLiteralBranches:
Enabled: true
Style/InPatternThen:
Enabled: true
Style/MagicCommentFormat:
Enabled: true
Style/MapCompactWithConditionalBlock:
Enabled: true
Style/MapToHash:
Enabled: true
Style/MultilineInPatternThen:
Expand Down Expand Up @@ -636,27 +616,15 @@ RSpec/BeEq:
Enabled: true
RSpec/BeNil:
Enabled: true
RSpec/ChangeByZero:
Enabled: true
RSpec/ClassCheck:
Enabled: true
RSpec/ExcessiveDocstringSpacing:
Enabled: true
RSpec/IdenticalEqualityAssertion:
Enabled: true
RSpec/NoExpectationExample:
Enabled: true
RSpec/SubjectDeclaration:
Enabled: true
RSpec/VerifiedDoubleReference:
Enabled: true
RSpec/Capybara/SpecificFinders:
Enabled: false
RSpec/Capybara/SpecificMatcher:
Enabled: false
RSpec/FactoryBot/SyntaxMethods:
Enabled: false
RSpec/Rails/AvoidSetupHook:
Enabled: false
RSpec/Rails/HaveHttpStatus:
Enabled: false
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ gem 'rake', '~> 13.0'

group :tests do
gem 'rspec', '~> 3.11'
gem 'rubocop', '~> 1.36'
gem 'rubocop-performance', '~> 1.15'
gem 'rubocop-rspec', '~> 2.13'
gem 'rubocop', '~> 1.28'
gem 'rubocop-performance', '~> 1.13'
gem 'rubocop-rspec', '~> 2.10'
gem 'rubocop-rake', '~> 0.6.0'
end
2 changes: 1 addition & 1 deletion scelint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|

spec.summary = %q{Linter SIMP Compliance Engine data}
spec.homepage = 'https://github.com/simp/rubygem-simp-scelint'
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
Expand Down

0 comments on commit a6868f0

Please sign in to comment.