diff --git a/.travis.yml b/.travis.yml index 5b894a2ce..9f35d3a8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,10 @@ rvm: - 2.4.2 - 2.5.0 +gemfile: + - gemfiles/rails_5_0.gemfile + - gemfiles/rails_5_1.gemfile + env: global: - RAILS_ENV=test diff --git a/Appraisals b/Appraisals new file mode 100644 index 000000000..0f7f81c32 --- /dev/null +++ b/Appraisals @@ -0,0 +1,8 @@ +[ + { name: '5-0', version: '5.0.7' }, + { name: '5-1', version: '5.1.6' }, +].each do |rails| + appraise "rails-#{rails[:name]}" do + gem "rails", "~> #{rails[:version]}" + end +end diff --git a/Gemfile.lock b/Gemfile.lock index 912e48bcb..55cc5c72c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -80,6 +80,10 @@ GEM addressable (2.5.1) public_suffix (~> 2.0, >= 2.0.2) ansi (1.5.0) + appraisal (2.2.0) + bundler + rake + thor (>= 0.14.0) arel (8.0.0) attr_encrypted (3.0.3) encryptor (~> 3.0.0) @@ -273,6 +277,7 @@ PLATFORMS ruby DEPENDENCIES + appraisal attr_encrypted codeclimate-test-reporter devise_token_auth! diff --git a/devise_token_auth.gemspec b/devise_token_auth.gemspec index 747c62d4f..5620cacf0 100644 --- a/devise_token_auth.gemspec +++ b/devise_token_auth.gemspec @@ -21,6 +21,7 @@ Gem::Specification.new do |s| s.add_dependency "rails", "< 6" s.add_dependency "devise", "> 3.5.2", "< 4.5" + s.add_development_dependency 'appraisal' s.add_development_dependency "sqlite3", "~> 1.3" s.add_development_dependency 'pg' s.add_development_dependency 'mysql2' diff --git a/gemfiles/rails_5_0.gemfile b/gemfiles/rails_5_0.gemfile new file mode 100644 index 000000000..8ff29fc8a --- /dev/null +++ b/gemfiles/rails_5_0.gemfile @@ -0,0 +1,37 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 5.0.7" + +group :development, :test do + gem "attr_encrypted" + gem "figaro", git: "https://github.com/laserlemon/figaro" + gem "omniauth-facebook", git: "https://github.com/mkdynamic/omniauth-facebook" + gem "omniauth-github", git: "https://github.com/intridea/omniauth-github" + gem "omniauth-google-oauth2", git: "https://github.com/zquestz/omniauth-google-oauth2" + gem "rack-cors", require: "rack/cors" + gem "thor" + gem "faker" + gem "fuzz_ball" + gem "guard" + gem "guard-minitest" + gem "minitest" + gem "minitest-focus" + gem "minitest-rails" + gem "minitest-reporters" + gem "mocha" + gem "pry" + gem "pry-remote" +end + +group :test do + gem "codeclimate-test-reporter", require: nil + gem "rails-controller-testing" +end + +group :development do + gem "github_changelog_generator" +end + +gemspec path: "../" diff --git a/gemfiles/rails_5_1.gemfile b/gemfiles/rails_5_1.gemfile new file mode 100644 index 000000000..8e4189419 --- /dev/null +++ b/gemfiles/rails_5_1.gemfile @@ -0,0 +1,37 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 5.1.6" + +group :development, :test do + gem "attr_encrypted" + gem "figaro", git: "https://github.com/laserlemon/figaro" + gem "omniauth-facebook", git: "https://github.com/mkdynamic/omniauth-facebook" + gem "omniauth-github", git: "https://github.com/intridea/omniauth-github" + gem "omniauth-google-oauth2", git: "https://github.com/zquestz/omniauth-google-oauth2" + gem "rack-cors", require: "rack/cors" + gem "thor" + gem "faker" + gem "fuzz_ball" + gem "guard" + gem "guard-minitest" + gem "minitest" + gem "minitest-focus" + gem "minitest-rails" + gem "minitest-reporters" + gem "mocha" + gem "pry" + gem "pry-remote" +end + +group :test do + gem "codeclimate-test-reporter", require: nil + gem "rails-controller-testing" +end + +group :development do + gem "github_changelog_generator" +end + +gemspec path: "../"