solis 0.65.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: 958f85dffb1d0a30da30245b746f99ba10b19f43a8241337c3d9171a7b0965fe
4
- data.tar.gz: c03ea0d47dfb6102877f5bdce5796ea7ecf9de088e34ce415dd4009620182c76
3
+ metadata.gz: 10dca19492f571ddd21415a4c359cbf0dfdfef231c97683006edb31a6eb945fa
4
+ data.tar.gz: cd960ae1960262772debcf74bde0536e7c11c506be8ca347fb5c439bfa67e11c
5
5
  SHA512:
6
- metadata.gz: 77565e3109f5667535e88a1ede6bb58502544acea35c56dab13bceedb3a9d3c91ae4bf7cb5e0091b591479da2f74295d0e840d69e84d7cac37d0edf121273b14
7
- data.tar.gz: a56c76df3f32fe73fe29ef0473298335b2d9ab90adedc5f11367aa399f338c0b19824a40509f5b5903192b5a4d620c20c286fc1a9013961774902ccebbac8a36
6
+ metadata.gz: 10360c6ca52479be02933037d4976c9216854118e672705acf5e008e54661addc762ae9606f5d0230a19d699a239d061a99de389364653d704a63223ed4db87c
7
+ data.tar.gz: 5a35e2e1ec935e2f63e6d93d301d5bd53364ed5d6228994dd7a3f64dbb67d88d2332b8d72da26bf0e75fa2d1d0a43137af64b2f8584c92fab6662aac97a979ba
data/.gitignore CHANGED
@@ -15,4 +15,5 @@ examples/data
15
15
  *.gem
16
16
  lib/solis/entity
17
17
  cache
18
- Gemfile.lock
18
+ Gemfile.lock
19
+ lib/solis/next
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/query.rb CHANGED
@@ -187,7 +187,7 @@ order by ?s
187
187
 
188
188
  result = nil
189
189
 
190
- from_cache = Graphiti.context[:object]&.from_cache || '1'
190
+ from_cache = Graphiti.context[:object]&.from_cache || '0'
191
191
  if @query_cache.key?(query_key) && from_cache.eql?('1')
192
192
  result = @query_cache[query_key]
193
193
  Solis::LOGGER.info("CACHE: from #{query_key}")# if ConfigFile[:debug]
data/lib/solis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Solis
2
- VERSION = "0.65.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.65.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-18 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