dor_indexing 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 108a49c639925b8e1ba4e892d0ed3e4d903f7e741311f480ce85dd1be88d17c0
4
- data.tar.gz: 5483c10c3b7fa972097e6b8f8cc889a6abc8a67e82bc864253ea003b97e6e578
3
+ metadata.gz: 9c1e2280668e9085122b921fd927b75e9982fa5fda9067a9245899ef93db77ae
4
+ data.tar.gz: 3e8d89e77994cb62ffcc1c598e47716c3a9c9f8aa8e37f226159e8fef947082d
5
5
  SHA512:
6
- metadata.gz: d2f7554c2a2d7dc5ab0eebe685b309f88706cef647ee0aeeeded3da2dc252016b7b43b4328303cfcc0da63c6c45d89ae1f883b6e120f982bcabf750c2a90040a
7
- data.tar.gz: 5fdf32e3282b995903bc70892cc0baa9c8db8139668c40fbc92f1aff0ee0e40957c3242f07bffcd5d9512bf748697024c407f1708109f4a2837f638ea49012a3
6
+ metadata.gz: 24e3bf95ad1c541d3b403b2233018ab1da89be80cdcd3fa9acb2793e2b57673c8364202a4a548f8fe1c9ff60444585b5cf2d020968cb5b50614ad80b118d7bae
7
+ data.tar.gz: 6c015737932b1f01819d89f5f91948ab43d09e1537d6bf41ba8df85778c9ed0f18dc85b408a7fdc6ceb48ce6cfc4f7127b74da0c415aac6819d7dd460cf8a4eb
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor_indexing (1.4.0)
4
+ dor_indexing (1.4.1)
5
5
  activesupport
6
- cocina-models (~> 0.95.0)
6
+ cocina-models (~> 0.95.1)
7
7
  dor-workflow-client (~> 7.0)
8
8
  honeybadger
9
9
  marc-vocab (~> 0.3.0)
@@ -13,7 +13,7 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (7.1.3)
16
+ activesupport (7.1.3.2)
17
17
  base64
18
18
  bigdecimal
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -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.95.0)
31
+ cocina-models (0.95.1)
32
32
  activesupport
33
33
  deprecation
34
34
  dry-struct (~> 1.0)
@@ -58,8 +58,7 @@ GEM
58
58
  faraday-retry (~> 2.0)
59
59
  nokogiri (~> 1.6)
60
60
  zeitwerk (~> 2.1)
61
- drb (2.2.0)
62
- ruby2_keywords
61
+ drb (2.2.1)
63
62
  dry-core (1.0.1)
64
63
  concurrent-ruby (~> 1.0)
65
64
  zeitwerk (~> 2.6)
@@ -90,8 +89,8 @@ GEM
90
89
  net-http
91
90
  faraday-retry (2.2.0)
92
91
  faraday (~> 2.0)
93
- honeybadger (5.4.1)
94
- i18n (1.14.1)
92
+ honeybadger (5.6.0)
93
+ i18n (1.14.4)
95
94
  concurrent-ruby (~> 1.0)
96
95
  ice_nine (0.11.2)
97
96
  iso-639 (0.3.6)
@@ -144,10 +143,10 @@ GEM
144
143
  rspec-mocks (3.13.0)
145
144
  diff-lcs (>= 1.2.0, < 2.0)
146
145
  rspec-support (~> 3.13.0)
147
- rspec-support (3.13.0)
146
+ rspec-support (3.13.1)
148
147
  rss (0.3.0)
149
148
  rexml
150
- rubocop (1.60.2)
149
+ rubocop (1.62.0)
151
150
  json (~> 2.3)
152
151
  language_server-protocol (>= 3.17.0)
153
152
  parallel (~> 1.10)
@@ -155,11 +154,11 @@ GEM
155
154
  rainbow (>= 2.2.2, < 4.0)
156
155
  regexp_parser (>= 1.8, < 3.0)
157
156
  rexml (>= 3.2.5, < 4.0)
158
- rubocop-ast (>= 1.30.0, < 2.0)
157
+ rubocop-ast (>= 1.31.1, < 2.0)
159
158
  ruby-progressbar (~> 1.7)
160
159
  unicode-display_width (>= 2.4.0, < 3.0)
161
- rubocop-ast (1.30.0)
162
- parser (>= 3.2.1.0)
160
+ rubocop-ast (1.31.2)
161
+ parser (>= 3.3.0.4)
163
162
  rubocop-capybara (2.20.0)
164
163
  rubocop (~> 1.41)
165
164
  rubocop-factory_bot (2.25.1)
@@ -167,12 +166,11 @@ GEM
167
166
  rubocop-performance (1.20.2)
168
167
  rubocop (>= 1.48.1, < 2.0)
