From 5db72986ff69dc9b423be4bfb0ee485d8c55823a Mon Sep 17 00:00:00 2001 From: Ahmad Musaffa Date: Thu, 31 Mar 2016 10:35:08 +0600 Subject: [PATCH] Update travis test supports --- .travis.yml | 15 +++++++++++---- Appraisals | 2 +- README.md | 26 +++++++++++--------------- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index d8961a5..5b9eae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,17 @@ language: ruby + rvm: - - 2.1.2 - - 2.0.0 - - 1.9.3 + - 2.0 + - 2.2.3 + - ruby-head + - jruby-9.0.4.0 + gemfile: - - gemfiles/rails_4.1.gemfile + - gemfiles/rails_4.2.gemfile - gemfiles/rails_4.0.gemfile - gemfiles/rails_3.2.gemfile - gemfiles/rails_3.1.gemfile + +matrix: + allow_failures: + - rvm: ruby-head diff --git a/Appraisals b/Appraisals index e45e666..c5988b1 100644 --- a/Appraisals +++ b/Appraisals @@ -12,4 +12,4 @@ end appraise 'rails-4.1' do gem 'rails', '4.1.6' -end \ No newline at end of file +end diff --git a/README.md b/README.md index 58f7b4d..2097014 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,7 @@ It supports the following adapters: Supported platforms: -* Ruby versions - 1.9.3, 2.0, 2.1 or greater -* Rails versions - 3.1, 3.2, 4.0, 4.1 or greater - -(let me know if it works on lesser rails versions) +* Rails versions - 3 and 4. ## Installation @@ -222,12 +219,16 @@ This `remove_polymorphic_constraints` will delete all the existing `:imageable` ## Tests ```ruby -rake -rake test:unit -rake test:integration:all -rake test:integration:sqlite -rake test:integration:postgresql -rake test:integration:mysql +$ rake +$ rake test:unit +$ rake test:integration:all +$ rake test:integration:sqlite +$ rake test:integration:postgresql +$ rake test:integration:mysql + +# test different active model versions +$ appraisal install +$ appraisal rake ``` ## Problems @@ -246,11 +247,6 @@ Please use GitHub's [issue tracker](http://github.com/musaffa/polymorphic_constr 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request -## Inspirations - -* [Foreigner](https://github.com/matthuhiggins/foreigner) -* [Fides](https://github.com/mkraft/fides) - ## License This project rocks and uses MIT-LICENSE.