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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e88f970c0a74075057e83cd9dddaff855c4b1260279604badc45af7d4f096f0
4
- data.tar.gz: 722aefe84a0e97d6702b4b2706df2ad9c9084dec24be0e3e790fa4f4f535ea73
3
+ metadata.gz: f0c79dc83baf664e8cd4ad2e11f8e72b3927edbb2af0beb5626961339e7f75c7
4
+ data.tar.gz: 1a58b01ab3ab768c37f497e24329d0e4e3d85dc64af7b1a338c5447b742f4a4b
5
5
  SHA512:
6
- metadata.gz: f423dbc69088a1e314e0b460a051f5a3438754382a5f26008e2ed1e754da771467a532c9f269cbfd2e1e0aa347e600b3dbabc436f8cc94c32d0d99819cb0f832
7
- data.tar.gz: 047c7221c4eb28d5bc01a16287b5e813e46dbc6b7effae12ff6778660e8e295adb53490d9825c8ca714df6e00b3abef50cff522a2f29a0ae9c6834797e9c93e5
6
+ metadata.gz: e349310577754cebfe7fa4d067727946c19fb0b291f1f2305e87d26a7d30371fd37c80bcdb58039936c90c75618157904f3141722e5f3f83c9b0e05afb76e447
7
+ data.tar.gz: 63fe5f4a016b32ab3d299e5cd9368f226a575bd725040931b8dd28db7e8a35cef7fbd78f0ec2713108dd508a974c7b783734a02e4d724a3b40e00afb7502693e
@@ -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.0", "3.1", "3.2", "3.3", "head"]
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-compose -f docker-compose-mysql-${{ matrix.mysql }}.yml up -d
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
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 4.3.0 (Aug, 2024)
4
+ * Drop support for Ruby 3.0, as it reached its EOL
5
+ * Add support for next Rails version
6
+
3
7
  # 4.2.3 (Jul, 2024)
4
8
  * Fix check for warnings against PKs with line breaks
5
9
 
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lhm-shopify (4.2.3)
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.1)
11
- activesupport (= 7.1.1)
12
- activerecord (7.1.1)
13
- activemodel (= 7.1.1)
14
- activesupport (= 7.1.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.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.1.1)
32
- bigdecimal (3.1.4)
31
+ base64 (0.2.0)
32
+ bigdecimal (3.1.8)
33
33
  byebug (11.1.3)
34
- concurrent-ruby (1.2.2)
34
+ concurrent-ruby (1.3.3)
35
35
  connection_pool (2.4.1)
36
- docile (1.4.0)
37
- drb (2.1.1)
38
- ruby2_keywords
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.22.2)
42
- mocha (2.1.0)
40
+ minitest (5.24.1)
41
+ mocha (2.4.5)
43
42
  ruby2_keywords (>= 0.0.5)
44
- mutex_m (0.1.2)
45
- mysql2 (0.5.5)
46
- rake (13.0.6)
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.2.2)
56
- timeout (0.4.0)
54
+ thor (1.3.1)
55
+ timeout (0.4.1)
57
56
  toxiproxy (2.0.2)
58
- trilogy (2.6.0)
57
+ trilogy (2.8.1)
59
58
  tzinfo (2.0.6)
60
59
  concurrent-ruby (~> 1.0)
61
60
 
data/dev.yml CHANGED
@@ -1,9 +1,7 @@
1
1
  name: lhm
2
2
  up:
3
- - homebrew:
4
- - mysql-client@5.7:
5
- or: [mysql@5.7]
6
- conflicts: [shopify/shopify/mysql-client, mysql-connector-c, mysql, mysql-client]
3
+ - packages:
4
+ - mysql-client@5.7
7
5
  - wget
8
6
  - ruby
9
7
  - bundler
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.3)
4
+ lhm-shopify (4.3.0)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.3)
4
+ lhm-shopify (4.3.0)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.3)
4
+ lhm-shopify (4.3.0)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", git: "https://github.com/rails/rails.git", branch: "main"
6
+
7
+ gemspec path: "../"
@@ -65,7 +65,7 @@ module Lhm
65
65
  end
66
66
 
67
67
  def struct_key(struct, key)
68
- keys = if struct.is_a? Hash
68
+ keys = if struct.respond_to?(:keys)
69
69
  struct.keys
70
70
  else
71
71
  struct.members
data/lib/lhm/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Schmidt
3
3
 
4
4
  module Lhm
5
- VERSION = '4.2.3'
5
+ VERSION = '4.3.0'
6
6
  end
@@ -328,8 +328,7 @@ describe Lhm do
328
328
  :collate => collation,
329
329
  })
330
330
 
331
- result = select_one('SELECT login from users')
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 = select_one('SELECT `fnord` from users')
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 = select_one('SELECT `user_name` from users')
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 = select_one('SELECT `ref` from users')
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 = select_one('SELECT `fnord` from users')
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 = select_one('SELECT `user_name` from users')
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 = select_one('SELECT `user_name` from users')
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.2.3
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-07-23 00:00:00.000000000 Z
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