tucana 0.0.43 → 0.0.44
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 +4 -2
- data/lib/tucana/version.rb +1 -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: 004db8742f607bc97e5a6c843fadfce9f09ac1a8805ae020c8ba3e360fea064a
|
|
4
|
+
data.tar.gz: 32cd9c4d2e7b6f4e54f1e6df1a510e46d048b0779543f612d8c50f1000aa35bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a628f8f18c83de54887ceefdb74ea77adb40aee33462c1707ce5ce7d7eb02d61630aa4286ac9ec66e8d786928995ebc79cc8cb94b759769517f4cf9c704d97a1
|
|
7
|
+
data.tar.gz: 6f69de259afe84b6274c970c4efef311fead1332bbc084711161245f760d898aadbb19022bcdf2c590b85fcd2aa0c7142c0fdbfff441cb544a63069322f37e93
|
|
@@ -238,14 +238,16 @@ module Tucana
|
|
|
238
238
|
def to_h
|
|
239
239
|
{
|
|
240
240
|
target: self.target,
|
|
241
|
-
source: self.source.to_h,
|
|
241
|
+
source: self.source.map(&:to_h),
|
|
242
242
|
generic_combinations: self.generic_combinations.map(&:to_h),
|
|
243
243
|
}
|
|
244
244
|
end
|
|
245
245
|
|
|
246
246
|
def from_hash(config)
|
|
247
247
|
self.target = config[:target]
|
|
248
|
-
self.source =
|
|
248
|
+
self.source = config[:source].map do |source|
|
|
249
|
+
DataTypeIdentifier.from_hash(source)
|
|
250
|
+
end
|
|
249
251
|
self.generic_combinations = config.fetch(:generic_combinations, [])
|
|
250
252
|
self
|
|
251
253
|
end
|
data/lib/tucana/version.rb
CHANGED