portage-ucp-magento 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: cb000b9bbe4dfbaaa19f21f495884ac030d7bbd0610aaf28fb3f42b89c25afc1
4
- data.tar.gz: f2ac022e42fc50e2402301b05fd887fdeea90051874632c4c62365d3aaa2d9c3
3
+ metadata.gz: ea401b98661b2c2e96586cf55bf37ee69a8287f39399a4131396d96d2cdfd13d
4
+ data.tar.gz: a646cb0522acba00f521255af96a7e7d0c7a6c2294536c21b1cb8d728c61a5b3
5
5
  SHA512:
6
- metadata.gz: 78dedcd0dbd6623b506660a9e07e159befefc4d6dda9e6a1c7f4ca8b5c0f8d11024e0ccf63d7bce9d6cc31c279caeff5f35370aa36a1ca205c70f038220050bf
7
- data.tar.gz: 8724499d610ec281ac4c820edc2b98b1dc0335fa4fc223c68881e98d5f4065998c4de668e23531aaf85ab84a234c66ddffaf25a268b1166045d4e3b15a5927f8
6
+ metadata.gz: 40ced25b368ea1b9ef46d8fd5e2130971d504b387ea7c7b333290b368eb9d228f73588639640c64352df7d712fc92ac893d4d3237eeaa16870fab27e64762ee2
7
+ data.tar.gz: a4ca4a63d937ffbaefb0829845ce38b3d5c3eed397bc33e07953f2484534b86c07a1a08d1c7a76c21dead3da2a056464a831b4ce524261415c4a3c721b59aafd
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#admin_post`.** Nothing in the gem called it. It was public on the client class, so this is **breaking** for any caller using it 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-magento` handed the
@@ -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 MAGENTO_ADMIN_TOKEN is read here, not username/password: this exe
@@ -35,10 +35,6 @@ module Portage
35
35
  admin_request(Net::HTTP::Get, path)
36
36
  end
37
37
 
38
- def admin_post(path, body = {})
39
- admin_request(Net::HTTP::Post, path, body)
40
- end
41
-
42
38
  def guest_get(path)
43
39
  guest_request(Net::HTTP::Get, path)
44
40
  end
@@ -17,10 +17,6 @@ module Portage
17
17
  module Mapper
18
18
  module_function
19
19
 
20
- def money(amount, currency)
21
- Portage::Ucp::Support::Amounts.money(amount, currency)
22
- end
23
-
24
20
  def minor_units(amount)
25
21
  Portage::Ucp::Support::Amounts.decimal_to_minor(amount)
26
22
  end
@@ -1,7 +1,7 @@
1
1
  module Portage
2
2
  module Ucp
3
3
  module Magento
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-magento
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