Skip to content

Commit

Permalink
Merge pull request #156 from mediafinger/rails6
Browse files Browse the repository at this point in the history
Add support for Rails 6.0
  • Loading branch information
bsedat committed Aug 7, 2019
2 parents 5549aba + 6fb9f81 commit 10800a1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,7 @@ sudo: false
language: ruby
cache: bundler
before_install:
- gem update --system
- gem i rubygems-update -v '<3' && update_rubygems
- gem update bundler
gemfile:
- Gemfile
Expand All @@ -11,12 +11,15 @@ gemfile:
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6_0.gemfile
rvm:
- "2.1"
- "2.2"
- "2.3.4"
- "2.4.0"
- "2.4.1"
- "2.5"
- "2.6"
matrix:
exclude:
- rvm: "2.1"
Expand All @@ -31,3 +34,13 @@ matrix:
gemfile: gemfiles/rails_5_2.gemfile
- rvm: "2.2"
gemfile: gemfiles/rails_5_2.gemfile
- rvm: "2.1"
gemfile: gemfiles/rails_6_0.gemfile
- rvm: "2.2"
gemfile: gemfiles/rails_6_0.gemfile
- rvm: "2.3.4"
gemfile: gemfiles/rails_6_0.gemfile
- rvm: "2.4.0"
gemfile: gemfiles/rails_6_0.gemfile
- rvm: "2.4.1"
gemfile: gemfiles/rails_6_0.gemfile
5 changes: 5 additions & 0 deletions Appraisals
Expand Up @@ -22,3 +22,8 @@ appraise "rails-5-2" do
gem 'railties', '~> 5.2'
gem 'activesupport', '~> 5.2'
end

appraise "rails-6-0" do
gem 'railties', '~> 6.0'
gem 'activesupport', '~> 6.0'
end
4 changes: 2 additions & 2 deletions devise-two-factor.gemspec
Expand Up @@ -24,8 +24,8 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- spec/*`.split("\n")
s.require_paths = ['lib']

s.add_runtime_dependency 'railties', '< 5.3'
s.add_runtime_dependency 'activesupport', '< 5.3'
s.add_runtime_dependency 'railties', '< 6.1'
s.add_runtime_dependency 'activesupport', '< 6.1'
s.add_runtime_dependency 'attr_encrypted', '>= 1.3', '< 4', '!= 2'
s.add_runtime_dependency 'devise', '~> 4.0'
s.add_runtime_dependency 'rotp', '~> 2.0'
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_6_0.gemfile
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "railties", "~> 6.0.0.rc2"
gem "activesupport", "~> 6.0.0.rc2"

gemspec path: "../"

0 comments on commit 10800a1

Please sign in to comment.