From 7cbb6fe5f1ae8722c93a584a8bd8b10cf4e226b7 Mon Sep 17 00:00:00 2001 From: Jared Beck Date: Tue, 7 Mar 2017 13:34:42 -0500 Subject: [PATCH] Resume testing against AR 4.0 There are obviously people still using it, unfortunately. They should update immediately, as AR < 4.2 is EOL, and PT will drop support very soon. --- .travis.yml | 1 + Appraisals | 5 +++++ gemfiles/ar_4.0.gemfile | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 gemfiles/ar_4.0.gemfile diff --git a/.travis.yml b/.travis.yml index ccd5127e..86704e0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ before_script: - sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database paper_trail_foo;' -U postgres; fi" gemfile: + - gemfiles/ar_4.0.gemfile - gemfiles/ar_4.2.gemfile - gemfiles/ar_5.0.gemfile - gemfiles/ar_master.gemfile diff --git a/Appraisals b/Appraisals index 46267aa0..e2006042 100644 --- a/Appraisals +++ b/Appraisals @@ -7,6 +7,11 @@ # > the version from the appraisal takes precedence. # > https://github.com/thoughtbot/appraisal +appraise "ar-4.0" do + gem "activerecord", "~> 4.0" + gem "sinatra", "~> 1.4.6" +end + appraise "ar-4.2" do gem "activerecord", "~> 4.2" gem "sinatra", "~> 1.4.6" diff --git a/gemfiles/ar_4.0.gemfile b/gemfiles/ar_4.0.gemfile new file mode 100644 index 00000000..e5294d0c --- /dev/null +++ b/gemfiles/ar_4.0.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activerecord", "~> 4.0" +gem "sinatra", "~> 1.4.6" + +gemspec :path => "../"