dor_indexing 1.2.1 → 1.3.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: c31e983b699f6064d4662b48a5d9f0b7f36a83b050ff451147017d78dc5fedb4
4
- data.tar.gz: 5ab52d4782ef1073218ee6e34007a11f4dcea877ca118695623dcb1379e7236c
3
+ metadata.gz: 83583cc273179a722bf069396bfab8ee5e67da1cc3562c1e2de31b0c987c6bda
4
+ data.tar.gz: f823aa9a76740bf9b2ea785aaab80aa69958e16b8b7ad27b92869996de188066
5
5
  SHA512:
6
- metadata.gz: 1a85020056ebd55920cd84563c6194afa592cda2fda02d73d460c0c988a286013e8f4a159e7f69a25863b63b9be089387bf9637c150eaf00703a90ba925c34e8
7
- data.tar.gz: 00252b4b17aefd3d3bff766713c0f167d5aecdf8444b702d44db0f73fc0d27cb7360801008e93720a7cd11e3559477e7d2e5b64ce1a65649e4eacc97aaed705e
6
+ metadata.gz: 047fb2b8f9050f083201622629419c82a203cb65867f8f1fce35026b50ceaebbe341ab5d2182c0e89e74f43a671ba42a00080e0aab2906d7c4a8f6477e7ebe60
7
+ data.tar.gz: 2c908c0b6f3d4c1f4380f4e34a502eaa7508aa0037954cd32863982fe33892e9759d8db7f6e3b06ac70c4acedb3c5be728b3defd265e7242cf8566a9e75add86
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor_indexing (1.2.1)
5
- cocina-models (~> 0.94.2)
4
+ dor_indexing (1.3.1)
5
+ cocina-models (~> 0.95.0)
6
6
  dor-workflow-client (~> 7.0)
7
7
  honeybadger
8
8
  marc-vocab (~> 0.3.0)
@@ -28,7 +28,7 @@ GEM
28
28
  base64 (0.2.0)
29
29
  bigdecimal (3.1.6)
30
30
  byebug (11.1.3)
31
- cocina-models (0.94.2)
31
+ cocina-models (0.95.0)
32
32
  activesupport
33
33
  deprecation
34
34
  dry-struct (~> 1.0)
@@ -147,7 +147,7 @@ GEM
147
147
  rspec-support (3.12.1)
148
148
  rss (0.3.0)
149
149
  rexml
150
- rubocop (1.60.1)
150
+ rubocop (1.60.2)
151
151
  json (~> 2.3)
152
152
  language_server-protocol (>= 3.17.0)
153
153
  parallel (~> 1.10)
data/dor_indexing.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_dependency 'cocina-models', '~> 0.94.2'
34
+ spec.add_dependency 'cocina-models', '~> 0.95.0'
35
35
  spec.add_dependency 'dor-workflow-client', '~> 7.0'
36
36
  spec.add_dependency 'honeybadger'
37
37
  spec.add_dependency 'marc-vocab', '~> 0.3.0'
@@ -6,7 +6,7 @@ class DorIndexing
6
6
  class DocumentBuilder
7
7
  ADMIN_POLICY_INDEXER = DorIndexing::Indexers::CompositeIndexer.new(
8
8
  DorIndexing::Indexers::AdministrativeTagIndexer,
9
- DorIndexing::Indexers::DataIndexer,
9
+ DorIndexing::Indexers::BasicIndexer,
10
10
  DorIndexing::Indexers::RoleMetadataIndexer,
11
11
  DorIndexing::Indexers::DefaultObjectRightsIndexer,
12
12
  DorIndexing::Indexers::IdentityMetadataIndexer,
@@ -17,7 +17,7 @@ class DorIndexing
17
17
 
18
18
  COLLECTION_INDEXER = DorIndexing::Indexers::CompositeIndexer.new(
19
19
  DorIndexing::Indexers::AdministrativeTagIndexer,
20
- DorIndexing::Indexers::DataIndexer,
20
+ DorIndexing::Indexers::BasicIndexer,
21
21
  DorIndexing::Indexers::RightsMetadataIndexer,
22
22
  DorIndexing::Indexers::IdentityMetadataIndexer,
23
23
  DorIndexing::Indexers::DescriptiveMetadataIndexer,
@@ -28,7 +28,7 @@ class DorIndexing
28
28
 
29
29
  ITEM_INDEXER = DorIndexing::Indexers::CompositeIndexer.new(
30
30
  DorIndexing::Indexers::AdministrativeTagIndexer,
31
- DorIndexing::Indexers::DataIndexer,
31
+ DorIndexing::Indexers::BasicIndexer,
32
32
  DorIndexing::Indexers::RightsMetadataIndexer,
33
33
  DorIndexing::Indexers::IdentityMetadataIndexer,
34
34
  DorIndexing::Indexers::DescriptiveMetadataIndexer,
@@ -2,7 +2,8 @@
2
2
 
3
3
  class DorIndexing
4
4
  module Builders
5
- # Builds the author fields for a solr document
5
+ # class methods return the name values to go in Solr document fields
6
+ # used for both contributors and for topics
6
7
  class NameBuilder
7
8
  # @param [Symbol] strategy ":first" is the strategy for how to choose a name if primary and display name is not found
8
9
  # @return [Array<String>] names
@@ -2,8 +2,8 @@
2
2
 
3
3
  class DorIndexing
4
4
  module Indexers
5
- # Indexing provided by ActiveFedora
6
- class DataIndexer
5
+ # Basic indexing for all objects
6
+ class BasicIndexer
7
7
  attr_reader :cocina, :workflow_client
8
8
 
9
9
  def initialize(cocina:, workflow_client:, **)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DorIndexing
4
- VERSION = '1.2.1'
4
+ VERSION = '1.3.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: 1.2.1
4
+ version: 1.3.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-01-28 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocina-models
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.94.2
19
+ version: 0.95.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.94.2
26
+ version: 0.95.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dor-workflow-client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -137,10 +137,10 @@ files:
137
137
  - lib/dor_indexing/builders/topic_builder.rb
138
138
  - lib/dor_indexing/cocina_repository.rb
139
139
  - lib/dor_indexing/indexers/administrative_tag_indexer.rb
140
+ - lib/dor_indexing/indexers/basic_indexer.rb
140
141
  - lib/dor_indexing/indexers/collection_title_indexer.rb
141
142
  - lib/dor_indexing/indexers/composite_indexer.rb
142
143
  - lib/dor_indexing/indexers/content_metadata_indexer.rb
143
- - lib/dor_indexing/indexers/data_indexer.rb
144
144
  - lib/dor_indexing/indexers/default_object_rights_indexer.rb
145
145
  - lib/dor_indexing/indexers/descriptive_metadata_indexer.rb
146
146
  - lib/dor_indexing/indexers/embargo_metadata_indexer.rb
@@ -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.4.13
183
+ rubygems_version: 3.4.10
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Library for creating Solr documents for SDR indexing.