openreceive-server 0.2.1 → 0.2.3

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: 815016906827bfc710461c1d68490612651e561647e844490366a835efd4ec5b
4
- data.tar.gz: 35be8788e0f8bbcc83b2fdf6771e0bbce272267ef6c76151b739e23639ff56fe
3
+ metadata.gz: 6787423e982a56751f291210d207d6ff4c0ccd49eb438f087cc749e35b9eaae6
4
+ data.tar.gz: 73d06359d629e52245de41c2e6fca1068765572325bc9250acd61499904c13e1
5
5
  SHA512:
6
- metadata.gz: 96c1bbbea13c33b366f6f09a30104fa3340b49500ee6ecfd97475155c0b280981a534ba20df800b362d193cdc6cd11c4bbe6c16a6c8bd20e9e8083b6f0a5d9af
7
- data.tar.gz: cfb1f18622c9e424e0f10754da453c7be4300137a204f8e6742cdd38f37587b37afa782a4b6bbc4bf6e55cc5e51727f2d6d9f459806fb4a5db5a8741efd00bdd
6
+ metadata.gz: aa11b53030d9c8c91ab02f39ebd25c57709c540ce351b2a09dc864260d7868bda54f38f99229c374d910e6624eb4d53fb007bdfc91bd364427b15c51513c3dfd
7
+ data.tar.gz: c88b8c1e9576e841b8be7013e78592c25821a76ae97a2fc145f7b8adc555571b1e1b63b5f1d8b3c8d8cfad7869d44a75faf2720834c74a3badbcc3406d85db33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3 - 2026-08-25
4
+
5
+ The Ruby gems release in lockstep with the npm workspace version. The full
6
+ release narrative lives in the repository-root
7
+ [CHANGELOG](https://github.com/openreceive/openreceive/blob/master/CHANGELOG.md);
8
+ entries here are scoped to this gem.
9
+
10
+ - **`POST /checkouts` now echoes `payment_methods`** (HTTP contract 0.4.1),
11
+ amount-aware against the minted attempt's own invoice amount and served on
12
+ the re-fetch path too. `prepare` and `payments/check` already did; the mint
13
+ alone did not, so any client without a library-side merge lost its pay-in
14
+ catalog the moment it minted Lightning.
15
+
16
+ ## 0.2.2 - 2026-08-25
17
+
18
+ The Ruby gems release in lockstep with the npm workspace version. The full
19
+ release narrative lives in the repository-root
20
+ [CHANGELOG](https://github.com/openreceive/openreceive/blob/master/CHANGELOG.md);
21
+ entries here are scoped to this gem.
22
+
23
+ - No functional change. `nwc-ruby` is still deliberately NOT a dependency of
24
+ this gem: a Rack host injects its own NWC client and this gem never reaches
25
+ for one. The Rails engine — the exception that rationale already named — now
26
+ declares it, and the comment here says so.
27
+
3
28
  ## 0.2.1 - 2026-08-24
4
29
 
5
30
  The Ruby gems release in lockstep with the npm workspace version. The full
@@ -73,7 +73,14 @@ module OpenReceive
73
73
  )
74
74
  end
75
75
  commit(checkout, nil, request) unless resolved["payment_hash"]
76
- success(201, { "checkout" => checkout }, request_id)
76
+ # The catalog rides along with the mint for the same reason it rides
77
+ # along with prepare and payments/check (mirrors the JS handler): a
78
+ # client that just minted Lightning must not lose the pay-in options
79
+ # it renders its picker from. Amount-aware, against this attempt's
80
+ # committed invoice amount — and served on the re-fetch path too, so
81
+ # a repeated create answers with the same shape it first did.
82
+ payment_methods = @service.list_swap_options(amount_msats: checkout["amount_msats"])
83
+ success(201, { "checkout" => checkout, "payment_methods" => payment_methods }, request_id)
77
84
  end
78
85
  end
79
86
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OpenReceive
4
4
  module Server
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openreceive-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenReceive
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.2.1
18
+ version: 0.2.3
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.2.1
25
+ version: 0.2.3
26
26
  description: 'Server building blocks for OpenReceive: a storage-free Service that
27
27
  mirrors the Node engine and a framework-agnostic Rack app implementing the shipped
28
28
  HTTP routes while the host owns order and payment persistence. Receive-only: it