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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee5a074b8751e84901306fd99658973e1635f98761b1a6925a9b3c83d6a00454
4
- data.tar.gz: d72f7607c25f2437d0f7436c9b503968a7c3d20f0584ba427365346fb8348649
3
+ metadata.gz: 75a21e6757601175aa0ef69e931e9fc6011b7ac42e641f63f08d8b65d07f8142
4
+ data.tar.gz: 0d2272d121b4066ed2d203b9293972d7b83aa5f731bce205e7e0504ce612aee5
5
5
  SHA512:
6
- metadata.gz: e5bf796095c34ef9815140482ee8347d79aa747f39e173ca0ea5296d3d16c1cd7a25ad039fe947ddad598236b7be9f070ec6f648d455164be93342f12a9a8b25
7
- data.tar.gz: 99e2f1d7221a697535bc165b636cbe683ca4ae41448757f0f43f3af821f8dea7bbf6e2aff3b3694c66c441d566ee4a54512265b443f9d02b69277c0e7cfb7028
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.0...HEAD
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Postio
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postio