replica_pools 2.6.4 → 2.6.5

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: fec69b8b572b701e6f50e555c91b38d9c166ee9ff2b1f9e1afff6b925483d224
4
- data.tar.gz: 3be5fab5ae1aeb1609ac669fa85da3b0741b4eaa9f8066575b5f17c04d991590
3
+ metadata.gz: b62c1fdfa43f03f4975da35af83d63cb2360d8bc03002b2bdf5cc5b43aa58464
4
+ data.tar.gz: 5f766b1de70aa92fd797205f4cc88957c124ad932bd9624baf9d32cd706d95ed
5
5
  SHA512:
6
- metadata.gz: 507f274afcd27011fa4e40de581d59914423bfa3ff98398dcc744a56affe781b88d4aeecd3c22ca88419ef73752792fa25b791692d1f2d0b999c270509e68560
7
- data.tar.gz: 5917987630ff6f7b2703223674df73590d3f60f54ea9e054966db3a4a30a5a3eaa063c785811bc97da45a55eff4d234e537ed7fc5505462f0eed2ede823fdec2
6
+ metadata.gz: 2a9e40f9f6ef48d1b9aa8a9886ceb1c04e9e64a655d8c97ee4ca471236211c9a741200e0ac32a3e63dbc73c7851a1441469d3f1f33a447aa2ebdda9dcac1f5af
7
+ data.tar.gz: 845206307c7ab96d873e4ff191092d1d7f3841d5332008a0c13177abf23bf24bf568e78b71b36e652c6cb2a0d1849a6b469fc42bb4e2c1ac5ba9377f8c03ecb6
data/README.md CHANGED
@@ -173,21 +173,22 @@ Tests are run against MySQL 5.6 using docker-compose. 🐋
173
173
 
174
174
  To get set up, first run:
175
175
 
176
- ```bash
177
- $ docker-compose up
178
- $ bundle install
179
- $ bundle exec rake bootstrap
180
- ```
176
+ docker-compose up
177
+ bundle install
178
+ bundle exec rake bootstrap
181
179
 
182
180
  Then you can run tests with:
183
181
 
184
- ```bash
185
- $ bundle exec rake spec
186
- ```
182
+ bundle exec rake spec
187
183
 
188
184
  ## Releasing a New Version
189
185
 
190
- First bump the version as appropriate in `lib/replica_pools/version.rb` and then run `bundle exec rake release`. This will push git tags to github and package and push the gem to rubygems.org.
186
+ Follow these steps to publish a new version to RubyGems:
187
+
188
+ 1. Increment the version in [lib/replica_pools/version.rb](./lib/replica_pools/version.rb). We follow [Semantic Versioning](http://semver.org).
189
+ 2. Push changes to GitHub
190
+ 3. Create a [new release](https://github.com/kickstarter/replica_pools/releases)
191
+ 4. Ensure the [Test and Release](https://github.com/kickstarter/replica_pools/actions/workflows/test-release.yml) GitHub Action succeeds in pushing a new gem to RubyGems
191
192
 
192
193
  ## Authors
193
194
 
@@ -203,10 +204,10 @@ Released under the MIT license
203
204
 
204
205
  The project is based on:
205
206
 
206
- - https://github.com/schoefmax/multi_db
207
+ - [github.com/schoefmax/multi_db](https://github.com/schoefmax/multi_db)
207
208
 
208
209
  ### Masochism
209
210
 
210
211
  The original leader/replica plugin:
211
212
 
212
- - http://github.com/technoweenie/masochism
213
+ - [github.com/technoweenie/masochism](http://github.com/technoweenie/masochism)
@@ -100,7 +100,7 @@ module ReplicaPools
100
100
  end
101
101
  end
102
102
  end
103
- send(method, *args, &block)
103
+ send(method, *args, **kwargs, &block)
104
104
  end
105
105
 
106
106
  def within_leader_block?
@@ -109,10 +109,7 @@ module ReplicaPools
109
109
 
110
110
  def route_to(conn, method, *args, **keyword_args, &block)
111
111
  raise ReplicaPools::LeaderDisabled.new if ReplicaPools.config.disable_leader && conn == leader
112
- connection = conn.retrieve_connection
113
-
114
- connection.verify!
115
- connection.send(method, *args, **keyword_args, &block)
112
+ conn.retrieve_connection.send(method, *args, **keyword_args, &block)
116
113
  rescue => e
117
114
  ReplicaPools.log :error, "Error during ##{method}: #{e}"
118
115
  log_proxy_state
@@ -1,3 +1,3 @@
1
1
  module ReplicaPools
2
- VERSION = "2.6.4"
2
+ VERSION = "2.6.5"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: replica_pools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Drabik
8
8
  - Lance Ivy
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-05 00:00:00.000000000 Z
12
+ date: 2024-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -143,7 +143,7 @@ homepage: https://github.com/kickstarter/replica_pools
143
143
  licenses:
144
144
  - MIT
145
145
  metadata: {}
146
- post_install_message:
146
+ post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths:
149
149
  - lib
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '1.2'
160
160
  requirements: []
161
161
  rubygems_version: 3.1.6
162
- signing_key:
162
+ signing_key:
163
163
  specification_version: 4
164
164
  summary: Connection proxy for ActiveRecord for leader / replica setups.
165
165
  test_files: