shopify_graphql 2.5.0 → 2.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9396a193dad0b344cca715ca90a406bc2dc53d49b4e806c9f8ba3b3469f83262
4
- data.tar.gz: 77ebbd5224182e0b5c1410317dc20aff62e69485848012e7d45df3ea8a846cb9
3
+ metadata.gz: 827b03ca608d7ae514f1758fb96ebc253783b778cbe376d8e2a5d3ab772b42da
4
+ data.tar.gz: b473cac1e4ac0dcf34ea3895dcaa6cadf0bb5dd4d2ea434b1ed4350dcd137839
5
5
  SHA512:
6
- metadata.gz: 0ad3c88dfd11e4fab39a69d84eb62e528b1f3bfe0c78efc4668c736bdec50055efbf091f2cc275ddf80c8f955b05aaf20d380a985c53937683d098559b9f197c
7
- data.tar.gz: 2c91862377bb92d01fe6b00460ca14716cc334d5df0d88a5eecbaeefbcce9fa0a61053a1daa259d9bb70f73b821ba134623e01ca9cabe5f3a93d8d92224d77cf
6
+ metadata.gz: 169c9249f8ac75c8f7c07d087b91cc6ff7a09ea9b8d361e4a2e746106f71fb6dca3f81dce546b6e3dfd0df1fe73bd8657d7adf515656232e38ec6053621fb9fd
7
+ data.tar.gz: b4633cdc0d303d4e9f4f7fee089c5ff7e67793a4c28ae3779a7f093cfed030405f3a77fd1760490ce6b022a2e179ad689fa7400db1294bf2c291f40999242dd4
@@ -26,7 +26,13 @@ module ShopifyGraphql
26
26
 
27
27
  class Client
28
28
  def client
29
- @client ||= ShopifyAPI::Clients::Graphql::Admin.new(session: ShopifyAPI::Context.active_session)
29
+ session = ShopifyAPI::Context.active_session
30
+ if @client.nil? || @access_token != session&.access_token || @shop != session&.shop
31
+ @client = ShopifyAPI::Clients::Graphql::Admin.new(session: session)
32
+ @access_token = session.access_token&.dup
33
+ @shop = session.shop.dup
34
+ end
35
+ @client
30
36
  end
31
37
 
32
38
  def execute(query, headers: nil, **variables)
@@ -1,3 +1,3 @@
1
1
  module ShopifyGraphql
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Platonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-10 00:00:00.000000000 Z
11
+ date: 2026-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails