diff --git a/.travis.yml b/.travis.yml index 883be79..1f7923a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,11 @@ gemfile: - gemfiles/rails40.gemfile - gemfiles/rails42.gemfile - gemfiles/rails50.gemfile + - gemfiles/rails51.gemfile + - gemfiles/rails_edge.gemfile matrix: fast_finish: true allow_failures: - rvm: ruby-head - rvm: jruby-head + - gemfile: gemfiles/rails_edge.gemfile diff --git a/Appraisals b/Appraisals index dbd7200..c0dfdea 100644 --- a/Appraisals +++ b/Appraisals @@ -27,3 +27,18 @@ appraise "rails50" do gem "sprockets", "< 4.0" gem "sass-rails", "~> 5.0" end + +appraise "rails51" do + gem "rails", "~> 5.1.0" + gem "sprockets", "< 4.0" + gem "sass-rails", "~> 5.0" +end + +appraise "rails_edge" do + git 'git://github.com/rails/rails.git' do + gem "rails" + end + + gem "sprockets", "< 4.0" + gem "sass-rails", "~> 5.0" +end diff --git a/gemfiles/rails51.gemfile b/gemfiles/rails51.gemfile new file mode 100644 index 0000000..c69b35a --- /dev/null +++ b/gemfiles/rails51.gemfile @@ -0,0 +1,19 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rb-fsevent", require: false +gem "ruby_gntp", require: false +gem "guard" +gem "guard-test" +gem "rails", "~> 5.1.0" +gem "sprockets", "< 4.0" +gem "sass-rails", "~> 5.0" + +group :test do + gem "mocha" + gem "appraisal" + gem "minitest" +end + +gemspec path: "../" diff --git a/gemfiles/rails_edge.gemfile b/gemfiles/rails_edge.gemfile new file mode 100644 index 0000000..52639b5 --- /dev/null +++ b/gemfiles/rails_edge.gemfile @@ -0,0 +1,22 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +git "git://github.com/rails/rails.git" do + gem "rails" +end + +gem "rb-fsevent", require: false +gem "ruby_gntp", require: false +gem "guard" +gem "guard-test" +gem "sprockets", "< 4.0" +gem "sass-rails", "~> 5.0" + +group :test do + gem "mocha" + gem "appraisal" + gem "minitest" +end + +gemspec path: "../" diff --git a/test/helpers/rails_helper.rb b/test/helpers/rails_helper.rb index e4fe0de..b22b0d2 100644 --- a/test/helpers/rails_helper.rb +++ b/test/helpers/rails_helper.rb @@ -4,6 +4,8 @@ module RailsHelpers include FileHelper include DebugHelper include CommandHelper + RAILS_5_2 = "5.2" + RAILS_5_1 = "5.1" RAILS_5_0 = "5.0" RAILS_4_2 = "4.2" RAILS_4_0 = "4.0" @@ -13,6 +15,8 @@ module RailsHelpers WORKING_DIR = File.join(ROOT_PATH, 'rails-temp') VERSION_LOOKUP = { + RAILS_5_2 => %r{^5\.2\.}, + RAILS_5_1 => %r{^5\.1\.}, RAILS_5_0 => %r{^5\.0\.}, RAILS_4_2 => %r{^4\.2\.}, RAILS_4_0 => %r{^4\.0\.}, @@ -21,6 +25,8 @@ module RailsHelpers } GEMFILES = { + RAILS_5_2 => GEMFILES_DIR.join("rails_edge.gemfile").to_s, + RAILS_5_1 => GEMFILES_DIR.join("rails51.gemfile").to_s, RAILS_5_0 => GEMFILES_DIR.join("rails50.gemfile").to_s, RAILS_4_2 => GEMFILES_DIR.join("rails42.gemfile").to_s, RAILS_4_0 => GEMFILES_DIR.join("rails40.gemfile").to_s,