Skip to content

Commit

Permalink
Rails 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwolff committed Dec 28, 2021
1 parent dddaf96 commit 372b877
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rvm:
- 2.4.4
- 2.5.5
- 2.6.3
- 2.7.5
- truffleruby-head

before_install:
Expand All @@ -28,6 +29,7 @@ gemfile:
- gemfiles/5.1.gemfile
- gemfiles/5.2.gemfile
- gemfiles/6.0.gemfile
- gemfiles/7.0.gemfile

matrix:
exclude:
Expand Down Expand Up @@ -99,6 +101,8 @@ matrix:
gemfile: gemfiles/4.1.gemfile
- rvm: 2.6.3
gemfile: gemfiles/4.2.gemfile
- rvm: 2.7.5
gemfile: gemfiles/7.0.gemfile
- rvm: truffleruby-head
gemfile: gemfiles/3.1.gemfile
- rvm: truffleruby-head
Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ appraise '6.0' do
gem 'activerecord', '~> 6.0.0'
gem 'sqlite3', '~> 1.4.1'
end

appraise '7.0' do
gem 'activerecord', '~> 7.0.0'
gem 'sqlite3', '~> 1.4.2'
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'http://rubygems.org'

gem 'activerecord', '>= 3.1.0', '< 7'
gem 'activerecord', '>= 3.1.0', '< 8'
gem 'bundler', '~> 1.17.3', :group => :test
gem 'rake', '~> 12.3', :group => :test

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PLATFORMS
ruby

DEPENDENCIES
activerecord (>= 3.1.0, < 7)
activerecord (>= 3.1.0, < 8)
appraisal
bundler (~> 1.17.3)
minitest
Expand Down
2 changes: 1 addition & 1 deletion deep_cloneable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 1.9.3'
s.require_paths = ['lib']
s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 7'])
s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 8'])
end
10 changes: 10 additions & 0 deletions gemfiles/7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source 'http://rubygems.org'

gem 'activerecord', '~> 7.0.0'
gem 'bundler', '~> 1.17.3', group: :test
gem 'rake', '~> 12.3', group: :test
gem 'appraisal', group: :test
gem 'minitest', group: :test
gem 'sqlite3', '~> 1.4.2'
40 changes: 40 additions & 0 deletions gemfiles/7.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
GEM
remote: http://rubygems.org/
specs:
activemodel (7.0.0)
activesupport (= 7.0.0)
activerecord (7.0.0)
activemodel (= 7.0.0)
activesupport (= 7.0.0)
activesupport (7.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
appraisal (2.4.1)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.1.9)
i18n (1.8.11)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
rake (12.3.3)
sqlite3 (1.4.2)
thor (1.1.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 7.0.0)
appraisal
bundler (~> 1.17.3)
minitest
rake (~> 12.3)
sqlite3 (~> 1.4.2)

BUNDLED WITH
1.17.3
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This gem gives every ActiveRecord::Base object the possibility to do a deep clon

## Requirements

- Ruby 1.9.3, 2.0.0, 2.1.5, 2.2.2, 2.3.0, 2.4.4, 2.5.5, 2.6.3 (tested)
- Ruby 1.9.3, 2.0.0, 2.1.5, 2.2.2, 2.3.0, 2.4.4, 2.5.5, 2.6.3, 2.7.5 (tested)
- TruffleRuby 20.2.0
- Activerecord 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0 (tested)
- Activerecord 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 7.0 (tested)
- Rails 2.x/3.0 users, please check out the 'rails2.x-3.0' branch

## Installation
Expand Down

0 comments on commit 372b877

Please sign in to comment.