dor_indexing 2.0.1 → 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: e6f6f6759bf26596d10e06b8998b946fa9c8266d42e74ee613823101c0ccb5d8
4
- data.tar.gz: 181e6e7623ba998df9a9b6712154bb73213efb1222651ae74141742d0262e1e1
3
+ metadata.gz: c119039d4d2826b59eacba3c0440c1127b602343fa5bc07ed6fc0dd1778d46fd
4
+ data.tar.gz: b584a09d357163ac73d7dd3c920840287b550c2c4d31852bbfc51327502bf4f0
5
5
  SHA512:
6
- metadata.gz: ad3a376bc082832a6459fe7302906303a5ad2d9dfddddef77b9c716951a78491b11ed484ec8314ef6360e20fb567a3bfe3dafd0867563782c9d62b7af4616c9f
7
- data.tar.gz: 21201937140f9a7023f8992560595a4b44eff2b40140c1d4e8b4ec3b5ea730659024d29091d8571397bfa19bcbf718eed159005d2615d2b5aec2e30cd9562e58
6
+ metadata.gz: 1c6e44429e42da6ac84ed8acf327a53965d6cfe171cf669dbc1213f410fcd017f480e9516fcbd4666319aab0f7494ce3a1e8673f7213ce1b5033d60cb180e321
7
+ data.tar.gz: 87e84b444f1ad95c5d54031ba72163b3e9a1b94cb5a3535cdaa20894d28e0b32db536ea2b354b92866c67715f73936f1c6af544fc24c43ae7f0517c835e984df
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor_indexing (2.0.1)
4
+ dor_indexing (2.1.1)
5
5
  activesupport
6
- cocina-models (~> 0.95.1)
6
+ cocina-models (~> 0.96.0)
7
7
  dor-workflow-client (~> 7.0)
8
8
  honeybadger
9
9
  marc-vocab (~> 0.3.0)
@@ -28,7 +28,7 @@ GEM
28
28
  base64 (0.2.0)
29
29
  bigdecimal (3.1.7)
30
30
  byebug (11.1.3)
31
- cocina-models (0.95.1)
31
+ cocina-models (0.96.0)
32
32
  activesupport
33
33
  deprecation
34
34
  dry-struct (~> 1.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)
@@ -192,6 +195,7 @@ GEM
192
195
  zeitwerk (2.6.13)
193
196
 
194
197
  PLATFORMS
198
+ x86_64-darwin-20
195
199
  x86_64-darwin-21
196
200
  x86_64-darwin-22
197
201
  x86_64-linux
data/dor_indexing.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ['lib']
33
33
 
34
34
  spec.add_dependency 'activesupport'
35
- spec.add_dependency 'cocina-models', '~> 0.95.1'
35
+ spec.add_dependency 'cocina-models', '~> 0.96.0'
36
36
  spec.add_dependency 'dor-workflow-client', '~> 7.0'
37
37
  spec.add_dependency 'honeybadger'
38
38
  spec.add_dependency 'marc-vocab', '~> 0.3.0'
@@ -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.0.1'
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.0.1
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-28 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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.95.1
33
+ version: 0.96.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.95.1
40
+ version: 0.96.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dor-workflow-client
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -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.