orb-billing 0.9.0 → 0.9.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 +13 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/enum.rb +6 -3
- data/lib/orb/internal/type/union.rb +5 -2
- data/lib/orb/models.rb +4 -4
- data/lib/orb/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: a911416000c7ab7512c65534d93ec78fc6bdefc271f389b689e5c8e4e648809a
|
4
|
+
data.tar.gz: bfa938ce56bcd21cdc4a1cc7f698259fea277b8932c1de4e063a15ca14a57656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 415bfffef41610987f4a2f59f342a8e7943caf2875c418bd7042ef4445d17d84dc1c1a9c1792e2fed0f214611c7ffc06b0962cf74c14346cdca3d0ef507896c2
|
7
|
+
data.tar.gz: '092521598a0a924a980d575e9ec5561a990b6a931229d42020f1ee8dda1946d9934798cc75920d4bff080a60de31d65504e6d9a2b183cfcb9766987ba2085234'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.9.1 (2025-06-02)
|
4
|
+
|
5
|
+
Full Changelog: [v0.9.0...v0.9.1](https://github.com/orbcorp/orb-ruby/compare/v0.9.0...v0.9.1)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* `to_sorbet_type` should not return branded types ([14c7e56](https://github.com/orbcorp/orb-ruby/commit/14c7e5619ef77352b5f86d1c7fa70648c403849a))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([0369cd3](https://github.com/orbcorp/orb-ruby/commit/0369cd3adb7733d10c0fabf71ee4d211685d4c5a))
|
15
|
+
|
3
16
|
## 0.9.0 (2025-05-30)
|
4
17
|
|
5
18
|
Full Changelog: [v0.8.0...v0.9.0](https://github.com/orbcorp/orb-ruby/compare/v0.8.0...v0.9.0)
|
data/README.md
CHANGED
@@ -112,11 +112,14 @@ module Orb
|
|
112
112
|
#
|
113
113
|
# @return [Object]
|
114
114
|
def to_sorbet_type
|
115
|
-
|
115
|
+
types = values.map { Orb::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) }.uniq
|
116
|
+
case types
|
116
117
|
in []
|
117
118
|
T.noreturn
|
118
|
-
in [
|
119
|
-
|
119
|
+
in [type]
|
120
|
+
type
|
121
|
+
else
|
122
|
+
T.any(*types)
|
120
123
|
end
|
121
124
|
end
|
122
125
|
|
@@ -235,11 +235,14 @@ module Orb
|
|
235
235
|
#
|
236
236
|
# @return [Object]
|
237
237
|
def to_sorbet_type
|
238
|
-
|
238
|
+
types = variants.map { Orb::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) }.uniq
|
239
|
+
case types
|
239
240
|
in []
|
240
241
|
T.noreturn
|
242
|
+
in [type]
|
243
|
+
type
|
241
244
|
else
|
242
|
-
T.any(*
|
245
|
+
T.any(*types)
|
243
246
|
end
|
244
247
|
end
|
245
248
|
|
data/lib/orb/models.rb
CHANGED
@@ -11,16 +11,16 @@ module Orb
|
|
11
11
|
mod.constants.each do |name|
|
12
12
|
case mod.const_get(name)
|
13
13
|
in true | false
|
14
|
-
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T
|
14
|
+
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T::Boolean } }
|
15
15
|
mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
|
16
16
|
in Integer
|
17
|
-
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias {
|
17
|
+
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { Integer } }
|
18
18
|
mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
|
19
19
|
in Float
|
20
|
-
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias {
|
20
|
+
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { Float } }
|
21
21
|
mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
|
22
22
|
in Symbol
|
23
|
-
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias {
|
23
|
+
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { Symbol } }
|
24
24
|
mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
|
25
25
|
else
|
26
26
|
end
|
data/lib/orb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orb-billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|