digiwin_dsp 0.2.1 → 0.2.2
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/CHANGELOG.md +2 -1
- data/lib/digiwin_dsp/client.rb +1 -0
- data/lib/digiwin_dsp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85730a801ceb67eaeafaffe50bdbdcf971c33005651e2c3d4483a78f1e076bc4
|
|
4
|
+
data.tar.gz: a8e441947b5b0b99a437d8572181a29aeac923890fdf76dcff7ef44c7a88e412
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b79afb15f4661863fbf0a0cff9a6ac8812fc1d36c52cae6119d488f8eef8fcde5913cecbca5974ae4df2cda4f2cd3bfaf4c7405413a456c1a0afb06d738d139
|
|
7
|
+
data.tar.gz: 33a97756f3d48e8384631b7706ba5bf8a8bf83586221315d24a71710284494ff4ebb3d013c4aa8ec0fc2254aa9dd9448d0f1e33714dc279870d477e5b0b057df
|
data/CHANGELOG.md
CHANGED
|
@@ -140,7 +140,8 @@ Initial release. Covers the four Self-hosted Website Module (自有官網模組)
|
|
|
140
140
|
- The gem is **synchronous on purpose**. Callers wrap requests in their own background job runner (e.g. ActiveJob) when needed.
|
|
141
141
|
- Idempotency: clients can send `X-Idempotency-Key` via the `idempotency_key:` kwarg. DSP also dedupes server-side by `form_no + platform_id`.
|
|
142
142
|
|
|
143
|
-
[Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.2.
|
|
143
|
+
[Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.2.2...HEAD
|
|
144
|
+
[0.2.2]: https://github.com/7a6163/digiwin_dsp/compare/v0.2.1...v0.2.2
|
|
144
145
|
[0.2.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.2.0...v0.2.1
|
|
145
146
|
[0.2.0]: https://github.com/7a6163/digiwin_dsp/compare/v0.1.1...v0.2.0
|
|
146
147
|
[0.1.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.1.0...v0.1.1
|
data/lib/digiwin_dsp/client.rb
CHANGED
|
@@ -29,6 +29,7 @@ module DigiwinDsp
|
|
|
29
29
|
# "ORDER-123:Duplicated:訂單不可重複"), so we substring-match rather than
|
|
30
30
|
# anchor with \A. Order matters: more-specific patterns first.
|
|
31
31
|
ENVELOPE_FAILURE_MAP = [
|
|
32
|
+
[/DSP 序號驗證失敗/, AuthenticationError], # bad / missing DSP-api-key
|
|
32
33
|
[/Duplicated:/, DuplicateRequestError], # order already exists
|
|
33
34
|
[/Processing:資料處理中/, RateLimitError], # transient; retry later
|
|
34
35
|
[/Processing:取消訂單處理中/, ValidationError], # cancel in flight
|
data/lib/digiwin_dsp/version.rb
CHANGED