Skip to content

Commit 0bf4722

Browse files
Update activerecord requirement from ~> 7.2 to >= 7.2, < 9.0 (#68)
* Update activerecord requirement from ~> 7.2 to >= 7.2, < 9.0 Updates the requirements on [activerecord](https://github.com/rails/rails) to permit the latest version. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v8.0.1/activerecord/CHANGELOG.md) - [Commits](rails/rails@v7.2.2...v8.0.1) --- updated-dependencies: - dependency-name: activerecord dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update `raw_execute` signature --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lloyd Watkin <lloyd@olioex.com>
1 parent b3626b0 commit 0bf4722

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Gemfile.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ PATH
22
remote: .
33
specs:
44
janus-ar (7.2.0)
5-
activerecord (~> 7.2)
5+
activerecord (>= 7.2, < 9.0)
66

77
GEM
88
remote: http://rubygems.org/
99
specs:
10-
activemodel (7.2.2.1)
11-
activesupport (= 7.2.2.1)
12-
activerecord (7.2.2.1)
13-
activemodel (= 7.2.2.1)
14-
activesupport (= 7.2.2.1)
10+
activemodel (8.0.1)
11+
activesupport (= 8.0.1)
12+
activerecord (8.0.1)
13+
activemodel (= 8.0.1)
14+
activesupport (= 8.0.1)
1515
timeout (>= 0.4.0)
16-
activesupport (7.2.2.1)
16+
activesupport (8.0.1)
1717
base64
1818
benchmark (>= 0.3)
1919
bigdecimal
@@ -25,6 +25,7 @@ GEM
2525
minitest (>= 5.1)
2626
securerandom (>= 0.3)
2727
tzinfo (~> 2.0, >= 2.0.5)
28+
uri (>= 0.13.1)
2829
ast (2.4.2)
2930
base64 (0.2.0)
3031
benchmark (0.4.0)
@@ -93,13 +94,14 @@ GEM
9394
rubocop (>= 1.48.1)
9495
ruby-progressbar (1.13.0)
9596
securerandom (0.4.1)
96-
timeout (0.4.1)
97+
timeout (0.4.3)
9798
trilogy (2.9.0)
9899
tzinfo (2.0.6)
99100
concurrent-ruby (~> 1.0)
100101
unicode-display_width (3.1.3)
101102
unicode-emoji (~> 4.0, >= 4.0.4)
102103
unicode-emoji (4.0.4)
104+
uri (1.0.2)
103105

104106
PLATFORMS
105107
arm64-darwin-23

janus-ar.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
2121

2222
gem.required_ruby_version = '>= 3.2.0'
2323

24-
gem.add_dependency 'activerecord', '~> 7.2'
24+
gem.add_dependency 'activerecord', '>= 7.2', '< 9.0'
2525
gem.add_development_dependency 'activesupport', '>= 7.2.0'
2626
gem.add_development_dependency 'mysql2'
2727
gem.add_development_dependency 'trilogy'

lib/janus-ar/active_record/connection_adapters/janus_mysql2_adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def with_connection(_args = {})
5151
self
5252
end
5353

54-
def raw_execute(sql, name, async: false, allow_retry: false, materialize_transactions: true)
54+
def raw_execute(sql, name = nil, binds = [], prepare: false, async: false, allow_retry: false,
55+
materialize_transactions: true, batch: false)
5556
case where_to_send?(sql)
5657
when :all
5758
send_to_replica(sql, connection: :all, method: :raw_execute)

lib/janus-ar/active_record/connection_adapters/janus_trilogy_adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def initialize(*args)
4747
update_config
4848
end
4949

50-
def raw_execute(sql, name, async: false, allow_retry: false, materialize_transactions: true)
50+
def raw_execute(sql, name = nil, binds = [], prepare: false, async: false, allow_retry: false,
51+
materialize_transactions: true, batch: false)
5152
case where_to_send?(sql)
5253
when :all
5354
send_to_replica(sql, connection: :all, method: :execute)

0 commit comments

Comments
 (0)