From 4101fdd787e508764d9ec691b9ae1b739b28c118 Mon Sep 17 00:00:00 2001 From: Lawrence Oluyede Date: Mon, 28 Aug 2017 15:41:38 +0200 Subject: [PATCH] Update dependencies, test against ActiveAdmin 1.0 and add Rails 5.0 and 5.1 --- .travis.yml | 12 +++++------ Appraisals | 18 ++++++++--------- Gemfile | 6 +++--- README.md | 2 +- activeadmin-globalize.gemspec | 4 ++-- gemfiles/rails4_2.gemfile | 16 +++++++-------- .../{rails4_1.gemfile => rails5_0.gemfile} | 18 ++++++++--------- ...eadmin_master.gemfile => rails5_1.gemfile} | 20 +++++++++---------- lib/active_admin/globalize/version.rb | 2 +- 9 files changed, 48 insertions(+), 50 deletions(-) rename gemfiles/{rails4_1.gemfile => rails5_0.gemfile} (58%) rename gemfiles/{activeadmin_master.gemfile => rails5_1.gemfile} (52%) diff --git a/.travis.yml b/.travis.yml index cd2afcb4..773e409d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,13 @@ sudo: false language: ruby # Limit ruby versions to currently supported versions to avoid a big build matrix rvm: - - 2.2 - - 2.3.0 -# Update bundler on travis, since current one is broken, see https://github.com/rubygems/rubygems/issues/1419 -before_install: - - gem install bundler + - 2.2.7 + - 2.3.4 + - 2.4.1 # Load database schema before rake before_script: bundle exec rake db:schema:load # Test on all supported rails versions gemfile: - - gemfiles/activeadmin_master.gemfile - - gemfiles/rails4_1.gemfile - gemfiles/rails4_2.gemfile + - gemfiles/rails5_0.gemfile + - gemfiles/rails5_1.gemfile diff --git a/Appraisals b/Appraisals index 5ff3e2fd..2cd73a66 100644 --- a/Appraisals +++ b/Appraisals @@ -1,15 +1,15 @@ -appraise 'rails4_1' do - gem 'rails', '~> 4.1.12' - gem 'globalize', '~> 4.0.3' +appraise 'rails4_2' do + gem 'rails', '~> 4.2.9' + gem 'globalize', '~> 5.0.0' end -appraise 'rails4_2' do - gem 'rails', '~> 4.2.3' +appraise 'rails5_0' do + gem 'rails', '~> 4.2.9' gem 'globalize', '~> 5.0.0' end -# Run tests on latest github version of ActiveAdmin -appraise 'activeadmin_master' do - gem 'rails', '~> 4.2.0' - gem 'activeadmin', github: 'activeadmin/activeadmin' +appraise 'rails5_1' do + gem 'devise', '~> 4.3' + gem 'rails', '~> 5.1.3' + gem 'globalize', '~> 5.1.0.beta2' end diff --git a/Gemfile b/Gemfile index aaa1189b..f09f859a 100644 --- a/Gemfile +++ b/Gemfile @@ -29,15 +29,15 @@ gem 'devise', '~> 3.2' group :test do gem 'sqlite3', '~> 1.3.5' - gem 'rspec-rails', '~> 2.14.0' + gem 'rspec-rails', '~> 3.6.1' gem 'factory_girl_rails', '~> 4.2.1' gem 'database_cleaner', '~> 1.0.1' gem 'spring', require: false gem 'spring-commands-rspec', require: false - gem 'capybara', '~> 2.1.0' + gem 'capybara', '~> 2.15' gem 'capybara-screenshot' gem 'poltergeist' - gem 'fuubar' + gem 'fuubar', '~> 2.2' gem 'appraisal' # Useful to debug tests gem 'awesome_print' diff --git a/README.md b/README.md index 1ba9b886..9588b0f1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Makes it easy to translate your resource fields. This version targets Rails 4 and greater and ActiveAdmin >= 1.0.0.pre. ```ruby -gem 'activeadmin-globalize', '~> 1.0.0.pre', github: 'fabn/activeadmin-globalize', branch: 'develop' +gem 'activeadmin-globalize', '~> 1.0.0', github: 'fabn/activeadmin-globalize', branch: 'develop' ``` As soon as ActiveAdmin 1.x is released to rubygems, I'll release the gem with no need for github dependency. See diff --git a/activeadmin-globalize.gemspec b/activeadmin-globalize.gemspec index d8073b01..d61d0801 100644 --- a/activeadmin-globalize.gemspec +++ b/activeadmin-globalize.gemspec @@ -11,11 +11,11 @@ Gem::Specification.new do |s| s.email = ['stefano.verna@gmail.com', 'f.napoleoni@gmail.com'] s.homepage = 'http://github.com/fabn/activeadmin-globalize' s.summary = 'Handles globalize translations' - s.description = 'Handles globalize translations in ActiveAdmin 0.6.3 and Rails 3.2.x' + s.description = 'Handles globalize translations in ActiveAdmin 1.0 and Rails 4.x-5.x' s.files = Dir['{app,config,db,lib}/**/*'] + %w(MIT-LICENSE README.md) - s.add_dependency 'activeadmin' + s.add_dependency 'activeadmin', '>= 1.0', '< 1.1' # Try to support rails from 3.2 up to 4.2.x s.add_dependency 'globalize', '>= 3.1.0', '< 6.0' diff --git a/gemfiles/rails4_2.gemfile b/gemfiles/rails4_2.gemfile index 95eae508..4f6e65a0 100644 --- a/gemfiles/rails4_2.gemfile +++ b/gemfiles/rails4_2.gemfile @@ -4,27 +4,27 @@ source "https://rubygems.org" gem "sass-rails" gem "coffee-rails" -gem "therubyracer", :platforms => :ruby +gem "therubyracer", platforms: :ruby gem "uglifier" gem "jquery-rails" gem "devise", "~> 3.2" -gem "rails", "~> 4.2.3" +gem "rails", "~> 4.2.9" gem "globalize", "~> 5.0.0" group :test do gem "sqlite3", "~> 1.3.5" - gem "rspec-rails", "~> 2.14.0" + gem "rspec-rails", "~> 3.6.1" gem "factory_girl_rails", "~> 4.2.1" gem "database_cleaner", "~> 1.0.1" - gem "spring", :require => false - gem "spring-commands-rspec", :require => false - gem "capybara", "~> 2.1.0" + gem "spring", require: false + gem "spring-commands-rspec", require: false + gem "capybara", "~> 2.15" gem "capybara-screenshot" gem "poltergeist" - gem "fuubar" + gem "fuubar", "~> 2.2" gem "appraisal" gem "awesome_print" gem "pry" end -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/rails4_1.gemfile b/gemfiles/rails5_0.gemfile similarity index 58% rename from gemfiles/rails4_1.gemfile rename to gemfiles/rails5_0.gemfile index 9d023afa..4f6e65a0 100644 --- a/gemfiles/rails4_1.gemfile +++ b/gemfiles/rails5_0.gemfile @@ -4,27 +4,27 @@ source "https://rubygems.org" gem "sass-rails" gem "coffee-rails" -gem "therubyracer", :platforms => :ruby +gem "therubyracer", platforms: :ruby gem "uglifier" gem "jquery-rails" gem "devise", "~> 3.2" -gem "rails", "~> 4.1.12" -gem "globalize", "~> 4.0.3" +gem "rails", "~> 4.2.9" +gem "globalize", "~> 5.0.0" group :test do gem "sqlite3", "~> 1.3.5" - gem "rspec-rails", "~> 2.14.0" + gem "rspec-rails", "~> 3.6.1" gem "factory_girl_rails", "~> 4.2.1" gem "database_cleaner", "~> 1.0.1" - gem "spring", :require => false - gem "spring-commands-rspec", :require => false - gem "capybara", "~> 2.1.0" + gem "spring", require: false + gem "spring-commands-rspec", require: false + gem "capybara", "~> 2.15" gem "capybara-screenshot" gem "poltergeist" - gem "fuubar" + gem "fuubar", "~> 2.2" gem "appraisal" gem "awesome_print" gem "pry" end -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/activeadmin_master.gemfile b/gemfiles/rails5_1.gemfile similarity index 52% rename from gemfiles/activeadmin_master.gemfile rename to gemfiles/rails5_1.gemfile index f998d30f..c48e8de5 100644 --- a/gemfiles/activeadmin_master.gemfile +++ b/gemfiles/rails5_1.gemfile @@ -4,27 +4,27 @@ source "https://rubygems.org" gem "sass-rails" gem "coffee-rails" -gem "therubyracer", :platforms => :ruby +gem "therubyracer", platforms: :ruby gem "uglifier" gem "jquery-rails" -gem "devise", "~> 3.2" -gem "rails", "~> 4.2.0" -gem "activeadmin", :github => "activeadmin/activeadmin" +gem "devise", "~> 4.3" +gem "rails", "~> 5.1.3" +gem "globalize", "~> 5.1.0.beta2" group :test do gem "sqlite3", "~> 1.3.5" - gem "rspec-rails", "~> 2.14.0" + gem "rspec-rails", "~> 3.6.1" gem "factory_girl_rails", "~> 4.2.1" gem "database_cleaner", "~> 1.0.1" - gem "spring", :require => false - gem "spring-commands-rspec", :require => false - gem "capybara", "~> 2.1.0" + gem "spring", require: false + gem "spring-commands-rspec", require: false + gem "capybara", "~> 2.15" gem "capybara-screenshot" gem "poltergeist" - gem "fuubar" + gem "fuubar", "~> 2.2" gem "appraisal" gem "awesome_print" gem "pry" end -gemspec :path => "../" +gemspec path: "../" diff --git a/lib/active_admin/globalize/version.rb b/lib/active_admin/globalize/version.rb index 0854d0a6..13702a9d 100644 --- a/lib/active_admin/globalize/version.rb +++ b/lib/active_admin/globalize/version.rb @@ -1,5 +1,5 @@ module ActiveAdmin module Globalize - VERSION = '1.1.0' + VERSION = '1.0.0' end end