Commit 91355e86 by John Hawthorn Committed by GitHub

Merge pull request #470 from jarednorman/activerecord-6-support

Activerecord 6 support
parents ccf85e50 c9b1c8a1
...@@ -7,23 +7,33 @@ rvm: ...@@ -7,23 +7,33 @@ rvm:
- 2.3.8 - 2.3.8
- 2.4.5 - 2.4.5
- 2.5.3 - 2.5.3
- 2.6.1 - 2.6.3
- jruby-9.1.6.0 - jruby-9.1.6.0
env: env:
matrix: matrix:
- RAILS='~> 4.2.0' - RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.0.0' - RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.1.0' - RAILS='~> 5.1.0'
- RAILS='~> 5.2.0' - RAILS='~> 5.2.0'
- RAILS='master'
matrix: matrix:
allow_failures: allow_failures:
- env: RAILS='~> 4.2.0' - env: RAILS='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
rvm: jruby-9.1.6.0 rvm: jruby-9.1.6.0
- env: RAILS='~> 5.0.0' - env: RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
rvm: jruby-9.1.6.0 rvm: jruby-9.1.6.0
- env: RAILS='~> 5.1.0' - env: RAILS='~> 5.1.0'
rvm: jruby-9.1.6.0 rvm: jruby-9.1.6.0
- env: RAILS='~> 5.2.0' - env: RAILS='~> 5.2.0'
rvm: jruby-9.1.6.0 rvm: jruby-9.1.6.0
- env: RAILS='master'
rvm: jruby-9.1.6.0
exclude:
- rvm: 2.2
env: RAILS='master'
- rvm: 2.3.8
env: RAILS='master'
- rvm: 2.4.5
env: RAILS='master'
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'sqlite3', platforms: [:ruby] sqlite = ENV['SQLITE_VERSION']
if sqlite
gem 'sqlite3', sqlite, platforms: [:ruby]
else
gem 'sqlite3', platforms: [:ruby]
end
platforms :jruby do platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter' gem 'activerecord-jdbcsqlite3-adapter'
end end
platforms :rbx do platforms :rbx do
gem 'rubinius-developer_tools'
gem 'rubysl', '~> 2.0' gem 'rubysl', '~> 2.0'
gem 'rubysl-test-unit' gem 'rubysl-test-unit'
gem 'rubinius-developer_tools'
end end
rails = ENV['RAILS'] || '~> 5.2.0' rails = ENV['RAILS'] || '~> 5.2.0'
gem 'rails', rails if rails == 'master'
gem 'rails', github: 'rails/rails'
else
gem 'rails', rails
end
# Specify your gem's dependencies in paranoia.gemspec # Specify your gem's dependencies in paranoia.gemspec
gemspec gemspec
require 'active_record' unless defined? ActiveRecord require 'active_record' unless defined? ActiveRecord
if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2] if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2] ||
ActiveRecord::VERSION::MAJOR > 5
require 'paranoia/active_record_5_2' require 'paranoia/active_record_5_2'
end end
......
...@@ -24,7 +24,7 @@ Gem::Specification.new do |s| ...@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.0' s.required_ruby_version = '>= 2.0'
s.add_dependency 'activerecord', '>= 4.0', '< 5.3' s.add_dependency 'activerecord', '>= 4.0', '< 6.1'
s.add_development_dependency "bundler", ">= 1.0.0" s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "rake" s.add_development_dependency "rake"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment