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 +4 -4
- data/README.md +12 -11
- data/lib/replica_pools/connection_proxy.rb +1 -1
- data/lib/replica_pools/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62c1fdfa43f03f4975da35af83d63cb2360d8bc03002b2bdf5cc5b43aa58464
|
4
|
+
data.tar.gz: 5f766b1de70aa92fd797205f4cc88957c124ad932bd9624baf9d32cd706d95ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
177
|
-
|
178
|
-
|
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
|
-
|
185
|
-
$ bundle exec rake spec
|
186
|
-
```
|
182
|
+
bundle exec rake spec
|
187
183
|
|
188
184
|
## Releasing a New Version
|
189
185
|
|
190
|
-
|
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)
|
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::
|
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.
|
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:
|
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.
|
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/
|
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/
|
169
|
+
- spec/config/test_model.rb
|
170
|
+
- spec/query_cache_spec.rb
|
171
|
+
- spec/connection_proxy_spec.rb
|