From f147e8a066757cb7cefb889ca3f35490feb4c441 Mon Sep 17 00:00:00 2001 From: Klas Eskilson Date: Mon, 23 Jul 2018 20:45:53 +0200 Subject: [PATCH] Add rubocop fixes --- .rubocop.yml | 5 ++++- administrate-field-belongs_to_search.gemspec | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index d94e546..c8302f4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -31,5 +31,8 @@ Rails/ApplicationRecord: Exclude: - 'spec/**/*' -Style/TrailingCommaInLiteral: +Style/TrailingCommaInHashLiteral: + EnforcedStyleForMultiline: comma + +Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma diff --git a/administrate-field-belongs_to_search.gemspec b/administrate-field-belongs_to_search.gemspec index 3ff7eb2..d4ea1c9 100755 --- a/administrate-field-belongs_to_search.gemspec +++ b/administrate-field-belongs_to_search.gemspec @@ -1,6 +1,4 @@ -# coding: utf-8 - -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |gem|