portage-ucp-shopify 0.4.3 → 0.4.4

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: f492f3dcd92e8efe69af5241e1e216808a562c2b2f0647bc95992b4b90527956
4
- data.tar.gz: bf68a6808d5e7f799d2eafca32cefec602b68c98b6e637d512c7278f9a17b3a8
3
+ metadata.gz: 736c6850f41f423c02299e0ec0b8fed65b751d16e004f22752a388c38f00dbd9
4
+ data.tar.gz: 6a5878bfdf974a262f5b2b575905ba294bb709d6f3e351b3d45351e4a47c10fe
5
5
  SHA512:
6
- metadata.gz: a6e88da354126c906ea58feffed4fd49a290123c0afb5327930fbcb58d3e1d30b0576a835037a55a45d402d19a761a94733f2549427bf82d13086130dfee74f0
7
- data.tar.gz: 0bf85bef1f694f5d5be78e0b927c7cdd0c175514530018686c594fc5ddc0e4e15e5a3a09124942ad70b243a4ff68d53e7ed9229ab318dd8c359b6a68b6610a3e
6
+ metadata.gz: 52668e1c207fcf4c3271de0778aad6296b38605cb824a9c876e9c5c00efda2cabd0c5c3856adf0db9fa1309fd7c91f5839e6dd9ce715bb9afe1b907c3ba272c9
7
+ data.tar.gz: 96f42ad36bd7fdbf27ccd2e0cdabc9fa170fed6b013206fa6e84d2d5ad1cfe827d28b1a64d40bc852a656e98e6a30e893949ceeb2937ce0e67636ea28da906b4
data/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project are documented here. Format loosely follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.0.0/); this project is
5
5
  pre-1.0, so APIs may still shift between minor versions.
6
6
 
7
+ ## [0.4.4] - 2026-09-17
8
+
9
+ - No behavior change — widens the `portage-ucp` dependency pin to `~> 0.8`
10
+ so this gem can install alongside `portage-ucp` 0.8.0 (the `~> 0.7` pin
11
+ published with 0.4.3 is pessimistic and excludes it). Also documents, at
12
+ `Adapter#cart_lines`, that the conformance kit's `line_items[].product_id`
13
+ means a `ProductVariant` GID here, not the parent `Product` GID — the
14
+ caller resolves that, this adapter doesn't.
15
+
7
16
  ## [0.4.3] - 2026-09-16
8
17
 
9
18
  - No behavior change — 0.4.2 was built and pushed with `gem build` run from
@@ -261,6 +261,13 @@ module Portage
261
261
  @client.storefront_query(Queries::GET_CART, variables: { id: cart_id })["cart"]
262
262
  end
263
263
 
264
+ # `line_items[].product_id` is the conformance kit's overloaded
265
+ # name (portage-ucp/lib/portage/ucp/rspec.rb) for "whatever id this
266
+ # adapter's cart takes" — for Shopify that's a ProductVariant GID,
267
+ # not the parent Product GID (see conformance_spec.rb's
268
+ # existing_product_id/existing_variant_id split). Callers are
269
+ # responsible for passing the right one; this adapter doesn't
270
+ # resolve product -> variant itself (see docs/design-log.md §41).
264
271
  def cart_lines(line_items)
265
272
  line_items.map { |li| { merchandiseId: li[:product_id], quantity: li[:quantity] } }
266
273
  end
@@ -1,7 +1,7 @@
1
1
  module Portage
2
2
  module Ucp
3
3
  module Shopify
4
- VERSION = "0.4.3".freeze
4
+ VERSION = "0.4.4".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portage-ucp-shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Whitbread
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-09-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: portage-ucp
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.7'
18
+ version: '0.8'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0.7'
25
+ version: '0.8'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +96,6 @@ dependencies:
97
96
  description: Implements Portage::Ucp::Adapter against Shopify's Admin (catalog, order)
98
97
  and Storefront (cart, checkout) GraphQL APIs. Generic only — no merchant-specific
99
98
  business logic. Plain Net::HTTP, no shopify_api runtime dependency.
100
- email:
101
99
  executables:
102
100
  - portage-ucp-shopify
103
101
  extensions: []
@@ -123,7 +121,6 @@ metadata:
123
121
  source_code_uri: https://github.com/tomtom87/Portage/tree/main/portage-ucp-shopify
124
122
  changelog_uri: https://github.com/tomtom87/Portage/blob/main/portage-ucp-shopify/CHANGELOG.md
125
123
  rubygems_mfa_required: 'true'
126
- post_install_message:
127
124
  rdoc_options: []
128
125
  require_paths:
129
126
  - lib
@@ -138,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
135
  - !ruby/object:Gem::Version
139
136
  version: '0'
140
137
  requirements: []
141
- rubygems_version: 3.5.22
142
- signing_key:
138
+ rubygems_version: 4.0.21
143
139
  specification_version: 4
144
140
  summary: Shopify adapter for portage-ucp — standard catalog/cart/checkout/order over
145
141
  MCP and UCP