169
168
  rubocop-ast (>= 1.30.0, < 2.0)
170
- rubocop-rspec (2.26.1)
169
+ rubocop-rspec (2.27.1)
171
170
  rubocop (~> 1.40)
172
171
  rubocop-capybara (~> 2.17)
173
172
  rubocop-factory_bot (~> 2.22)
174
173
  ruby-progressbar (1.13.0)
175
- ruby2_keywords (0.0.5)
176
174
  simplecov (0.22.0)
177
175
  docile (~> 1.1)
178
176
  simplecov-html (~> 0.11)
@@ -186,7 +184,7 @@ GEM
186
184
  attr_extras (>= 6.2.4)
187
185
  diff-lcs
188
186
  patience_diff
189
- thor (1.3.0)
187
+ thor (1.3.1)
190
188
  tzinfo (2.0.6)
191
189
  concurrent-ruby (~> 1.0)
192
190
  unicode-display_width (2.5.0)
data/dor_indexing.gemspec CHANGED
@@ -31,11 +31,11 @@ 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 'activesupport' # for blank? method
35
- spec.add_dependency 'cocina-models', '~> 0.95.0'
34
+ spec.add_dependency 'activesupport'
35
+ spec.add_dependency 'cocina-models', '~> 0.95.1'
36
36
  spec.add_dependency 'dor-workflow-client', '~> 7.0'
37
37
  spec.add_dependency 'honeybadger'
38
- spec.add_dependency 'marc-vocab', '~> 0.3.0' # for marcgac and marccountry
38
+ spec.add_dependency 'marc-vocab', '~> 0.3.0'
39
39
  spec.add_dependency 'stanford-mods'
40
40
  spec.add_dependency 'zeitwerk'
41
41
  end
@@ -25,11 +25,9 @@ class DorIndexing
25
25
  'full_title_tenim' => full_title, # for searching; 1 more field type is copyField in solr schema.xml
26
26
  'additional_titles_tenim' => additional_titles, # for searching; 1 more field type is copyField in solr schema.xml
27
27
  'display_title_ss' => display_title, # for display in Argo
28
- 'sw_display_title_tesim' => display_title, # for display in Argo DEPRECATED in favor of display_title_ss
29
28
 
30
29
  # contributor
31
30
  'author_text_nostem_im' => author_primary, # primary author tokenized but not stemmed
32
- 'sw_author_tesim' => author_primary, # DEPRECATED - used for author display in Argo
33
31
  'author_display_ss' => author_primary, # used for author display in Argo
34
32
  'contributor_text_nostem_im' => author_all, # author names should be tokenized but not stemmed
35
33
  'contributor_orcids_ssim' => orcids,
@@ -18,14 +18,13 @@ class DorIndexing
18
18
  @@apo_hash = {} # rubocop:disable Style/ClassVars
19
19
 
20
20
  # @return [Hash] the partial solr document for identifiable concerns
21
- def to_solr # rubocop:disable Metrics/AbcSize
21
+ def to_solr
22
22
  {}.tap do |solr_doc|
23
23
  add_apo_titles(solr_doc, cocina.administrative.hasAdminPolicy)
24
24
 
25
25
  solr_doc['metadata_source_ssim'] = identity_metadata_sources unless cocina.is_a? Cocina::Models::AdminPolicyWithMetadata
26
26
  solr_doc['druid_prefixed_ssi'] = cocina.externalIdentifier
27
27
  solr_doc['druid_bare_ssi'] = cocina.externalIdentifier.delete_prefix('druid:')
28
- solr_doc['objectId_tesim'] = [cocina.externalIdentifier, cocina.externalIdentifier.delete_prefix('druid:')] # DEPRECATED
29
28
  end
30
29
  end
31
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DorIndexing
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.1'
5
5
  end
data/lib/dor_indexing.rb CHANGED
@@ -1,13 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'zeitwerk'
4
- require 'stanford-mods'
5
- require 'cocina/models'
6
- require 'marc/vocab'
7
- require 'honeybadger'
8
4
 
9
5
  Zeitwerk::Loader.for_gem.setup
10
6
 
7
+ # Zeitwerk doesn't auto-load these dependencies
8
+ require 'active_support'
9
+ require 'active_support/core_ext/object/blank'
10
+ require 'active_support/core_ext/enumerable'
11
+ require 'active_support/core_ext/string'
12
+ require 'cocina/models'
13
+ require 'honeybadger'
14
+ require 'marc/vocab'
15
+
11
16
  # Builds solr documents for indexing.
12
17
  class DorIndexing
13
18
  # @return [Hash] the solr document
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.4.0
4
+ version: 1.4.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-02-17 00:00:00.000000000 Z
11
+ date: 2024-03-11 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.0
33
+ version: 0.95.1
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.0
40
+ version: 0.95.1
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.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.