Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.3
TargetRubyVersion: 2.4

# Offense count: 1
# Configuration parameters: CountComments, ExcludedMethods.
Expand Down
4 changes: 1 addition & 3 deletions lib/rubocop/cop/sequel/concurrent_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class ConcurrentIndex < Cop

def on_send(node)
indexes?(node) do |args|
if offensive?(args)
add_offense(node, location: :selector, message: MSG)
end
add_offense(node, location: :selector, message: MSG) if offensive?(args)
end
end

Expand Down
8 changes: 5 additions & 3 deletions rubocop-sequel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'rubocop-sequel'
gem.require_paths = ['lib']
gem.version = '0.0.6'
gem.version = '0.1.0'

gem.add_runtime_dependency 'rubocop', '~> 0.55', '>= 0.55'
gem.required_ruby_version = '~> 2.4'

gem.add_runtime_dependency 'rubocop', '~> 1.0', '>= 1.0.0'

gem.add_development_dependency 'rake', '~> 12.3.0', '>= 12.0.0'
gem.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
gem.add_development_dependency 'rubocop-rspec', '~> 1.25.0', '>= 1.25.0'
gem.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.0'
gem.add_development_dependency 'sequel', '~> 4.49', '>= 4.49.0'
gem.add_development_dependency 'simplecov', '~> 0.16'
gem.add_development_dependency 'sqlite3', '~> 1.3', '>= 1.3.12'
Expand Down