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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e359d29da0952d875926e1ceec8e723725e8ca5df391e38c3ad1fe4543549941
4
- data.tar.gz: 2c074e133cb69bab37024057414521d2be3b31ff4b9773bfb693bba7b25e13a7
3
+ metadata.gz: ee1324635039f51430c984fbf50331973fc89261810d36a124d4b4849edd6e44
4
+ data.tar.gz: 15d29a0a7c8f2be0c010496ba07728f07762391e7898c2bd8653a8fa635c8c2d
5
5
  SHA512:
6
- metadata.gz: 8f0b239aaaca59b055c5b4792d271334d2e9e7b55b2c08e606465f14037a5cb40f2cd516e18cad4f7dbe8f4e76fbfb9bf06f2e7ee29ea6eb45869953b74e8492
7
- data.tar.gz: 970cb2f715414d67c487fdf2ec2ff409ad55c4d73230c630d37724fa44b7ca6893c6007eaa3800d897f4ac3e4ce11b82e426514555c92cd9c1c7bd1672f459ec
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 = Releases.combine_two_release_tag_hashes(return_tags, collection.releases.release_tags_for_item_and_all_governing_sets)
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 self.combine_two_release_tag_hashes(hash_one, hash_two)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dor
4
- VERSION = '6.1.2'
4
+ VERSION = '6.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein