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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/terminal_shop/internal/type/enum.rb +6 -3
- data/lib/terminal_shop/internal/type/union.rb +5 -2
- data/lib/terminal_shop/models.rb +4 -4
- data/lib/terminal_shop/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: ca87a0b1da8b61b429a9b578cde7a63212a7a13157df7363289e911237369aef
|
4
|
+
data.tar.gz: c01665d3f6bdebd07187ae7b9a775401dd4c6f4f70aaca092225e9d43b8f7320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -116,11 +116,14 @@ module TerminalShop
|
|
116
116
|
#
|
117
117
|
# @return [Object]
|
118
118
|
def to_sorbet_type
|
119
|
-
|
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 [
|
123
|
-
|
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
|
-
|
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(*
|
211
|
+
T.any(*types)
|
209
212
|
end
|
210
213
|
end
|
211
214
|
|
data/lib/terminal_shop/models.rb
CHANGED
@@ -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
|
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
|
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.
|
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-
|
11
|
+
date: 2025-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|