postio 0.1.0 → 0.1.1
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 +12 -1
- data/lib/postio/models.rb +0 -7
- data/lib/postio/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: 75a21e6757601175aa0ef69e931e9fc6011b7ac42e641f63f08d8b65d07f8142
|
|
4
|
+
data.tar.gz: 0d2272d121b4066ed2d203b9293972d7b83aa5f731bce205e7e0504ce612aee5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cffd29bddf693763cc7723473737997aa09761f7937d1f965d4c3a2067042e97742f09ba5d989b3b519150cae62170ab5446ed9a1720ca020e3dea1a2af216b9
|
|
7
|
+
data.tar.gz: 13c21757dab0bc3a53060f5254b3f1793e867cb651d698e506ab4a97a96ddd21bbe049612b11983b8ff515bae3e914aeb13d5fac4f73652ade1daed2521c6b63
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ follows [SemVer](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.1] — 2026-05-02
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Drop the SPEC DRIFT block on `PhoneResult`. postio-api 1.0.3 aligned
|
|
14
|
+
the spec with the runtime — `is_reachable` is bool|nil, and the
|
|
15
|
+
runtime now always emits explicit nulls for every nullable field.
|
|
16
|
+
The hash-lookup `.from_hash` already handled either shape, so no
|
|
17
|
+
consumer-visible change.
|
|
18
|
+
|
|
9
19
|
## [0.1.0] — 2026-05-02
|
|
10
20
|
|
|
11
21
|
Initial release. First Postio Ruby SDK on RubyGems.
|
|
@@ -35,5 +45,6 @@ Initial release. First Postio Ruby SDK on RubyGems.
|
|
|
35
45
|
live API returns booleans there even though the spec says
|
|
36
46
|
string-only. Aligned once postio-api ships a spec/runtime fix.
|
|
37
47
|
|
|
38
|
-
[Unreleased]: https://github.com/postio-uk/postio-ruby/compare/v0.1.
|
|
48
|
+
[Unreleased]: https://github.com/postio-uk/postio-ruby/compare/v0.1.1...HEAD
|
|
49
|
+
[0.1.1]: https://github.com/postio-uk/postio-ruby/releases/tag/v0.1.1
|
|
39
50
|
[0.1.0]: https://github.com/postio-uk/postio-ruby/releases/tag/v0.1.0
|
data/lib/postio/models.rb
CHANGED
|
@@ -109,13 +109,6 @@ module Postio
|
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
# PhoneResult — validation verdict for one phone number.
|
|
112
|
-
#
|
|
113
|
-
# SPEC DRIFT (2026-05-02): the OpenAPI spec marks every nullable
|
|
114
|
-
# field as required, but on invalid input the live API drops them
|
|
115
|
-
# entirely. The .from_hash fetcher uses h["..."] which returns nil
|
|
116
|
-
# for missing keys, papering over the drift. Also: spec says
|
|
117
|
-
# is_reachable is string|null, but the live API returns bool — we
|
|
118
|
-
# accept either.
|
|
119
112
|
PhoneResult = Data.define(
|
|
120
113
|
:number, :is_valid, :is_possible, :type, :country_code, :country_name,
|
|
121
114
|
:national_format, :international_format, :e164_format, :original_carrier,
|
data/lib/postio/version.rb
CHANGED