Skip to content

Commit

Permalink
Update dependencies, test against ActiveAdmin 1.0 and add Rails 5.0 a…
Browse files Browse the repository at this point in the history
…nd 5.1
  • Loading branch information
Lawrence Oluyede committed Aug 28, 2017
1 parent 91184c3 commit 4101fdd
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 50 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 9 additions & 9 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions activeadmin-globalize.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Gem::Specification.new do |s|
s.email = ['[email protected]', '[email protected]']
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'

Expand Down
16 changes: 8 additions & 8 deletions gemfiles/rails4_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: "../"
18 changes: 9 additions & 9 deletions gemfiles/rails4_1.gemfile → gemfiles/rails5_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: "../"
20 changes: 10 additions & 10 deletions gemfiles/activeadmin_master.gemfile → gemfiles/rails5_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: "../"
2 changes: 1 addition & 1 deletion lib/active_admin/globalize/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ActiveAdmin
module Globalize
VERSION = '1.1.0'
VERSION = '1.0.0'
end
end

0 comments on commit 4101fdd

Please sign in to comment.