terminal-shop 3.8.2 → 3.8.3

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: 41fcab0609f88656acc669df7df980989c1609b24b7306d8f7c30f9e97e9eac9
4
- data.tar.gz: d5850ccac8a5e91a86b80a985157334f2bc72f1ae885dc053e42427f31c2c3c7
3
+ metadata.gz: ca87a0b1da8b61b429a9b578cde7a63212a7a13157df7363289e911237369aef
4
+ data.tar.gz: c01665d3f6bdebd07187ae7b9a775401dd4c6f4f70aaca092225e9d43b8f7320
5
5
  SHA512:
6
- metadata.gz: 6ba022a40568b20c6c00db48686dc9889f7626147ea6b0fdb8969339f219830aca9245e71c5644fa7a479d877b236c75b21bbb20621173634e75301f660297fd
7
- data.tar.gz: d175060efb7964cdb573a0b2dca76a682f47df0fe9797192e61ff228ff1fcc1e3fab5db3693333bf585f3aadde7eac3f6027b0b1212510ab62d0a50684b7c820
6
+ metadata.gz: d9d441963ab7ab4a30f3aa3602f4668d8d5733ce76416bb0a52e03bfb579662955beb7995a452b5e32490d869ad01c8f1cdd74da14eeed00ba0818e739b67eb1
7
+ data.tar.gz: 3b0bfebce0c069209e7d721eca01d40f86d33e9783c86385daca6b406e4c8f9412dab3c82e6255222298965c11e3c94e503463e83d9c20cbeb52618f28d4bbc5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.8.3 (2025-06-03)
4
+
5
+ Full Changelog: [v3.8.2...v3.8.3](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.2...v3.8.3)
6
+
7
+ ### Bug Fixes
8
+
9
+ * `to_sorbet_type` should not return branded types ([5d5980e](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/5d5980e177248dc7f66ee0802622bfa833b5b313))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** version bump ([ff0ee20](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ff0ee20a9b486bdbf60d5d386d2edf9c1c594dcc))
15
+
3
16
  ## 3.8.2 (2025-05-28)
4
17
 
5
18
  Full Changelog: [v3.8.1...v3.8.2](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.1...v3.8.2)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "terminal-shop", "~> 3.8.2"
20
+ gem "terminal-shop", "~> 3.8.3"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -116,11 +116,14 @@ module TerminalShop
116
116
  #
117
117
  # @return [Object]
118
118
  def to_sorbet_type
119
- case values
119
+ types = values.map { TerminalShop::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) }.uniq
120
+ case types
120
121
  in []
121
122
  T.noreturn
122
- in [value, *_]
123
- T.all(TerminalShop::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(value), self)
123
+ in [type]
124
+ type
125
+ else
126
+ T.any(*types)
124
127
  end
125
128
  end
126
129
 
@@ -201,11 +201,14 @@ module TerminalShop
201
201
  #
202
202
  # @return [Object]
203
203
  def to_sorbet_type
204
- case (v = variants)
204
+ types = variants.map { TerminalShop::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) }.uniq
205
+ case types
205
206
  in []
206
207
  T.noreturn
208
+ in [type]
209
+ type
207
210
  else
208
- T.any(*v.map { TerminalShop::Internal::Util::SorbetRuntimeSupport.to_sorbet_type(_1) })
211
+ T.any(*types)
209
212
  end
210
213
  end
211
214
 
@@ -11,16 +11,16 @@ module TerminalShop
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TerminalShop
4
- VERSION = "3.8.2"
4
+ VERSION = "3.8.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-shop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.2
4
+ version: 3.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terminal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-28 00:00:00.000000000 Z
11
+ date: 2025-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool