Add support to Rails 5.2

This commit is contained in:
Rafael Mendonça França 2018-03-20 11:25:13 -04:00
parent ed1967aeef
commit 2b3824e29c
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
5 changed files with 17 additions and 1 deletions

View File

@ -32,6 +32,7 @@ gemfile:
- gemfiles/ar_4.2.gemfile
- gemfiles/ar_5.0.gemfile
- gemfiles/ar_5.1.gemfile
- gemfiles/ar_5.2.gemfile
matrix:
fast_finish: true

View File

@ -23,3 +23,8 @@ appraise "ar-5.1" do
gem "activerecord", "~> 5.1.4"
gem "rails-controller-testing"
end
appraise "ar-5.2" do
gem "activerecord", "~> 5.2.0.rc1"
gem "rails-controller-testing"
end

View File

@ -36,6 +36,8 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
### Added
- [#1067](https://github.com/airblade/paper_trail/pull/1033) -
Add support to Rails 5.2.
- [#1033](https://github.com/airblade/paper_trail/pull/1033) -
Set request variables temporarily using a block, eg.
`PaperTrail.request(whodunnit: 'Jared') do .. end`

8
gemfiles/ar_5.2.gemfile Normal file
View File

@ -0,0 +1,8 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "activerecord", "~> 5.2.0.rc1"
gem "rails-controller-testing"
gemspec path: "../"

View File

@ -28,7 +28,7 @@ has been destroyed.
s.required_ruby_version = ">= 2.3.0"
# Rails does not follow semver, makes breaking changes in minor versions.
s.add_dependency "activerecord", [">= 4.2", "< 5.2"]
s.add_dependency "activerecord", [">= 4.2", "< 5.3"]
s.add_dependency "request_store", "~> 1.1"
s.add_development_dependency "appraisal", "~> 2.2"