Skip to content

Commit

Permalink
Enable new RuboCop cops
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Sep 29, 2024
1 parent f0ebac4 commit 85c5c96
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ Lint/LiteralAssignmentInCondition: # new in 1.58
Enabled: true
Style/SuperWithArgsParentheses: # new in 1.58
Enabled: true
Gemspec/AddRuntimeDependency: # new in 1.65
Enabled: true
Lint/UselessNumericOperation: # new in 1.66
Enabled: true
Style/MapIntoArray: # new in 1.63
Enabled: true
Style/RedundantInterpolationUnfreeze: # new in 1.66
Enabled: true
Style/SendWithLiteralMethodName: # new in 1.64
Enabled: true
Style/SuperArguments: # new in 1.64
Enabled: true

AllCops:
TargetRubyVersion: 2.5
Expand Down
10 changes: 5 additions & 5 deletions adsf-live/adsf-live.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.5'

s.add_runtime_dependency('adsf', '~> 1.3')
s.add_runtime_dependency('em-websocket', '~> 0.5')
s.add_runtime_dependency('eventmachine', '~> 1.2')
s.add_runtime_dependency('listen', '~> 3.0')
s.add_runtime_dependency('rack-livereload', '~> 0.3')
s.add_dependency('adsf', '~> 1.3')
s.add_dependency('em-websocket', '~> 0.5')
s.add_dependency('eventmachine', '~> 1.2')
s.add_dependency('listen', '~> 3.0')
s.add_dependency('rack-livereload', '~> 0.3')

s.files = ['NEWS.md', 'README.md'] + Dir['lib/**/*.rb']
s.require_path = 'lib'
Expand Down
4 changes: 2 additions & 2 deletions adsf/adsf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Gem::Specification.new do |s|
s.email = '[email protected]'

s.required_ruby_version = '>= 2.5'
s.add_runtime_dependency('rack', '>= 1.0.0', '< 4.0.0')
s.add_runtime_dependency('rackup', '~> 2.1')
s.add_dependency('rack', '>= 1.0.0', '< 4.0.0')
s.add_dependency('rackup', '~> 2.1')

s.files = ['NEWS.md', 'README.md'] + Dir['bin/**/*'] + Dir['lib/**/*.rb']
s.executables = ['adsf']
Expand Down

0 comments on commit 85c5c96

Please sign in to comment.