Skip to content

Commit

Permalink
Merge pull request #38 from grosser/grosser/71
Browse files Browse the repository at this point in the history
ruby 7.1 support
  • Loading branch information
grosser authored Oct 8, 2023
2 parents 8932e33 + ad7e2c0 commit 1a2f57e
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
ruby: ['2.7', '3.0']
rails: ['5.2', '6.0', '6.1', '7.0']
rails: ['5.2', '6.0', '6.1', '7.0', '7.1']
exclude:
- ruby: '3.0'
rails: '5.2'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.1)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -182,4 +182,4 @@ DEPENDENCIES
wwtd

BUNDLED WITH
2.3.4
2.3.12
2 changes: 1 addition & 1 deletion ar_after_transaction.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new 'ar_after_transaction', ARAfterTransaction::VERSION do |s
s.homepage = 'http://github.com/grosser/ar_after_transaction'
s.files = `git ls-files lib Readme.md`.split("\n")
s.required_ruby_version = '>= 2.6.0'
s.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.1'
s.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.2'
s.add_development_dependency 'bump'
s.add_development_dependency 'rails'
s.add_development_dependency 'rake'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails5.2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.1)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails6.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.1)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails6.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.1)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails7.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.1)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rails7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'activerecord', '~>7.1.0'

gemspec path: '../'
217 changes: 217 additions & 0 deletions gemfiles/rails7.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
PATH
remote: ..
specs:
ar_after_transaction (0.8.0)
activerecord (>= 5.2.0, < 7.2)

GEM
remote: https://rubygems.org/
specs:
actioncable (7.1.0)
actionpack (= 7.1.0)
activesupport (= 7.1.0)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.0)
actionpack (= 7.1.0)
activejob (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.0)
actionpack (= 7.1.0)
actionview (= 7.1.0)
activejob (= 7.1.0)
activesupport (= 7.1.0)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.2)
actionpack (7.1.0)
actionview (= 7.1.0)
activesupport (= 7.1.0)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.0)
actionpack (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.0)
activesupport (= 7.1.0)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.0)
activesupport (= 7.1.0)
globalid (>= 0.3.6)
activemodel (7.1.0)
activesupport (= 7.1.0)
activerecord (7.1.0)
activemodel (= 7.1.0)
activesupport (= 7.1.0)
timeout (>= 0.4.0)
activestorage (7.1.0)
actionpack (= 7.1.0)
activejob (= 7.1.0)
activerecord (= 7.1.0)
activesupport (= 7.1.0)
marcel (~> 1.0)
activesupport (7.1.0)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
base64 (0.1.1)
bigdecimal (3.1.4)
builder (3.2.4)
bump (0.10.0)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
crass (1.0.6)
date (3.3.3)
diff-lcs (1.5.0)
drb (2.1.1)
ruby2_keywords
erubi (1.12.0)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.8.1)
rdoc
reline (>= 0.3.8)
loofah (2.21.3)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
mini_mime (1.1.5)
minitest (5.20.0)
mutex_m (0.1.2)
net-imap (0.4.0)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.4.0)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.4-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
psych (5.1.0)
stringio
racc (1.7.1)
rack (3.0.8)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.0)
actioncable (= 7.1.0)
actionmailbox (= 7.1.0)
actionmailer (= 7.1.0)
actionpack (= 7.1.0)
actiontext (= 7.1.0)
actionview (= 7.1.0)
activejob (= 7.1.0)
activemodel (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
bundler (>= 1.15.0)
railties (= 7.1.0)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.0)
actionpack (= 7.1.0)
activesupport (= 7.1.0)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (13.0.6)
rdoc (6.5.0)
psych (>= 4.0.0)
reline (0.3.9)
io-console (~> 0.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
ruby2_keywords (0.0.5)
sqlite3 (1.6.6-arm64-darwin)
sqlite3 (1.6.6-x86_64-linux)
stringio (3.0.8)
thor (1.2.2)
timeout (0.4.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
webrick (1.8.1)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
wwtd (1.4.1)
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-21
x86_64-linux

DEPENDENCIES
activerecord (~> 7.1.0)
ar_after_transaction!
bump
rails
rake
rspec (~> 3)
sqlite3
wwtd

BUNDLED WITH
2.3.12
4 changes: 3 additions & 1 deletion spec/after_initialize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class Application < ::Rails::Application
end
end

Rack::Session::Cookie.send(:define_method, :warn) { |_| } # silence secret warning
if defined?(Rack::Session::Cookie)
Rack::Session::Cookie.send(:define_method, :warn) { |_| } # silence secret warning
end
ARAfterTransaction::Application.initialize! # initialize app

class AnExpectedError < RuntimeError; end
Expand Down

0 comments on commit 1a2f57e

Please sign in to comment.