lhm-shopify 4.2.3 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +6 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +21 -22
- data/dev.yml +2 -4
- data/gemfiles/activerecord_6.1.gemfile.lock +1 -1
- data/gemfiles/activerecord_7.0.gemfile.lock +1 -1
- data/gemfiles/activerecord_7.1.gemfile.lock +1 -1
- data/gemfiles/activerecord_head.gemfile +7 -0
- data/lib/lhm/sql_helper.rb +1 -1
- data/lib/lhm/version.rb +1 -1
- data/spec/integration/lhm_spec.rb +7 -14
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0c79dc83baf664e8cd4ad2e11f8e72b3927edbb2af0beb5626961339e7f75c7
|
4
|
+
data.tar.gz: 1a58b01ab3ab768c37f497e24329d0e4e3d85dc64af7b1a338c5447b742f4a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e349310577754cebfe7fa4d067727946c19fb0b291f1f2305e87d26a7d30371fd37c80bcdb58039936c90c75618157904f3141722e5f3f83c9b0e05afb76e447
|
7
|
+
data.tar.gz: 63fe5f4a016b32ab3d299e5cd9368f226a575bd725040931b8dd28db7e8a35cef7fbd78f0ec2713108dd508a974c7b783734a02e4d724a3b40e00afb7502693e
|
data/.github/workflows/test.yml
CHANGED
@@ -13,9 +13,10 @@ jobs:
|
|
13
13
|
|
14
14
|
strategy:
|
15
15
|
fail-fast: false
|
16
|
+
max-parallel: 8
|
16
17
|
matrix:
|
17
|
-
activerecord: ["6.1", "7.0", "7.1"]
|
18
|
-
ruby: ["3.
|
18
|
+
activerecord: ["6.1", "7.0", "7.1", "head"]
|
19
|
+
ruby: ["3.1", "3.2", "3.3", "head"]
|
19
20
|
mysql: ["5.7", "8.0"]
|
20
21
|
adapter: ["mysql2", "trilogy"]
|
21
22
|
exclude:
|
@@ -23,6 +24,8 @@ jobs:
|
|
23
24
|
ruby: head
|
24
25
|
- activerecord: 7.0
|
25
26
|
ruby: head
|
27
|
+
- activerecord: head
|
28
|
+
ruby: 3.0
|
26
29
|
|
27
30
|
env:
|
28
31
|
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile"
|
@@ -40,7 +43,7 @@ jobs:
|
|
40
43
|
|
41
44
|
- name: Setup MySQL and ProxySQL (docker-compose)
|
42
45
|
# Might have to change to docker compose up -d (i.e. Compose V2) when the Ubuntu image changes the docker-compose version
|
43
|
-
run: docker
|
46
|
+
run: docker compose -f docker-compose-mysql-${{ matrix.mysql }}.yml up -d
|
44
47
|
|
45
48
|
- name: Wait until DBs are alive
|
46
49
|
run: ./scripts/helpers/wait-for-dbs.sh
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lhm-shopify (4.
|
4
|
+
lhm-shopify (4.3.0)
|
5
5
|
retriable (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (7.1.
|
11
|
-
activesupport (= 7.1.
|
12
|
-
activerecord (7.1.
|
13
|
-
activemodel (= 7.1.
|
14
|
-
activesupport (= 7.1.
|
10
|
+
activemodel (7.1.3.4)
|
11
|
+
activesupport (= 7.1.3.4)
|
12
|
+
activerecord (7.1.3.4)
|
13
|
+
activemodel (= 7.1.3.4)
|
14
|
+
activesupport (= 7.1.3.4)
|
15
15
|
timeout (>= 0.4.0)
|
16
|
-
activesupport (7.1.
|
16
|
+
activesupport (7.1.3.4)
|
17
17
|
base64
|
18
18
|
bigdecimal
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -28,22 +28,21 @@ GEM
|
|
28
28
|
bundler
|
29
29
|
rake
|
30
30
|
thor (>= 0.14.0)
|
31
|
-
base64 (0.
|
32
|
-
bigdecimal (3.1.
|
31
|
+
base64 (0.2.0)
|
32
|
+
bigdecimal (3.1.8)
|
33
33
|
byebug (11.1.3)
|
34
|
-
concurrent-ruby (1.
|
34
|
+
concurrent-ruby (1.3.3)
|
35
35
|
connection_pool (2.4.1)
|
36
|
-
docile (1.4.
|
37
|
-
drb (2.
|
38
|
-
|
39
|
-
i18n (1.14.1)
|
36
|
+
docile (1.4.1)
|
37
|
+
drb (2.2.1)
|
38
|
+
i18n (1.14.5)
|
40
39
|
concurrent-ruby (~> 1.0)
|
41
|
-
minitest (5.
|
42
|
-
mocha (2.
|
40
|
+
minitest (5.24.1)
|
41
|
+
mocha (2.4.5)
|
43
42
|
ruby2_keywords (>= 0.0.5)
|
44
|
-
mutex_m (0.
|
45
|
-
mysql2 (0.5.
|
46
|
-
rake (13.
|
43
|
+
mutex_m (0.2.0)
|
44
|
+
mysql2 (0.5.6)
|
45
|
+
rake (13.2.1)
|
47
46
|
retriable (3.1.2)
|
48
47
|
ruby2_keywords (0.0.5)
|
49
48
|
simplecov (0.22.0)
|
@@ -52,10 +51,10 @@ GEM
|
|
52
51
|
simplecov_json_formatter (~> 0.1)
|
53
52
|
simplecov-html (0.12.3)
|
54
53
|
simplecov_json_formatter (0.1.4)
|
55
|
-
thor (1.
|
56
|
-
timeout (0.4.
|
54
|
+
thor (1.3.1)
|
55
|
+
timeout (0.4.1)
|
57
56
|
toxiproxy (2.0.2)
|
58
|
-
trilogy (2.
|
57
|
+
trilogy (2.8.1)
|
59
58
|
tzinfo (2.0.6)
|
60
59
|
concurrent-ruby (~> 1.0)
|
61
60
|
|
data/dev.yml
CHANGED
data/lib/lhm/sql_helper.rb
CHANGED
data/lib/lhm/version.rb
CHANGED
@@ -328,8 +328,7 @@ describe Lhm do
|
|
328
328
|
:collate => collation,
|
329
329
|
})
|
330
330
|
|
331
|
-
result =
|
332
|
-
result = result['login'] if result.respond_to?(:has_key?)
|
331
|
+
result = select_value('SELECT login from users')
|
333
332
|
value(result).must_equal('a user')
|
334
333
|
end
|
335
334
|
end
|
@@ -353,8 +352,7 @@ describe Lhm do
|
|
353
352
|
:collate => collation,
|
354
353
|
})
|
355
354
|
|
356
|
-
result =
|
357
|
-
result = result['fnord'] if result.respond_to?(:has_key?)
|
355
|
+
result = select_value('SELECT `fnord` from users')
|
358
356
|
value(result).must_equal('Superfriends')
|
359
357
|
end
|
360
358
|
end
|
@@ -380,8 +378,7 @@ describe Lhm do
|
|
380
378
|
:collate => 'utf8mb4_unicode_ci',
|
381
379
|
})
|
382
380
|
|
383
|
-
result =
|
384
|
-
result = result['user_name'] if result.respond_to?(:has_key?)
|
381
|
+
result = select_value('SELECT `user_name` from users')
|
385
382
|
value(result).must_equal('a user')
|
386
383
|
end
|
387
384
|
end
|
@@ -410,8 +407,7 @@ describe Lhm do
|
|
410
407
|
:collate => nil,
|
411
408
|
})
|
412
409
|
|
413
|
-
result =
|
414
|
-
result = result['ref'] if result.respond_to?(:has_key?)
|
410
|
+
result = select_value('SELECT `ref` from users')
|
415
411
|
value(result).must_equal(10)
|
416
412
|
end
|
417
413
|
end
|
@@ -437,8 +433,7 @@ describe Lhm do
|
|
437
433
|
:collate => collation,
|
438
434
|
})
|
439
435
|
|
440
|
-
result =
|
441
|
-
result = result['fnord'] if result.respond_to?(:has_key?)
|
436
|
+
result = select_value('SELECT `fnord` from users')
|
442
437
|
assert_nil(result)
|
443
438
|
end
|
444
439
|
end
|
@@ -462,8 +457,7 @@ describe Lhm do
|
|
462
457
|
:collate => collation,
|
463
458
|
})
|
464
459
|
|
465
|
-
result =
|
466
|
-
result = result['user_name'] if result.respond_to?(:has_key?)
|
460
|
+
result = select_value('SELECT `user_name` from users')
|
467
461
|
value(result).must_equal('a user')
|
468
462
|
end
|
469
463
|
end
|
@@ -489,8 +483,7 @@ describe Lhm do
|
|
489
483
|
:collate => collation,
|
490
484
|
})
|
491
485
|
|
492
|
-
result =
|
493
|
-
result = result['user_name'] if result.respond_to?(:has_key?)
|
486
|
+
result = select_value('SELECT `user_name` from users')
|
494
487
|
value(result).must_equal('a user')
|
495
488
|
end
|
496
489
|
end
|
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: 4.
|
4
|
+
version: 4.3.0
|
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: 2024-
|
15
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: retriable
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- gemfiles/activerecord_7.0.gemfile.lock
|
213
213
|
- gemfiles/activerecord_7.1.gemfile
|
214
214
|
- gemfiles/activerecord_7.1.gemfile.lock
|
215
|
+
- gemfiles/activerecord_head.gemfile
|
215
216
|
- lhm.gemspec
|
216
217
|
- lib/lhm-shopify.rb
|
217
218
|
- lib/lhm.rb
|