Skip to content

Commit

Permalink
Merge pull request #20 from instructure/rails-7
Browse files Browse the repository at this point in the history
Support rails 7
  • Loading branch information
maths22 authored Mar 21, 2022
2 parents 2f22072 + 2db8545 commit 85c6536
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
15 changes: 15 additions & 0 deletions gemfiles/rspec_3.9_ar_7.0_dc_2.0.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
4 changes: 2 additions & 2 deletions once-ler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'

Expand Down

0 comments on commit 85c6536

Please sign in to comment.