skit 0.1.2 → 0.1.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/lib/skit/attribute.rb +2 -2
- data/lib/skit/version.rb +1 -1
- data/lib/skit.rb +1 -1
- data/lib/tapioca/dsl/compilers/skit.rb +0 -1
- 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: 9cc33f58131c2335f5dad719b28ea332d0f79f2c449009197c918807337c7516
|
|
4
|
+
data.tar.gz: 5c2f69177a3080487c122fec666c097faa46ea08eccacdc427aec38b9eb467ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ce51b62c7eaa852e78500c2626b072d3b0c37b96182c2d71787c266449afd8300849f83e60cf31d0934058607b1a626ec90efbd36e3307bcb1c304cb35f08b2
|
|
7
|
+
data.tar.gz: 408211448ab4abd8c0cbe498bc9a49b9c2e39ea3b1a0a9b592fedf00c845a90bcb878ba144cdbbb6647dc0c8b0590a8192682b91900c421376b4f848d0381c62
|
data/lib/skit/attribute.rb
CHANGED
|
@@ -8,12 +8,12 @@ module Skit
|
|
|
8
8
|
class Attribute < ActiveModel::Type::Value
|
|
9
9
|
extend T::Sig
|
|
10
10
|
|
|
11
|
-
sig { params(type_spec: T.
|
|
11
|
+
sig { params(type_spec: T.any(T.class_of(T::Struct), T::Types::Base)).returns(Attribute) }
|
|
12
12
|
def self.[](type_spec)
|
|
13
13
|
new(type_spec)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
sig { params(type_spec: T.
|
|
16
|
+
sig { params(type_spec: T.any(T.class_of(T::Struct), T::Types::Base)).void }
|
|
17
17
|
def initialize(type_spec)
|
|
18
18
|
super()
|
|
19
19
|
@type_spec = type_spec
|
data/lib/skit/version.rb
CHANGED
data/lib/skit.rb
CHANGED
|
@@ -38,7 +38,7 @@ module Skit # rubocop:disable Style/OneClassPerFile
|
|
|
38
38
|
# @param type [Class] The T::Struct class to deserialize to
|
|
39
39
|
# @return [T::Struct] The deserialized struct instance
|
|
40
40
|
# @raise [Serialization::DeserializeError] If deserialization fails
|
|
41
|
-
sig { params(hash: T.untyped, type: T.class_of(T::Struct)).returns(T::Struct) }
|
|
41
|
+
sig { params(hash: T.untyped, type: T.any(T.class_of(T::Struct), T::Types::Base)).returns(T::Struct) }
|
|
42
42
|
def self.deserialize(hash, type)
|
|
43
43
|
processor = Serialization.default_registry.processor_for(type)
|
|
44
44
|
processor.deserialize(hash)
|