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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e42098bf2ed1aef6acd1e537b186f64fe1d10acb
4
- data.tar.gz: 77665761dba4a869c2e3dd2277c35add4ae1f34d
3
+ metadata.gz: c8ede5684a771876acc97b734c89266c8268970b
4
+ data.tar.gz: e1d09f44454a2d86f3607518a67735520dc5c20c
5
5
  SHA512:
6
- metadata.gz: 63e0fce560ecae5cf8aff919ace24f765ab0d3713742c1d412eaf10e441fc1dc05a0562d9b3d42616ee5a0e5d00c90b9066d27941e57369d93147de88b323ef3
7
- data.tar.gz: d66051ca6c9181703153ead23ea5dd5002678f81d0072b41669a8234993067b7be3b74171dbb2cdeb3a7ce5abcbfd0ebc447ff721f4a767c42bfb002b05d7543
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
@@ -1,3 +1,3 @@
1
1
  module Grom
2
- VERSION = '0.3.8'.freeze
2
+ VERSION = '0.3.9'.freeze
3
3
  end
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.8
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-14 00:00:00.000000000 Z
13
+ date: 2017-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf