shale-builder 0.8.4 → 0.8.5
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 +7 -0
- data/Gemfile.lock +1 -1
- data/lib/shale/builder/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/shale.rb +16 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ff18fc2a346966ffb57504d1391b21bc1ffb0875210149a9fe9bbfaf8f34cbc
|
|
4
|
+
data.tar.gz: 0d5b178c4565dbc3471775ae4d3e11c79fc8ddb5c4a80a9d7ae519a43102c7dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c63c403ff14f295e3647192ea9f5ae3c6116adbf7c6f0ed6f65a3d635797e51a486788f79bc5f73ee6d3435377b60811aa65e04e37be2b16e26a63febc5fde7
|
|
7
|
+
data.tar.gz: c9fcbcfcc5d2f76385df8ba4c8cf07ee6c11be284f80bbb2edc8eebeeb4c532b932748f9fdc624ffd76d7b28d05725c442f46ef19976ef050460dea743d0c7ed
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.8.5] - 2025-10-27
|
|
9
|
+
|
|
10
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.3...v0.8.5)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
- Fix the tapioca compiler behaviour with `T.untyped`
|
|
14
|
+
|
|
8
15
|
## [0.8.3] - 2025-10-24
|
|
9
16
|
|
|
10
17
|
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.8.2...v0.8.3)
|
data/Gemfile.lock
CHANGED
|
@@ -50,9 +50,9 @@ module Tapioca
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
if attribute.collection?
|
|
53
|
-
getter_without_block_type =
|
|
53
|
+
getter_without_block_type = wrap_nilable_type(wrap_array_type(return_type))
|
|
54
54
|
elsif nilable
|
|
55
|
-
getter_without_block_type =
|
|
55
|
+
getter_without_block_type = wrap_nilable_type(return_type)
|
|
56
56
|
else
|
|
57
57
|
getter_without_block_type = return_type.to_s
|
|
58
58
|
end
|
|
@@ -64,9 +64,9 @@ module Tapioca
|
|
|
64
64
|
setter_type, nilable = shale_type_to_sorbet_setter_type(attribute)
|
|
65
65
|
end
|
|
66
66
|
if attribute.collection?
|
|
67
|
-
setter_type_str =
|
|
67
|
+
setter_type_str = wrap_nilable_type(wrap_array_type(setter_type))
|
|
68
68
|
elsif nilable
|
|
69
|
-
setter_type_str =
|
|
69
|
+
setter_type_str = wrap_nilable_type(setter_type)
|
|
70
70
|
else
|
|
71
71
|
setter_type_str = setter_type.to_s
|
|
72
72
|
end
|
|
@@ -92,6 +92,18 @@ module Tapioca
|
|
|
92
92
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
+
sig { params(type: T.untyped).returns(String) }
|
|
96
|
+
def wrap_nilable_type(type)
|
|
97
|
+
return "T.nilable(#{type})" if type != T.untyped
|
|
98
|
+
|
|
99
|
+
T.unsafe(type).to_s
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
sig { params(type: T.untyped).returns(String) }
|
|
103
|
+
def wrap_array_type(type)
|
|
104
|
+
"T::Array[#{type}]"
|
|
105
|
+
end
|
|
106
|
+
|
|
95
107
|
sig do
|
|
96
108
|
params(
|
|
97
109
|
mod: RBI::Scope,
|