locabulary 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/locabulary/items/administrative_unit.rb +7 -1
- data/lib/locabulary/version.rb +1 -1
- data/lib/locabulary.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399c1a9f7cf3a7365116f94bd18cefa4c5ccd240
|
4
|
+
data.tar.gz: 9399cbc0fcd7b6a8d8b1839b79225e3061bd5fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74c9bb11679cea1e9c2831a995607426db1494028a5b147171e24233b11fe1378221769bb210c3f8f1e6331960502cdbf24b61f6167f3b3836da31baeffe312b
|
7
|
+
data.tar.gz: e1a7b89c4e1583ecbb29e2b0137fa3422d9b33ec4e2ec3afd6ac2f228f48a11afecc5ffcb4daa32d334196e73ca213b44957c79f02aa9402eac2505840823b3c
|
data/lib/locabulary/version.rb
CHANGED
data/lib/locabulary.rb
CHANGED
@@ -54,7 +54,7 @@ module Locabulary
|
|
54
54
|
def associate_parents_and_childrens_for(hierarchy_graph_keys, items, predicate_name)
|
55
55
|
items.each do |item|
|
56
56
|
begin
|
57
|
-
hierarchy_graph_keys.fetch(item.parent_term_label).
|
57
|
+
hierarchy_graph_keys.fetch(item.parent_term_label).add_child(item) unless item.parent_slugs.empty?
|
58
58
|
rescue KeyError => error
|
59
59
|
raise Exceptions::MissingHierarchicalParentError.new(predicate_name, error)
|
60
60
|
end
|