tucana 0.0.33 → 0.0.34
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/tucana/shared/shared.data_type.rb +16 -0
- data/lib/tucana/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: 9895d9c6c02fe287229a13f39c384fa321cf1731c2831e5e7e60040f4dbd3e86
|
4
|
+
data.tar.gz: cef1c54112d05cdac8a1b375fe56177ab57aa04b7cf6721ae96adf62cbf64dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab91689167952caade2e792fcb412f99e963a4b1c216a1635b090445e92971419975cc254f241704b00ce16cc12de674e4bbf39f46374ea07491ee7613ada37
|
7
|
+
data.tar.gz: 0c21ebdb4a8ea9edd04ccf133a1074e18bbfe5a9c872bbf12558d3a74bd6b9c1cd35364d72784e0e28a657ff521527885be38d1cc5e3d6fd7c50a30b0deb2066
|
@@ -26,6 +26,8 @@ module Tucana
|
|
26
26
|
self.input_types
|
27
27
|
when :return_type
|
28
28
|
self.return_type
|
29
|
+
when :parent_type
|
30
|
+
self.parent_type
|
29
31
|
else
|
30
32
|
raise UnexpectedRuleType, "Unknown rule type #{variant}"
|
31
33
|
end
|
@@ -47,6 +49,8 @@ module Tucana
|
|
47
49
|
self.input_types = DefinitionDataTypeInputTypesRuleConfig.new(config)
|
48
50
|
when :return_type
|
49
51
|
self.return_type = DefinitionDataTypeReturnTypeRuleConfig.new(config)
|
52
|
+
when :parent_type
|
53
|
+
self.parent_type = DefinitionDataTypeParentTypeRuleConfig.new(config)
|
50
54
|
else
|
51
55
|
raise UnexpectedRuleType, "Unknown rule type #{variant}"
|
52
56
|
end
|
@@ -159,6 +163,18 @@ module Tucana
|
|
159
163
|
end
|
160
164
|
end
|
161
165
|
|
166
|
+
DefinitionDataTypeParentTypeRuleConfig.class_eval do
|
167
|
+
def to_h
|
168
|
+
{
|
169
|
+
parent_type: self.parent_type,
|
170
|
+
}
|
171
|
+
end
|
172
|
+
|
173
|
+
def self.from_hash(config)
|
174
|
+
new(parent_type: DataTypeIdentifier.from_hash(config[:parent_type]))
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
162
178
|
DataTypeIdentifier.class_eval do
|
163
179
|
def to_h
|
164
180
|
{
|
data/lib/tucana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tucana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niklas van Schrick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|