portage-ucp-woocommerce 0.2.2 → 0.3.0
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/CHANGELOG.md +7 -1
- data/README.md +1 -1
- data/exe/portage-ucp-woocommerce +2 -1
- data/lib/portage/ucp/woocommerce/client.rb +0 -8
- data/lib/portage/ucp/woocommerce/version.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: a5fecc06d712fffb060d362b34da14609175f74867c5af92592482ef92c14607
|
|
4
|
+
data.tar.gz: 5ede0072f871451fb0f24a12001c5b093dc20723208e38970796cdc2e0e33208
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b161c793f664c0ef203d10779ea8cdef33ccaa983af9511eda5fe5e93e0e0820cc568043bd23b5c51b357c3f992a668a9f50a34215695d0c094865bfe0278bc
|
|
7
|
+
data.tar.gz: be20532fa4fd9789d66ee193db15ae8a0b8d93cc87711817b7f899763b82e4d264b99f422930e2071717717a6219bfd837aef485090019451d1e05a632ffa14f
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ pre-1.0, so APIs may still shift between minor versions.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.0] - 2026-10-05
|
|
10
|
+
|
|
11
|
+
- **Removed the unused `Client#admin_post` and `Client#store_delete`.** Nothing in the gem called them. They were public on the client class, so this is **breaking** for any caller using them directly; minor-level for a pre-1.0 gem.
|
|
12
|
+
|
|
13
|
+
- Documentation only, no code change. The README and a changelog entry linked to `docs/plans/woocommerce-local-validation.md`, which is retired; they now link to a permalink at commit d51200f. Patch-level.
|
|
14
|
+
|
|
9
15
|
## [0.2.2] - 2026-09-29
|
|
10
16
|
|
|
11
17
|
- Fixes a `NoMethodError` at launch: `exe/portage-ucp-woocommerce` handed
|
|
@@ -31,7 +37,7 @@ pre-1.0, so APIs may still shift between minor versions.
|
|
|
31
37
|
Token JWT as `?session=` and clones the guest session's data into a
|
|
32
38
|
fresh cookie session before the page renders — so this is a one-line
|
|
33
39
|
fix, not new infrastructure. Confirmed live against the local Docker
|
|
34
|
-
WooCommerce install (
|
|
40
|
+
WooCommerce install ([validation plan](https://github.com/tomtom87/Portage/blob/d51200f/docs/plans/woocommerce-local-validation.md)'s
|
|
35
41
|
stack): `--auto-open`'s hand-off now opens a browser straight onto a
|
|
36
42
|
checkout page with the cart's actual contents, not an empty one.
|
|
37
43
|
- `Resolver`'s WooCommerce `billing_address` is hardened: malformed
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Unlike Shopify/Wix, there's no `AccessTokenFetcher` — WooCommerce Admin keys a
|
|
|
20
20
|
|
|
21
21
|
## ⚠️ Verified against a local install
|
|
22
22
|
|
|
23
|
-
Run against a throwaway Docker WooCommerce (WP 7.1.1 + WooCommerce 11.1.1, TLS via a local Caddy reverse proxy — see
|
|
23
|
+
Run against a throwaway Docker WooCommerce (WP 7.1.1 + WooCommerce 11.1.1, TLS via a local Caddy reverse proxy — see the [validation plan](https://github.com/tomtom87/Portage/blob/d51200f/docs/plans/woocommerce-local-validation.md) for the full setup and test ladder). What actually held up, and what didn't:
|
|
24
24
|
|
|
25
25
|
**Confirmed working:**
|
|
26
26
|
- Admin REST Basic Auth, `Client#store_request`'s `Cart-Token`/`Nonce` session threading across `create_cart` → `update_cart` → `create_checkout` → `get_checkout`, and `Resolver.detect_platform` all work exactly as coded — against a real store, not just WebMock stubs.
|
data/exe/portage-ucp-woocommerce
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
# vars, and — since this gem ships with permissive-nothing defaults (see
|
|
6
6
|
# README's "Security hooks") — wire a real Authenticator/RateLimiter/etc. via
|
|
7
7
|
# a config file loaded with PORTAGE_UCP_CONFIG, the same way `rackup -r` or
|
|
8
|
-
# Sidekiq's `-r` work — see
|
|
8
|
+
# Sidekiq's `-r` work — see a starting point at
|
|
9
|
+
# https://github.com/tomtom87/Portage/blob/main/portage-ucp/examples/portage_ucp.rb.
|
|
9
10
|
# Without one, the server still starts but rejects every mutating call.
|
|
10
11
|
#
|
|
11
12
|
# WOOCOMMERCE_PAYMENT_METHOD and WOOCOMMERCE_BILLING_ADDRESS (a JSON object,
|
|
@@ -45,10 +45,6 @@ module Portage
|
|
|
45
45
|
admin_request(Net::HTTP::Get, path)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
def admin_post(path, body = {})
|
|
49
|
-
admin_request(Net::HTTP::Post, path, body)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
48
|
def store_get(path)
|
|
53
49
|
store_request(Net::HTTP::Get, path)
|
|
54
50
|
end
|
|
@@ -57,10 +53,6 @@ module Portage
|
|
|
57
53
|
store_request(Net::HTTP::Post, path, body)
|
|
58
54
|
end
|
|
59
55
|
|
|
60
|
-
def store_delete(path)
|
|
61
|
-
store_request(Net::HTTP::Delete, path)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
56
|
private
|
|
65
57
|
|
|
66
58
|
def admin_request(http_method, path, body = nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: portage-ucp-woocommerce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Whitbread
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: portage-ucp
|