Skip to content

Commit

Permalink
Merge pull request #1193 from yahonda/bump_rubocop
Browse files Browse the repository at this point in the history
Bump RuboCop
  • Loading branch information
deivid-rodriguez authored Dec 31, 2020
2 parents 48b2e28 + b0d0980 commit 9d336ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
AllCops:
# TargetRubyVersion value is based on `required_ruby_version = '>= 2.3'` in the ransack.gemspec
TargetRubyVersion: 2.3
TargetRubyVersion: 2.6

DisabledByDefault: true

Expand Down Expand Up @@ -31,6 +30,9 @@ Layout/SpaceInsideParens:
Layout/TrailingEmptyLines:
Enabled: true

Style/RedundantFileExtensionInRequire:
Enabled: true

Style/RedundantReturn:
Enabled: true

Expand Down
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,4 @@ group :test do
gem 'simplecov', :require => false
end

# RuboCop 0.81.0 is the last version which supports Ruby 2.3.
# Once Ransack required_ruby_version is bumped, RuboCop version can be bumped.
# https://github.com/rubocop-hq/rubocop/pull/7869
gem 'rubocop', '=0.81.0', require: false
gem 'rubocop', require: false
2 changes: 1 addition & 1 deletion lib/ransack.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'active_support/core_ext'
require 'ransack/configuration'
require 'ransack/adapters'
require 'polyamorous/polyamorous.rb'
require 'polyamorous/polyamorous'

Ransack::Adapters.object_mapper.require_constants

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'machinist/active_record'
require 'polyamorous/polyamorous.rb'
require 'polyamorous/polyamorous'
require 'sham'
require 'faker'
require 'ransack'
Expand Down

0 comments on commit 9d336ce

Please sign in to comment.