Skip to content

Commit

Permalink
See if we can't expand compatibility again
Browse files Browse the repository at this point in the history
  • Loading branch information
williamatodd committed Dec 10, 2020
1 parent 4f92be9 commit 2fde067
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
32 changes: 23 additions & 9 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
# frozen_string_literal: true

appraise 'rails-5-sqlite3' do
appraise 'rails_4_2_sqlite3' do
gem 'rails', '4.2.11.3'
gem 'sqlite3', '~> 1.3.6'
end

appraise 'rails_5_2_sqlite3' do
gem 'rails', '5.2.4.4'
gem 'sqlite3'
gem 'sqlite3', '~> 1.3.6'
end

if Gem::Requirement.new('>= 2.5.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
appraise 'rails_6_0_sqlite3' do
gem 'rails', '6.0.3.4'
gem 'sqlite3', '~> 1.4'
end
end

appraise 'rails-6-sqlite3' do
gem 'rails', '6.0.3.4'
gem 'sqlite3'
appraise 'rails_4_2_mongodb' do
gem 'rails', '4.2.11.3'
gem 'mongoid', '5.4'
end

appraise 'rails-5-mongodb' do
appraise 'rails_5_2_mongodb' do
gem 'rails', '5.2.4.4'
gem 'mongoid', '6.4'
end

appraise 'rails-6-mongodb' do
gem 'rails', '6.0.3.4'
gem 'mongoid', '7.2'
if Gem::Requirement.new('>= 2.5.0').satisfied_by?(Gem::Version.new(RUBY_VERSION))
appraise 'rails_6_0_mongodb' do
gem 'rails', '6.0.3.4'
gem 'mongoid', '7.2'
end
end
7 changes: 5 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

echo "Installing dependencies"
gem install bundler --conservative
bundle check || bundle install
gem update --system --force --no-document
gem uninstall -v '>= 2' bundler || true
gem install bundler -v '< 2' --no-document

bundle check || bundle install --jobs=3 --retry=3

bundle exec appraisal install

Expand Down
4 changes: 3 additions & 1 deletion devise_2fa.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']

gem.add_dependency "rails", ">= 4.1", "< 6.1"
gem.required_ruby_version = '>= 2.4.0'

gem.add_dependency 'rails', '>= 4.1', '< 6.1'

gem.add_runtime_dependency 'devise', '~> 4.6'
gem.add_runtime_dependency 'rotp', '~> 5.1'
Expand Down

0 comments on commit 2fde067

Please sign in to comment.