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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10ccbfc2e408140246ff9a16fe19e3ee76417bbfce8b00345ea146530e181ee2
4
- data.tar.gz: b88ab44a3a4868afb03c6bd92446f0820f756fee2f7bbdd700f9207fd4eec894
3
+ metadata.gz: 36ca6458aed53540709ad9faa8104294abd8fd9429879852190987ab200fe01e
4
+ data.tar.gz: f3a8990072de5b85e4563de012a669c97702bafe538dcb89cb1acfbb35402195
5
5
  SHA512:
6
- metadata.gz: 6da2e9297054aedd4baff51b05fcee473e9505a3af812ad3d05c687e04b10fb87a1ddde8d43395ba75d25ef043c22b1096149c0ed5a703ac9487ca8557e504b0
7
- data.tar.gz: 98b3e4aaf1c48ca3d74663b466874c076ef61a4f6bf86fe45da34d7ea91039014a717169e9f35bbfc31bb705c7f299a8171d0b6e065cebcd1f44b91c6b1d110d
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-instagram/examples/portage_ucp.rb) for a starting `PORTAGE_UCP_CONFIG` file (a minimal bearer-token `Authenticator` and in-process `RateLimiter`).
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
 
@@ -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 ../examples/portage_ucp.rb for a starting point.
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, site_url: nil)
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"] || site_url
80
+ url: node["url"]
81
81
  )
82
82
  end
83
83
 
@@ -1,7 +1,7 @@
1
1
  module Portage
2
2
  module Ucp
3
3
  module Instagram
4
- VERSION = "0.1.5".freeze
4
+ VERSION = "0.2.0".freeze
5
5
  end
6
6
  end
7
7
  end
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.1.5
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-09-25 00:00:00.000000000 Z
11
+ date: 2026-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: portage-ucp