replica_pools 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe6224f74496648e6a90578eca09d572a1a76dc354787755be545e5b1e986655
4
- data.tar.gz: 6b38d4c3366e1e3d73081522d77c7a4ff6742d7d08fb91341efb46b4001f916b
3
+ metadata.gz: e01d82e28f2d89abe76f89d880196de84b563e9b08401d94867828b5368a164d
4
+ data.tar.gz: cf5aa2ea0c91abaa27cd7fb2fdc99dbcd327188f3427572c8add0f13930cdf97
5
5
  SHA512:
6
- metadata.gz: ee964bfeea8cfb1424649808d72bc606426f61d31e2310a4fbed5838de11a0731ee81a68098ec92194f938b3a4ce018e722f418bece8f6007f3437e0f335e59f
7
- data.tar.gz: 7e5055af2da714269dfcd9ee50642438e4ec5a8b2c7036105945306bc594cee243e648478a2c979af33f9f992f956af96102903e6cd05414abe3309365a2b93e
6
+ metadata.gz: eb6791fcbac25902d48092c5c6faa1cd60753419003ff9b3c957bce185e0c27fd9ec0db59653667bad7dee2247a242c232a4f30ebcbc67694d0657c4c16e25c8
7
+ data.tar.gz: ea3f61c5f4499437f74a28b81cddef31000c5d8323e81e53ebccef6d3d7d8501fd5537b469cc29a5c67a2c8bc58bec3057cde6ddef132ef17af53e50b966ccaf
@@ -57,7 +57,11 @@ module ReplicaPools
57
57
  ReplicaPools.const_set(class_name, Class.new(ActiveRecord::Base) do |c|
58
58
  c.abstract_class = true
59
59
  c.define_singleton_method(connection_config_method_name) do
60
- configurations.configs_for(env_name: connection_name.to_s, include_hidden: true)
60
+ if ActiveRecord::VERSION::MAJOR == 6
61
+ configurations.configs_for(env_name: connection_name.to_s, include_replicas: true)
62
+ elsif ActiveRecord::VERSION::MAJOR == 7
63
+ configurations.configs_for(env_name: connection_name.to_s, include_hidden: true)
64
+ end
61
65
  end
62
66
  end)
63
67
 
@@ -1,3 +1,3 @@
1
1
  module ReplicaPools
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replica_pools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Drabik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-18 00:00:00.000000000 Z
12
+ date: 2023-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -158,14 +158,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '1.2'
160
160
  requirements: []
161
- rubygems_version: 3.1.6
161
+ rubygems_version: 3.2.33
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Connection proxy for ActiveRecord for leader / replica setups.
165
165
  test_files:
166
- - spec/spec_helper.rb
167
- - spec/pool_spec.rb
168
- - spec/slave_pools_spec.rb
169
166
  - spec/config/test_model.rb
170
- - spec/query_cache_spec.rb
171
167
  - spec/connection_proxy_spec.rb
168
+ - spec/pool_spec.rb
169
+ - spec/query_cache_spec.rb
170
+ - spec/slave_pools_spec.rb
171
+ - spec/spec_helper.rb