rail0-sdk 1.10.1 → 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 +30 -2
- data/lib/rail0/error_hints.rb +3 -3
- 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
|
@@ -1302,6 +1302,33 @@ that argues with the codebase teaches people to ignore it.
|
|
|
1302
1302
|
|
|
1303
1303
|
A release is an approved pull request: merging it is what publishes.
|
|
1304
1304
|
|
|
1305
|
+
**Pull requests do not target `main` one by one: they go into a milestone.** The next
|
|
1306
|
+
release has a GitHub milestone ("Next release") and a branch, `milestone/next`, cut from
|
|
1307
|
+
`main` (milestone branches always start with `milestone/`). Change pull requests target `milestone/next` and carry the milestone; CI runs on
|
|
1308
|
+
them, and the developer merges into the branch only what is meant to ship. One pull
|
|
1309
|
+
request, `milestone/next` → `main`, carries the release, so a single approval covers the
|
|
1310
|
+
whole milestone. Run `bin/release-prepare` on `milestone/next` (clean, pushed, containing
|
|
1311
|
+
`origin/main`, its pull request into `main` open): the pull requests merged into the
|
|
1312
|
+
branch decide the version and fill the notes, together with anything merged on `main`
|
|
1313
|
+
since the last tag. After the release merges, delete `milestone/next`, cut it again from
|
|
1314
|
+
`main` and move the open milestone's pull requests onto it.
|
|
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
|
+
|
|
1305
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
|
|
1306
1333
|
(Conventional Commits): a breaking change — `!` after the type, as in `feat(api)!:`, or a
|
|
1307
1334
|
`BREAKING CHANGE:` footer — makes it a major, any `feat` a minor, anything else a patch,
|
|
@@ -1321,8 +1348,9 @@ A release is an approved pull request: merging it is what publishes.
|
|
|
1321
1348
|
and the notes instead of bumping twice. One approval then covers the change and its
|
|
1322
1349
|
release.
|
|
1323
1350
|
2. Review the pull request (edit the notes in its body if needed), approve and merge it.
|
|
1324
|
-
The approval must come from a reviewer **
|
|
1325
|
-
|
|
1351
|
+
The approval must come from a reviewer **who neither opened the pull request nor wrote
|
|
1352
|
+
any of its changes** (its commits, co-authored commits, and the pull requests merged
|
|
1353
|
+
into the milestone), on its final commit: release.yml checks it before publishing anything and stops otherwise —
|
|
1326
1354
|
an admin merge that bypassed the review, a direct push to `main` or a resume of an
|
|
1327
1355
|
unapproved release publishes nothing.
|
|
1328
1356
|
3. `.github/workflows/release.yml` runs on that push to `main`: CI again on the release
|
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).
|
|
@@ -102,7 +103,6 @@ module Rail0
|
|
|
102
103
|
# The /admin/onboardings codes (onboarding_not_found, onboarding_completed) are left
|
|
103
104
|
# out: those routes are the console's, not the SDK's. The link codes never say which
|
|
104
105
|
# term failed — a stale link has one remedy: the newest email, or a new link.
|
|
105
|
-
"signup_unavailable" => "self-service sign-up is switched off on this gateway for now — try again later, or ask your RAIL0 contact for an invite",
|
|
106
106
|
"onboarding_unavailable" => "this gateway has no onboarding secret configured, so it can neither issue nor verify sign-up links — ask the operator",
|
|
107
107
|
"email_provider_not_configured" => "the gateway has no email provider that delivers, so no link was sent and nothing was saved — ask the operator to configure one",
|
|
108
108
|
"email_domain_not_allowed" => "this environment emails only its allowed domains (the detail lists them) — use an address on one of them; nothing was saved",
|
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
|