From 2db854541e303f2034de4c38292b3ca7505f75e1 Mon Sep 17 00:00:00 2001 From: Jacob Burroughs Date: Mon, 21 Mar 2022 15:24:50 -0500 Subject: [PATCH] Support rails 7 --- .github/workflows/test.yml | 4 ++++ Appraisals | 4 ++-- gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile | 15 +++++++++++++++ once-ler.gemspec | 4 ++-- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 249318d..077afc6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,10 @@ jobs: gemfile: - rspec_3.9_ar_6.0_dc_2.0 - rspec_3.9_ar_6.1_dc_2.0 + - rspec_3.9_ar_7.0_dc_2.0 + exclude: + - ruby: 2.6 + gemfile: rspec_3.9_ar_7.0_dc_2.0 steps: - uses: actions/checkout@v2 - name: Set up Ruby diff --git a/Appraisals b/Appraisals index 6825189..d95b944 100644 --- a/Appraisals +++ b/Appraisals @@ -1,5 +1,5 @@ -# Note: Rails 6.x requires sqlite3 ~> 1.4 -%w[6.0 6.1].each do |ar| +# Note: Rails 6.x+ requires sqlite3 ~> 1.4 +%w[6.0 6.1 7.0].each do |ar| appraise "rspec-3.9-ar-#{ar}-dc-2.0" do gem "activerecord", "~> #{ar}.0" gem "database_cleaner", "~> 2.0" diff --git a/gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile b/gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile new file mode 100644 index 0000000..bad2ad2 --- /dev/null +++ b/gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile @@ -0,0 +1,15 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activerecord", "~> 7.0.0" +gem "database_cleaner", "~> 2.0" +gem "database_cleaner-active_record", "~> 2.0" +gem "rspec", "~> 3.10.0" +gem "sqlite3", "~> 1.4.2" + +group :test do + gem "rake" +end + +gemspec path: "../" diff --git a/once-ler.gemspec b/once-ler.gemspec index 2f6e217..c3987d5 100644 --- a/once-ler.gemspec +++ b/once-ler.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'once-ler' - s.version = '2.0.0' + s.version = '2.0.1' s.summary = 'rspec supercharger' s.description = "once-ler supercharges your let's and before's with the performance of before(:all)" s.license = 'MIT' @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.files = %w(README.md) + Dir['lib/**/*.rb'] - s.add_dependency 'activerecord', '>= 6.0', '< 6.2' + s.add_dependency 'activerecord', '>= 6.0', '< 7.1' s.add_dependency 'rspec', '>= 3.6' s.add_dependency 'rspec-rails', '>= 4.0'