solis 0.66.0 → 0.67.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solis/model.rb +8 -0
- data/lib/solis/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: 10dca19492f571ddd21415a4c359cbf0dfdfef231c97683006edb31a6eb945fa
|
4
|
+
data.tar.gz: cd960ae1960262772debcf74bde0536e7c11c506be8ca347fb5c439bfa67e11c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10360c6ca52479be02933037d4976c9216854118e672705acf5e008e54661addc762ae9606f5d0230a19d699a239d061a99de389364653d704a63223ed4db87c
|
7
|
+
data.tar.gz: 5a35e2e1ec935e2f63e6d93d301d5bd53364ed5d6228994dd7a3f64dbb67d88d2332b8d72da26bf0e75fa2d1d0a43137af64b2f8584c92fab6662aac97a979ba
|
data/lib/solis/model.rb
CHANGED
@@ -23,6 +23,14 @@ module Solis
|
|
23
23
|
if self.class.metadata[:attributes][attribute.to_s][:node_kind].is_a?(RDF::URI) && value.is_a?(Hash)
|
24
24
|
inner_model = self.class.graph.shape_as_model(self.class.metadata[:attributes][attribute.to_s][:datatype].to_s)
|
25
25
|
value = inner_model.new(value)
|
26
|
+
elsif self.class.metadata[:attributes][attribute.to_s][:node_kind].is_a?(RDF::URI) && value.is_a?(Array)
|
27
|
+
new_value = []
|
28
|
+
value.each do |v|
|
29
|
+
next unless v.class.is_a?(Hash)
|
30
|
+
inner_model = self.class.graph.shape_as_model(self.class.metadata[:attributes][attribute.to_s][:datatype].to_s)
|
31
|
+
new_value << inner_model.new(v)
|
32
|
+
end
|
33
|
+
value = new_value
|
26
34
|
end
|
27
35
|
|
28
36
|
# switched off. currently language query parameters returns the value
|
data/lib/solis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.67.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehmet Celik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|