From 574f4921c6bb7d72b2d1fd23ef926688ffb5743a Mon Sep 17 00:00:00 2001 From: Klas Eskilson Date: Wed, 29 Mar 2017 16:49:04 +0200 Subject: [PATCH 1/2] Support Administrate < 0.6.0 --- administrate-field-belongs_to_search.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrate-field-belongs_to_search.gemspec b/administrate-field-belongs_to_search.gemspec index 9915257..b3a139a 100755 --- a/administrate-field-belongs_to_search.gemspec +++ b/administrate-field-belongs_to_search.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |gem| gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) } gem.test_files = `git ls-files -z -- {spec}/*`.split("\x0") - gem.add_dependency 'administrate', '>= 0.3', '< 0.5' + gem.add_dependency 'administrate', '>= 0.3', '< 0.6' gem.add_dependency 'rails', '>= 4.2', '< 5.1' gem.add_dependency 'selectize-rails', '~> 0.6' From b34ee38240ecc801029c23d61680a9839ab12366 Mon Sep 17 00:00:00 2001 From: Klas Eskilson Date: Wed, 29 Mar 2017 17:01:21 +0200 Subject: [PATCH 2/2] Rubocop fixes --- .travis.yml | 2 +- administrate-field-belongs_to_search.gemspec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5b4e39..9f919d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,5 @@ rvm: cache: bundler install: bundle install script: - - bundle exec rubocop + - bundle exec rubocop -D - bundle exec rake diff --git a/administrate-field-belongs_to_search.gemspec b/administrate-field-belongs_to_search.gemspec index b3a139a..7100c0e 100755 --- a/administrate-field-belongs_to_search.gemspec +++ b/administrate-field-belongs_to_search.gemspec @@ -1,4 +1,5 @@ # coding: utf-8 + lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) @@ -28,6 +29,6 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'sqlite3', '~> 1.3' gem.description = <<-DESCRIPTION -Add support to search through (potentially large) belongs_to associations in your Administrate dashboards. + Add support to search through (potentially large) belongs_to associations in your Administrate dashboards. DESCRIPTION end