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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ddc2fe30477278aa0f78ba2f81557d9a3042fa6631509584ef9f50e91e12654
4
- data.tar.gz: c4fee31316816a2c54e6cfeab8b2296f7212d29a7138f231477265836f8a0d10
3
+ metadata.gz: a911416000c7ab7512c65534d93ec78fc6bdefc271f389b689e5c8e4e648809a
4
+ data.tar.gz: bfa938ce56bcd21cdc4a1cc7f698259fea277b8932c1de4e063a15ca14a57656
5
5
  SHA512:
6
- metadata.gz: a038b9c318e4774b80ea9963ca7f39a0985003653b3cce196ee950edf79e58a660c5e8fcf177ff1745a0c88b67fe059ab6b79c60091c7d6029b7cc040c624575
7
- data.tar.gz: 0cab84209367469b8585a0ee697631df19cba5dfd08565b96e4f1aa6072add3cb37fbfeee42ec4f1605d6b82891b31881e022362684e5a999e492da1203669c4
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
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 0.9.0"
18
+ gem "orb-billing", "~> 0.9.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -112,11 +112,14 @@ module Orb
112
112
  #
113
113
  # @return [Object]
114
114
  def to_sorbet_type
115
- case values
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 [value, *_]
119
- T.all(Orb::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(value), self)
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
- case (v = variants)
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(*v.map { Orb::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) })
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.all(T::Boolean, mod) } }
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 { T.all(Integer, mod) } }
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 { T.all(Float, mod) } }
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 { T.all(Symbol, mod) } }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
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.0
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-05-30 00:00:00.000000000 Z
11
+ date: 2025-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool