mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Test against for Rails 6.0
Use sqlite >= 1.4 with Rails 6.0 Use dynamoid >= 3.3 with Rails 6.0
This commit is contained in:
parent
e78b48d3c4
commit
46845cd01d
6 changed files with 46 additions and 4 deletions
|
@ -33,6 +33,7 @@ gemfile:
|
|||
# - gemfiles/rails_5.0_nobrainer.gemfile
|
||||
- gemfiles/rails_5.1.gemfile
|
||||
- gemfiles/rails_5.2.gemfile
|
||||
- gemfiles/rails_6.0.gemfile
|
||||
|
||||
before_script:
|
||||
- mkdir /tmp/dynamodb
|
||||
|
@ -70,6 +71,8 @@ matrix:
|
|||
gemfile: gemfiles/rails_5.1.gemfile
|
||||
- rvm: jruby-9.1.12.0
|
||||
gemfile: gemfiles/rails_5.2.gemfile
|
||||
- rvm: jruby-9.1.12.0
|
||||
gemfile: gemfiles/rails_6.0.gemfile
|
||||
# - rvm: jruby-9.1.12.0
|
||||
# gemfile: gemfiles/rails_4.2_nobrainer.gemfile
|
||||
# - rvm: jruby-9.1.12.0
|
||||
|
|
17
Appraisals
17
Appraisals
|
@ -1,6 +1,7 @@
|
|||
appraise 'rails_4.2' do
|
||||
gem 'nokogiri', '1.6.8.1', platforms: %i[ruby_19]
|
||||
gem 'mime-types', '~> 2', platforms: %i[ruby_19 jruby]
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '4.2.5'
|
||||
gem 'mongoid', '~> 4.0'
|
||||
gem 'sequel'
|
||||
|
@ -12,11 +13,13 @@ appraise 'rails_4.2' do
|
|||
end
|
||||
|
||||
appraise 'rails_4.2_nobrainer' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '4.2.5'
|
||||
gem 'nobrainer', '~> 0.33.0'
|
||||
end
|
||||
|
||||
appraise 'rails_4.2_mongoid_5' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'mime-types', '~> 2', platforms: %i[ruby_19 jruby]
|
||||
gem 'rails', '4.2.5'
|
||||
gem 'mongoid', '~> 5.0'
|
||||
|
@ -25,6 +28,7 @@ appraise 'rails_4.2_mongoid_5' do
|
|||
end
|
||||
|
||||
appraise 'rails_5.0' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '5.0.0'
|
||||
gem 'mongoid', '~> 6.0'
|
||||
gem 'sequel'
|
||||
|
@ -35,11 +39,13 @@ appraise 'rails_5.0' do
|
|||
end
|
||||
|
||||
appraise 'rails_5.0_nobrainer' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '5.0.0'
|
||||
gem 'nobrainer', '~> 0.33.0'
|
||||
end
|
||||
|
||||
appraise 'rails_5.1' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '5.1'
|
||||
gem 'mongoid', '~>6.0'
|
||||
gem 'sequel'
|
||||
|
@ -50,6 +56,7 @@ appraise 'rails_5.1' do
|
|||
end
|
||||
|
||||
appraise 'rails_5.2' do
|
||||
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
||||
gem 'rails', '5.2'
|
||||
gem 'mongoid', '~>6.0'
|
||||
gem 'sequel'
|
||||
|
@ -59,6 +66,16 @@ appraise 'rails_5.2' do
|
|||
gem "after_commit_everywhere", "~> 1.0"
|
||||
end
|
||||
|
||||
appraise 'rails_6.0' do
|
||||
gem 'rails', '6.0'
|
||||
gem 'mongoid', '~>7.0', '>= 7.0.5'
|
||||
gem 'sequel'
|
||||
gem 'dynamoid', '~>3.3', platforms: :ruby
|
||||
gem 'aws-sdk-dynamodb', '~> 1'
|
||||
gem 'redis-objects'
|
||||
gem "after_commit_everywhere", "~> 1.0"
|
||||
end
|
||||
|
||||
appraise 'norails' do
|
||||
gem 'sqlite3', '~> 1.3', '>= 1.3.5', platforms: :ruby
|
||||
gem 'rails', install_if: false
|
||||
|
|
4
Gemfile
4
Gemfile
|
@ -2,6 +2,6 @@ source "https://rubygems.org"
|
|||
|
||||
gemspec
|
||||
|
||||
gem 'sqlite3', '~> 1.3.5', :platforms => :ruby
|
||||
gem 'rails', '5.1.4'
|
||||
gem 'sqlite3', '~> 1.4', :platforms => :ruby
|
||||
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
|
||||
gem 'after_commit_everywhere', '~> 1.0'
|
||||
|
|
14
gemfiles/rails_6.0.gemfile
Normal file
14
gemfiles/rails_6.0.gemfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "sqlite3", "~> 1.4", platforms: :ruby
|
||||
gem "rails", "6.0"
|
||||
gem "after_commit_everywhere", "~> 1.0"
|
||||
gem "mongoid", "~>7.0", ">= 7.0.5"
|
||||
gem "sequel"
|
||||
gem "dynamoid", "~>3.3", platforms: :ruby
|
||||
gem "aws-sdk-dynamodb", "~> 1"
|
||||
gem "redis-objects"
|
||||
|
||||
gemspec path: "../"
|
|
@ -2,8 +2,12 @@
|
|||
|
||||
begin
|
||||
require 'dynamoid'
|
||||
require 'aws-sdk-resources'
|
||||
puts "dynamoid #{Dynamoid::VERSION} gem found, running Dynamoid specs \e[32m#{'✔'}\e[0m"
|
||||
if Gem::Version.new(Dynamoid::VERSION) >= Gem::Version.new('3.0.0')
|
||||
require 'aws-sdk-dynamodb'
|
||||
else
|
||||
require 'aws-sdk-resources'
|
||||
end
|
||||
|
||||
ENV['ACCESS_KEY'] ||= 'abcd'
|
||||
ENV['SECRET_KEY'] ||= '1234'
|
||||
|
|
|
@ -23,7 +23,11 @@ end
|
|||
# Dynamoid initialization
|
||||
begin
|
||||
require 'dynamoid'
|
||||
if Gem::Version.new(Dynamoid::VERSION) >= Gem::Version.new('3.0.0')
|
||||
require 'aws-sdk-dynamodb'
|
||||
else
|
||||
require 'aws-sdk-resources'
|
||||
end
|
||||
|
||||
ENV['ACCESS_KEY'] ||= 'abcd'
|
||||
ENV['SECRET_KEY'] ||= '1234'
|
||||
|
|
Loading…
Reference in a new issue