replica_pools 2.6.3 → 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: e01d82e28f2d89abe76f89d880196de84b563e9b08401d94867828b5368a164d
4
- data.tar.gz: cf5aa2ea0c91abaa27cd7fb2fdc99dbcd327188f3427572c8add0f13930cdf97
3
+ metadata.gz: b62c1fdfa43f03f4975da35af83d63cb2360d8bc03002b2bdf5cc5b43aa58464
4
+ data.tar.gz: 5f766b1de70aa92fd797205f4cc88957c124ad932bd9624baf9d32cd706d95ed
5
5
  SHA512:
6
- metadata.gz: eb6791fcbac25902d48092c5c6faa1cd60753419003ff9b3c957bce185e0c27fd9ec0db59653667bad7dee2247a242c232a4f30ebcbc67694d0657c4c16e25c8
7
- data.tar.gz: ea3f61c5f4499437f74a28b81cddef31000c5d8323e81e53ebccef6d3d7d8501fd5537b469cc29a5c67a2c8bc58bec3057cde6ddef132ef17af53e50b966ccaf
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?
@@ -1,3 +1,3 @@
1
1
  module ReplicaPools
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.5"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -11,7 +11,7 @@ end
11
11
  require 'active_record'
12
12
  spec_dir = File.dirname(__FILE__)
13
13
  ActiveRecord::Base.logger = Logger.new(spec_dir + "/debug.log")
14
- ActiveRecord::Base.configurations = YAML::load(ERB.new(File.read(spec_dir + '/config/database.yml')).result)
14
+ ActiveRecord::Base.configurations = YAML::safe_load(ERB.new(File.read(spec_dir + '/config/database.yml')).result, aliases: true)
15
15
  ActiveRecord::Base.establish_connection :test
16
16
  ActiveRecord::Migration.verbose = false
17
17
  ActiveRecord::Migration.create_table(:test_models, :force => true) {}
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.3
4
+ version: 2.6.5
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-06-28 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
@@ -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.2.33
161
+ rubygems_version: 3.1.6
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/config/test_model.rb
167
- - spec/connection_proxy_spec.rb
166
+ - spec/spec_helper.rb
168
167
  - spec/pool_spec.rb
169
- - spec/query_cache_spec.rb
170
168
  - spec/slave_pools_spec.rb
171
- - spec/spec_helper.rb
169
+ - spec/config/test_model.rb
170
+ - spec/query_cache_spec.rb
171
+ - spec/connection_proxy_spec.rb