dor_indexing 2.1.0 → 2.1.1

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
  SHA256:
3
- metadata.gz: c8d3d8707dd672ebf7fdf156e9de396568ec428f0cf52dd08ac4adf9f28a028b
4
- data.tar.gz: c4e16cd12d017a3ea51046a852478acf33a0396717b4eb71a8820ca7392c8325
3
+ metadata.gz: c119039d4d2826b59eacba3c0440c1127b602343fa5bc07ed6fc0dd1778d46fd
4
+ data.tar.gz: b584a09d357163ac73d7dd3c920840287b550c2c4d31852bbfc51327502bf4f0
5
5
  SHA512:
6
- metadata.gz: 504267db8fa14f97999c187cb7266f43de06c96eac3074ba266d80f2a4d5272f501f11a6524f0c7049ddaf28b7edac0de24d8a19c949b13a1623c3e953d82ea3
7
- data.tar.gz: 6a5e8b2ebe6989aa1784b751b761e75c112b67da601bff5d0d365187b6b3db6cfb7edae610d1ba3797e5f865420ff8a4cd755be21fe6e040d87ead8b2d967e7a
6
+ metadata.gz: 1c6e44429e42da6ac84ed8acf327a53965d6cfe171cf669dbc1213f410fcd017f480e9516fcbd4666319aab0f7494ce3a1e8673f7213ce1b5033d60cb180e321
7
+ data.tar.gz: 87e84b444f1ad95c5d54031ba72163b3e9a1b94cb5a3535cdaa20894d28e0b32db536ea2b354b92866c67715f73936f1c6af544fc24c43ae7f0517c835e984df
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor_indexing (2.1.0)
4
+ dor_indexing (2.1.1)
5
5
  activesupport
6
6
  cocina-models (~> 0.96.0)
7
7
  dor-workflow-client (~> 7.0)
@@ -163,13 +163,16 @@ GEM
163
163
  rubocop (~> 1.41)
164
164
  rubocop-factory_bot (2.25.1)
165
165
  rubocop (~> 1.41)
166
- rubocop-performance (1.20.2)
166
+ rubocop-performance (1.21.0)
167
167
  rubocop (>= 1.48.1, < 2.0)
168
- rubocop-ast (>= 1.30.0, < 2.0)
169
- rubocop-rspec (2.27.1)
168
+ rubocop-ast (>= 1.31.1, < 2.0)
169
+ rubocop-rspec (2.28.0)
170
170
  rubocop (~> 1.40)
171
171
  rubocop-capybara (~> 2.17)
172
172
  rubocop-factory_bot (~> 2.22)
173
+ rubocop-rspec_rails (~> 2.28)
174
+ rubocop-rspec_rails (2.28.2)
175
+ rubocop (~> 1.40)
173
176
  ruby-progressbar (1.13.0)
174
177
  simplecov (0.22.0)
175
178
  docile (~> 1.1)
@@ -42,8 +42,9 @@ class DorIndexing
42
42
  tags.find { |tag| tag.to == project }&.date&.utc&.iso8601
43
43
  end
44
44
 
45
- # Item tags have precidence over collection tags, so if the collection is release=true
45
+ # Item tags have precedence over collection tags, so if the collection is release=true
46
46
  # and the item is release=false, then it is not released
47
+ # Note that this logic is duplicative of DSA's ReleaseTagService.for_public_metadata
47
48
  def tags
48
49
  @tags ||= tags_from_collection.merge(tags_from_item).values.select(&:release)
49
50
  end
@@ -62,7 +63,6 @@ class DorIndexing
62
63
  def tags_from_item
63
64
  release_tags_finder
64
65
  .call(cocina.externalIdentifier)
65
- .select { |tag| tag.what == 'self' }
66
66
  .group_by(&:to).transform_values do |releases_for_project|
67
67
  releases_for_project.max_by(&:date)
68
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DorIndexing
4
- VERSION = '2.1.0'
4
+ VERSION = '2.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor_indexing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Littman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.5.6
183
+ rubygems_version: 3.5.7
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Library for creating Solr documents for SDR indexing.