portage-ucp-bigcommerce 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: 827a3c5e0887e26b4af0719da1bc0fb4117fa1f6c5e44d91b624bef64c4ad12a
4
- data.tar.gz: c504143d11148ba0eec757a0ab77674264dbb6ee848297e663a3297e2e32b096
3
+ metadata.gz: 9a71c96dc602da8be5b13f7356611d8172038c49c8b9d42d8d5b2208e9e2213f
4
+ data.tar.gz: 0137c7b98d2e2578320aa73608b85acbc5a7f5d826f4ea0e34a6cab9e4e6e5b2
5
5
  SHA512:
6
- metadata.gz: 3eaa018e98764afe72b573252f93eb31f5fcce2886bd963d7ee6b7010db077810106924b94fb45137329a96ce59a33bb4939bb8910652303f34a9b80304be6f3
7
- data.tar.gz: 48f1fc0ca46cbf12b42c65675a872c22a9646bed96c897dfae935304a63f64c27cde4ddf0e0613d1016768adffb28cd1b31bf1f01847be7368aade1c3dee5e12
6
+ metadata.gz: f8760851e94163dfa43272181da97bd191b137f7315076b1471aed3469b10fa88b840897986b4836d5a5a72da1949b180684b6427beff6c0f99313fca40a8c68
7
+ data.tar.gz: 638a13c5fd1441e3ad7d4b42196e4ce7aac87034de7580ecfc33d20dbf780bb9fe6f67f246c7b320e8c42779f96152fc7d06a89ba613ddc9f01170fa2771ef12
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.2.0] - 2026-10-05
10
+
11
+ - **Removed the unused `Client#v2_post` and `Client#v3_put`.** 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
+ - **Removed `Mapper.money`.** It was a one-line pass-through to `Support::Amounts.money` that nothing in the gem called. It is a public module function, so this is **breaking** for any caller using it directly; minor-level for a pre-1.0 gem.
14
+
9
15
  ## [0.1.5] - 2026-09-29
10
16
 
11
17
  - Fixes a `NoMethodError` at launch: `exe/portage-ucp-bigcommerce` handed
@@ -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
  # BIGCOMMERCE_PAYMENT_GATEWAY_ID is optional — only needed to call
@@ -39,10 +39,6 @@ module Portage
39
39
  admin_request(Net::HTTP::Get, "v2", path)
40
40
  end
41
41
 
42
- def v2_post(path, body = {})
43
- admin_request(Net::HTTP::Post, "v2", path, body)
44
- end
45
-
46
42
  def v3_get(path)
47
43
  admin_request(Net::HTTP::Get, "v3", path)
48
44
  end
@@ -51,10 +47,6 @@ module Portage
51
47
  admin_request(Net::HTTP::Post, "v3", path, body)
52
48
  end
53
49
 
54
- def v3_put(path, body = {})
55
- admin_request(Net::HTTP::Put, "v3", path, body)
56
- end
57
-
58
50
  def v3_delete(path)
59
51
  admin_request(Net::HTTP::Delete, "v3", path)
60
52
  end
@@ -13,10 +13,6 @@ module Portage
13
13
  module Mapper
14
14
  module_function
15
15
 
16
- def money(amount, currency)
17
- Portage::Ucp::Support::Amounts.money(amount, currency)
18
- end
19
-
20
16
  def minor_units(amount)
21
17
  Portage::Ucp::Support::Amounts.decimal_to_minor(amount)
22
18
  end
@@ -1,7 +1,7 @@
1
1
  module Portage
2
2
  module Ucp
3
3
  module BigCommerce
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-bigcommerce
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-29 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