grom 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grom/builder.rb +1 -1
- data/lib/grom/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ede5684a771876acc97b734c89266c8268970b
|
4
|
+
data.tar.gz: e1d09f44454a2d86f3607518a67735520dc5c20c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 739a1f359932267795707796a61c7488e793483cd67cc59aeebbbf45c96a48bb04a57808d6190b33035a449132dfdc4e1c5f4ad0889aa37921cfa45638b45387
|
7
|
+
data.tar.gz: 1e5385d679c41209a2ce5f845de428c42278198041fd7b7745956ee755c8c0b9bd4e5f5f6e848a1c8c149eefda6afe8f8cca6728aa3c18d1b2815c33ef710771
|
data/lib/grom/builder.rb
CHANGED
@@ -50,7 +50,7 @@ module Grom
|
|
50
50
|
object_uris.each do |object_uri|
|
51
51
|
predicate_name_symbol = "@#{predicate}".to_sym
|
52
52
|
object_array = current_node.instance_variable_get(predicate_name_symbol)
|
53
|
-
object_array = [] if object_array.is_a?(String)
|
53
|
+
object_array = [] if object_array.is_a?(String) || object_array.all? { |object| object.is_a?(String) }
|
54
54
|
object_array << @objects_by_subject[object_uri]
|
55
55
|
|
56
56
|
current_node.instance_variable_set(predicate_name_symbol, object_array)
|
data/lib/grom/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-06-
|
13
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf
|