portage-ucp-instagram 0.1.5 → 0.2.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 +6 -0
- data/README.md +1 -1
- data/exe/portage-ucp-instagram +2 -1
- data/lib/portage/ucp/instagram/mapper.rb +2 -2
- data/lib/portage/ucp/instagram/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: 36ca6458aed53540709ad9faa8104294abd8fd9429879852190987ab200fe01e
|
|
4
|
+
data.tar.gz: f3a8990072de5b85e4563de012a669c97702bafe538dcb89cb1acfbb35402195
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1329e6e7644cfd4589b3044be31f439d265cf358eeb9f3342e4a1c9a7b65b3ad2b5d537770120e9d381fb584030718170e3a4e85c821bc0ca9842cf7fb32f1d
|
|
7
|
+
data.tar.gz: 78b782d13db196aa441c49793dda7bc272f8b9f5f81bf9c79b0c26e2360b00f4e1899496c6979e4078a5cca54743e7393938a1a1ac2be65c43e16797671a4bb6
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.2.0] - 2026-10-05
|
|
10
|
+
|
|
11
|
+
- **Breaking: removed the `site_url:` keyword from `Mapper.product`.** Nothing passed it. A caller passing `site_url:` now gets an `ArgumentError`. Minor-level change for a pre-1.0 gem.
|
|
12
|
+
|
|
7
13
|
## [0.1.5] - 2026-09-25
|
|
8
14
|
|
|
9
15
|
- `AccessTokenFetcher#fetch` now goes through
|
data/README.md
CHANGED
|
@@ -88,7 +88,7 @@ PORTAGE_UCP_CONFIG=./config/portage_ucp.rb INSTAGRAM_ACCESS_TOKEN=... INSTAGRAM_
|
|
|
88
88
|
bundle exec portage-ucp-instagram
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
See [`examples/portage_ucp.rb`](https://github.com/tomtom87/Portage/blob/main/portage-ucp
|
|
91
|
+
See [`examples/portage_ucp.rb`](https://github.com/tomtom87/Portage/blob/main/portage-ucp/examples/portage_ucp.rb) for a starting `PORTAGE_UCP_CONFIG` file (a minimal bearer-token `Authenticator` and in-process `RateLimiter`).
|
|
92
92
|
|
|
93
93
|
## Wiring into portage-ucp
|
|
94
94
|
|
data/exe/portage-ucp-instagram
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
|
# Only INSTAGRAM_ACCESS_TOKEN is read here, not client_id/client_secret/
|
|
@@ -70,14 +70,14 @@ module Portage
|
|
|
70
70
|
# Shopify/BigCommerce have one. Fetching the group's other members
|
|
71
71
|
# is a second call, made only for #get_product's single-product
|
|
72
72
|
# path, same N+1 reasoning as every other adapter's variant fetch.
|
|
73
|
-
def product(node
|
|
73
|
+
def product(node)
|
|
74
74
|
Portage::Ucp::Product.new(
|
|
75
75
|
id: node["id"],
|
|
76
76
|
title: node["name"],
|
|
77
77
|
description: description(node),
|
|
78
78
|
price_range: price_range(node["price"]),
|
|
79
79
|
variants: variants(node),
|
|
80
|
-
url: node["url"]
|
|
80
|
+
url: node["url"]
|
|
81
81
|
)
|
|
82
82
|
end
|
|
83
83
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: portage-ucp-instagram
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.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
|