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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dd4e75e587fdb57f0fecc1a80921fc36811e3cd9f90e969a5f4f519a82e9d50
4
- data.tar.gz: bed2e9f59938c44df66336947b97a6f059182d24f10c6f49f8c2988d18e5a755
3
+ metadata.gz: 10dca19492f571ddd21415a4c359cbf0dfdfef231c97683006edb31a6eb945fa
4
+ data.tar.gz: cd960ae1960262772debcf74bde0536e7c11c506be8ca347fb5c439bfa67e11c
5
5
  SHA512:
6
- metadata.gz: b58e3d6d1c1dd065e23de313a2b362b90467a50ed460b2759c1fb1f217ceae1ccbe27cf91f436a952918d6b65a4e8b26d6f2d3504b89737383da28debeffde38
7
- data.tar.gz: b8ac1314cc209a8143b71eafae4fea6e7e940bec918190beeb62c6db0950a3937ee64fe5993b8b8166a812a09ad67b9fd3057da7c12dc5eb7e3ea08e82f51489
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
@@ -1,3 +1,3 @@
1
1
  module Solis
2
- VERSION = "0.66.0"
2
+ VERSION = "0.67.0"
3
3
  end
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.66.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-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport