dor-services 6.1.2 → 6.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dor/services/release_tag_service.rb +2 -3
- data/lib/dor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee1324635039f51430c984fbf50331973fc89261810d36a124d4b4849edd6e44
|
4
|
+
data.tar.gz: 15d29a0a7c8f2be0c010496ba07728f07762391e7898c2bd8653a8fa635c8c2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65fce8ba7e1f269bd4754853080377d442aa99e42bd598336e33c55e5c3c303f3f0a9ec2a7d73e86c2e97e72fcbe3064efa256094e8adf9b943c498d27ae8be1
|
7
|
+
data.tar.gz: fc63d82c99dc4d21f552c9c4c8c0dafe47ca8caa921799405536026359f43e5519b7d3c6ac3049887ca70bf02d478ae2e4e0d156896c322768d422add149e20c
|
@@ -52,7 +52,7 @@ module Dor
|
|
52
52
|
item.collections.each do |collection|
|
53
53
|
next if collection.id == item.id # recursive, so parents of parents are found, but we need to avoid an infinite loop if the collection references itself (i.e. bad data)
|
54
54
|
|
55
|
-
return_tags =
|
55
|
+
return_tags = combine_two_release_tag_hashes(return_tags, collection.releases.release_tags_for_item_and_all_governing_sets)
|
56
56
|
end
|
57
57
|
return_tags
|
58
58
|
end
|
@@ -137,14 +137,13 @@ module Dor
|
|
137
137
|
# @param hash_one [Hash] a hash of tags obtained via Dor::Item.release_tags or matching format
|
138
138
|
# @param hash_two [Hash] a hash of tags obtained via Dor::Item.release_tags or matching format
|
139
139
|
# @return [Hash] the combined hash with uniquiness enforced
|
140
|
-
def
|
140
|
+
def combine_two_release_tag_hashes(hash_one, hash_two)
|
141
141
|
hash_two.keys.each do |key|
|
142
142
|
hash_one[key] = hash_two[key] if hash_one[key].nil?
|
143
143
|
hash_one[key] = (hash_one[key] + hash_two[key]).uniq unless hash_one[key].nil?
|
144
144
|
end
|
145
145
|
hash_one
|
146
146
|
end
|
147
|
-
private_class_method :combine_two_release_tag_hashes
|
148
147
|
|
149
148
|
# Take a hash of tags as obtained via Dor::Item.release_tags and returns the newest tag for each namespace
|
150
149
|
# @param tags [Hash] a hash of tags obtained via Dor::Item.release_tags or matching format
|
data/lib/dor/version.rb
CHANGED