diff --git a/.ruby-version b/.ruby-version index 0bee604..ec1cf33 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.3.3 +2.6.3 diff --git a/cw-style.gemspec b/cw-style.gemspec index df45fef..fe4c788 100644 --- a/cw-style.gemspec +++ b/cw-style.gemspec @@ -28,10 +28,11 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "rubocop", ">= 0.53.0" + spec.add_dependency "rubocop", ">= 0.74.0" spec.add_dependency "rubocop-rspec-focused", "= 0.0.3" spec.add_dependency "rubocop-thread_safety" - spec.add_development_dependency "bundler", "~> 1.15" + spec.add_dependency "rubocop-rails" + spec.add_development_dependency "bundler", "~> 2.0.2" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec" spec.add_development_dependency "debugger-ruby_core_source" diff --git a/default.yml b/default.yml index 54bbe8b..07d45d1 100644 --- a/default.yml +++ b/default.yml @@ -1,12 +1,13 @@ require: - rubocop/rspec/focused - rubocop-thread_safety + - rubocop-rails - ./lib/unless_with_multiple_conditions - ./lib/private_attribute_accessors - ./lib/update_not_update_attributes AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.6 Exclude: - '*.gemspec' diff --git a/lib/charity_water/style/version.rb b/lib/charity_water/style/version.rb index 299a270..3db180c 100644 --- a/lib/charity_water/style/version.rb +++ b/lib/charity_water/style/version.rb @@ -1,5 +1,5 @@ module CharityWater module Style - VERSION = '2.2.0'.freeze + VERSION = '3.0.0'.freeze end end diff --git a/spec/private_attribute_accessors_spec.rb b/spec/private_attribute_accessors_spec.rb index 07ba16e..f9d80cf 100644 --- a/spec/private_attribute_accessors_spec.rb +++ b/spec/private_attribute_accessors_spec.rb @@ -25,7 +25,7 @@ def parse_source(source, file = nil) file = file.path end - RuboCop::ProcessedSource.new(source, 2.3, file) + RuboCop::ProcessedSource.new(source, 2.6, file) end def _investigate(cop, processed_source) diff --git a/spec/unless_with_multiple_conditions_spec.rb b/spec/unless_with_multiple_conditions_spec.rb index 31857f9..becc37f 100644 --- a/spec/unless_with_multiple_conditions_spec.rb +++ b/spec/unless_with_multiple_conditions_spec.rb @@ -23,7 +23,7 @@ def parse_source(source, file = nil) file = file.path end - RuboCop::ProcessedSource.new(source, 2.3, file) + RuboCop::ProcessedSource.new(source, 2.6, file) end def _investigate(cop, processed_source) diff --git a/spec/update_not_update_attributes_spec.rb b/spec/update_not_update_attributes_spec.rb index f4a1f82..85a9753 100644 --- a/spec/update_not_update_attributes_spec.rb +++ b/spec/update_not_update_attributes_spec.rb @@ -23,7 +23,7 @@ def parse_source(source, file = nil) file = file.path end - RuboCop::ProcessedSource.new(source, 2.3, file) + RuboCop::ProcessedSource.new(source, 2.6, file) end def _investigate(cop, processed_source)