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 +4 -4
- data/Gemfile.lock +7 -4
- data/lib/dor_indexing/indexers/releasable_indexer.rb +2 -2
- 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: c119039d4d2826b59eacba3c0440c1127b602343fa5bc07ed6fc0dd1778d46fd
|
4
|
+
data.tar.gz: b584a09d357163ac73d7dd3c920840287b550c2c4d31852bbfc51327502bf4f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
@@ -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.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
|
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.
|
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.
|