lhm-shopify 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/gemfiles/activerecord_5.2.gemfile.lock +1 -1
- data/gemfiles/activerecord_6.0.gemfile.lock +1 -1
- data/gemfiles/activerecord_6.1.gemfile.lock +1 -1
- data/gemfiles/activerecord_7.0.0.alpha2.gemfile.lock +1 -1
- data/lib/lhm/proxysql_helper.rb +1 -1
- data/lib/lhm/version.rb +1 -1
- data/spec/integration/proxysql_spec.rb +1 -1
- data/spec/unit/connection_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef039ab1af9028a875f5851d7b7bd21dc74f363906037cbbe3acc869b008221e
|
|
4
|
+
data.tar.gz: 03a9d41b63437471f2edaf2faacd1f4d543440aebc64ebe53e2445986b52eb2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 768f2438270cd0f1cfe2d3e624068cb8c45bf083615cdd936e4598db8a5c831c112983f41918ba0e82ce4ee9ecdd3728e53926251512a18b43c94f04afb14a8a
|
|
7
|
+
data.tar.gz: 94e677823ae472e1db287f250481cf63e8ac0a2f8d85018efb2b07b6ca197d2e4c0f8f5ea7a539d222fbd7928187e61957cd26a95dfc0ad2f39f5e8e27d45a88
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -301,6 +301,15 @@ COV=1 bundle exec rake unit && bundle exec rake integration
|
|
|
301
301
|
open coverage/index.html
|
|
302
302
|
```
|
|
303
303
|
|
|
304
|
+
### Merging for a new version
|
|
305
|
+
When creating a PR for a new version, make sure that th version has been bumped in `lib/lhm/version.rb`. Then run the following code snippet to ensure the everything is consistent, otherwise
|
|
306
|
+
the gem will not publish.
|
|
307
|
+
```bash
|
|
308
|
+
bundle install
|
|
309
|
+
bundle update
|
|
310
|
+
bundle exec appraisals install
|
|
311
|
+
```
|
|
312
|
+
|
|
304
313
|
### Docker Compose
|
|
305
314
|
The integration tests rely on a replication configuration for MySQL which is being proxied by an instance of ProxySQL.
|
|
306
315
|
It is important that every container is running to execute the integration test suite.
|
data/lib/lhm/proxysql_helper.rb
CHANGED
data/lib/lhm/version.rb
CHANGED
|
@@ -29,6 +29,6 @@ describe "ProxySQL integration" do
|
|
|
29
29
|
port: "33005",
|
|
30
30
|
)
|
|
31
31
|
|
|
32
|
-
assert_equal conn.query("
|
|
32
|
+
assert_equal conn.query("SELECT @@global.hostname as host #{Lhm::ProxySQLHelper::ANNOTATION}").each.first["host"], "mysql-1"
|
|
33
33
|
end
|
|
34
34
|
end
|
|
@@ -73,7 +73,7 @@ describe Lhm::Connection do
|
|
|
73
73
|
|
|
74
74
|
it "Queries should be tagged with ProxySQL tag if requested" do
|
|
75
75
|
ar_connection = mock()
|
|
76
|
-
ar_connection.expects(:public_send).with(:select_value, "#{Lhm::ProxySQLHelper::ANNOTATION}
|
|
76
|
+
ar_connection.expects(:public_send).with(:select_value, "SHOW TABLES #{Lhm::ProxySQLHelper::ANNOTATION}").returns("dummy")
|
|
77
77
|
ar_connection.stubs(:execute).times(4).returns([["dummy"]])
|
|
78
78
|
ar_connection.stubs(:active?).returns(true)
|
|
79
79
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lhm-shopify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SoundCloud
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2021-12-
|
|
15
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: retriable
|