dor_indexing 2.1.0 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -4
- data/lib/dor_indexing/indexers/releasable_indexer.rb +3 -3
- data/lib/dor_indexing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ba195fa5c141b1fb44c63f40a6fcf5a62768a0eef1e693ab2f0d05dc198957a
|
4
|
+
data.tar.gz: 490dfeb6b3f98baff6191820f167c78c586cf16527032baf9e9bc68288f8cbe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e51b2329780b6cda1b3610968f8b3c9e89d0514686aa98aab847a6172ab03f7e63b128848faf94c962e16234471005c6e6434ccb0358a15fe01e2a8b786556d
|
7
|
+
data.tar.gz: ce3fb7755ae5bcfcb74a6b4bfbbb0b73bd7b76c2b15f49134bd1c85d959816e612b02244a0904dab6d9bd0371868ac4eaf00d47d45ff81f0c8627428ea4853be
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dor_indexing (2.1.
|
4
|
+
dor_indexing (2.1.2)
|
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.
|
166
|
+
rubocop-performance (1.21.0)
|
167
167
|
rubocop (>= 1.48.1, < 2.0)
|
168
|
-
rubocop-ast (>= 1.
|
169
|
-
rubocop-rspec (2.
|
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
|
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
|
@@ -52,7 +53,7 @@ class DorIndexing
|
|
52
53
|
parent_collections.each_with_object({}) do |collection, result|
|
53
54
|
release_tags_finder
|
54
55
|
.call(collection.externalIdentifier)
|
55
|
-
.select { |tag| tag.what == '
|
56
|
+
.select { |tag| tag.what == 'collection' }
|
56
57
|
.group_by(&:to).map do |project, releases_for_project|
|
57
58
|
result[project] = releases_for_project.max_by(&:date)
|
58
59
|
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
|
data/lib/dor_indexing/version.rb
CHANGED
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.
|
4
|
+
version: 2.1.2
|
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-
|
11
|
+
date: 2024-04-04 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.
|
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.
|