rail0-sdk 1.10.2 → 1.10.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 +4 -4
- data/README.md +16 -0
- data/lib/rail0/error_hints.rb +3 -2
- data/lib/rail0/types.rb +1 -1
- data/lib/rail0/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: ffedcff1c40dfa0fdf62d8d15289921c1dc3b326b2c9986d691357176a773694
|
|
4
|
+
data.tar.gz: 31507c49dbd2eec77b76f1bfa82ef0113321febc12c655e32abd2fccf19dcea0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49bad6b03184af774434adf8de613d06ae1a48c76fa0da9a2c6418a4fd543cfc76c4d68cb40147c2c40bd2138de139f29a2065b297d072fefcc2512edb5bb802
|
|
7
|
+
data.tar.gz: f3de857516390eb483e3166317c1a8cbcbb062846f68db86963e46859b3801f3b3f8655728b36588b5bd645ff80a2deab027462c093382608997dd66f07da087
|
data/README.md
CHANGED
|
@@ -1313,6 +1313,22 @@ branch decide the version and fill the notes, together with anything merged on `
|
|
|
1313
1313
|
since the last tag. After the release merges, delete `milestone/next`, cut it again from
|
|
1314
1314
|
`main` and move the open milestone's pull requests onto it.
|
|
1315
1315
|
|
|
1316
|
+
**The release pull request says what it releases.** Two things, both checked or written
|
|
1317
|
+
by `bin/release-prepare`:
|
|
1318
|
+
|
|
1319
|
+
- **A summary, written by its author** at the top of the description: a few lines saying
|
|
1320
|
+
what the release brings, what is new and what does not change. The script writes its
|
|
1321
|
+
own block (notes, version, how the release happens) below it, between
|
|
1322
|
+
`<!-- release:start -->` markers, and keeps everything above on every re-run, so the
|
|
1323
|
+
summary is written once and updated when more is merged. It is the first thing shown in
|
|
1324
|
+
the pull request, in the message of its merge commit and in every preview. Without one
|
|
1325
|
+
(an empty description, only a comment, or a placeholder) a real run **refuses** before
|
|
1326
|
+
it commits or pushes anything; `--dry-run` warns and lists what the release contains,
|
|
1327
|
+
which is what to write the summary from.
|
|
1328
|
+
- **A title written by the script**:
|
|
1329
|
+
`Release vX.Y.Z: <the first pull request that decided the version> and N more`. It is
|
|
1330
|
+
rewritten on every run, so it follows what is merged.
|
|
1331
|
+
|
|
1316
1332
|
1. `bin/release-prepare`, on an up-to-date, clean `main`. It computes the version from the titles of the pull requests merged since the last tag
|
|
1317
1333
|
(Conventional Commits): a breaking change — `!` after the type, as in `feat(api)!:`, or a
|
|
1318
1334
|
`BREAKING CHANGE:` footer — makes it a major, any `feat` a minor, anything else a patch,
|
data/lib/rail0/error_hints.rb
CHANGED
|
@@ -19,7 +19,8 @@ module Rail0
|
|
|
19
19
|
"not_disputed" => "there is no open dispute to close",
|
|
20
20
|
"nothing_to_dispute" => "a dispute needs a merchant-held (refundable) balance",
|
|
21
21
|
"unknown_dispute_reason" => "reason must be a dispute-reason code (Rail0::DisputeReasons.codes(:open) / codes(:close)) or exactly its bytes32 — full_refund is system-only",
|
|
22
|
-
"transaction_not_overwritable" => "
|
|
22
|
+
"transaction_not_overwritable" => "this operation's transaction is already confirmed — its hash cannot be replaced (a failed one can: report the hash again)",
|
|
23
|
+
"transaction_in_flight" => "the other party already has this operation's transaction signed or sent, and this session cannot replace it — wait a moment and prepare the operation again to get a transaction of your own",
|
|
23
24
|
"signer_mismatch" => "the signature recovers to a different wallet than the one that must sign — the payment's payer/payee, or at POST /claim the wallet the onboarding request names",
|
|
24
25
|
# The SIWE BINDING failures, split out of signer_mismatch so a failed login says
|
|
25
26
|
# WHICH part of the proof did not bind (#216). None names the server's own
|
|
@@ -87,7 +88,7 @@ module Rail0
|
|
|
87
88
|
# Ported from rail0-go / rail0-ts, which carried these five and this table did not.
|
|
88
89
|
"validation_failed" => "a parameter is invalid — the error detail names the offending field",
|
|
89
90
|
"invalid_sort" => "that field cannot be sorted on — the error detail names the allowed set",
|
|
90
|
-
"rate_limited" => "
|
|
91
|
+
"rate_limited" => "too many requests, or too many of this payment's transactions still waiting to be confirmed — wait the Retry-After seconds and retry",
|
|
91
92
|
"event_not_found" => "the reported transaction mined but did not perform this operation on this payment — nothing moved; check the hash and prepare the operation again",
|
|
92
93
|
"submission_timeout" => "the transaction was not mined in time and was recorded as failed — if it mines later, re-report its hash via the operation's submitted endpoint",
|
|
93
94
|
# From the gateway's error catalog (lib/rail0/error_catalog.rb).
|
data/lib/rail0/types.rb
CHANGED
|
@@ -530,7 +530,7 @@ module Rail0
|
|
|
530
530
|
:webhooks, # Hash
|
|
531
531
|
:settlement, # Hash
|
|
532
532
|
:rate_limit, # Hash
|
|
533
|
-
:siwe, # Hash — domains (SIWE_DOMAIN), accepted_chain_ids (1 plus the ids of the active
|
|
533
|
+
:siwe, # Hash — domains (SIWE_DOMAIN), accepted_chain_ids (1 plus the ids of the catalog's chains, active or not: the chainId values a login may carry) and nonce_ttl.
|
|
534
534
|
:session, # Hash — environment (RAIL0_ENVIRONMENT, default RACK_ENV: the scope every issued token is bound to), jwt_ttl and jwt_audience: the session token's lifetime (a constant) and audience (`rail0-gateway:<environment>`).
|
|
535
535
|
:fees, # Hash
|
|
536
536
|
:rpc, # Hash
|
data/lib/rail0/version.rb
CHANGED
|
@@ -5,5 +5,5 @@ module Rail0
|
|
|
5
5
|
# consumed by path from a sibling checkout, where the number bought nothing: no registry
|
|
6
6
|
# ever served a 1.x, no tag was ever cut, and the one consumer resolves the working tree.
|
|
7
7
|
# Publishing from 1.2.0 would have implied two releases nobody can install.
|
|
8
|
-
VERSION = "1.10.
|
|
8
|
+
VERSION = "1.10.3"
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rail0-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Commerce Layer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logger
|