shale-builder 0.1.7 → 0.1.9
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 +8 -0
- data/Gemfile.lock +1 -1
- data/lib/shale/builder/version.rb +1 -1
- data/lib/shale/builder.rb +2 -2
- data/lib/tapioca/dsl/compilers/shale.rb +3 -2
- 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: 1ad79ec1b93dc534e3c8fb9b6b2a141bc186148b4ce21cbd3ce1f090b3445323
|
4
|
+
data.tar.gz: f9b8d364e8418d94b69046257d9470ff26596601fbffd5b3454f82ef152d98d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d7fcf6887a218e486fded1f9b0cee50cf275f0788482d4a2a1a0e5bc65712b86ea708d596d1b0b9c40dbb548091dc1324cb6c6dca567ae56f50a06d1222f2c
|
7
|
+
data.tar.gz: 1e861780af38b06aee8440419a7d67313f83d535954793362a27a7ae196c6bd49c0485369186655b11602194dcffea4ed6f6a7b8c16f64fa2a6b5ec3a256162d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/shale/builder.rb
CHANGED
@@ -88,8 +88,8 @@ module Shale
|
|
88
88
|
body
|
89
89
|
end
|
90
90
|
|
91
|
-
sig { abstract.returns(T.attached_class) }
|
92
|
-
def new; end
|
91
|
+
sig { abstract.params(props: T.anything).returns(T.attached_class) }
|
92
|
+
def new(**props); end
|
93
93
|
|
94
94
|
sig { abstract.returns(T::Hash[Symbol, Shale::Attribute]) }
|
95
95
|
def attributes; end
|
@@ -34,8 +34,9 @@ module Tapioca
|
|
34
34
|
mod = klass.create_module(SHALE_ATTRIBUTE_MODULE)
|
35
35
|
klass.create_include(SHALE_ATTRIBUTE_MODULE)
|
36
36
|
# For each attribute defined in the class
|
37
|
-
constant.attributes.
|
38
|
-
|
37
|
+
attribute_names = constant.attributes.keys.sort
|
38
|
+
attribute_names.each do |attribute_name|
|
39
|
+
attribute = T.let(constant.attributes[attribute_name], ::Shale::Attribute)
|
39
40
|
non_nilable_type, nilable_type = shale_type_to_sorbet_type(attribute)
|
40
41
|
type = nilable_type
|
41
42
|
if attribute.collection?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shale-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz Drewniak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: booleans
|