cocina-models 0.105.0 → 0.105.2

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: 4212bb17cb4acb8f0c53d3fe1261d92db13e5a85c53126e05f05dc01073124c1
4
- data.tar.gz: e2573a32a29b15ed9ed9dc6f097174cca792777f1c0bfcfba070ea158c8bbacd
3
+ metadata.gz: 6283801eacea27f02ff0df5db24f2f18555b886995feea5770ce1d3f401186eb
4
+ data.tar.gz: 027c89ba0444e1663efb32e03a7e384b60439c3b2f73b8d372402450d117ae42
5
5
  SHA512:
6
- metadata.gz: c7ad0cd6c969cded866c97ece359b5049ee1fbc0a6c0a70dceda3d8a53458370f28019262ffcacf689bf5d66e6598e662b4c2663b66d635ae028745a602c2c98
7
- data.tar.gz: fbfb1bc4b547225702d52bdeed7ac32490ee0348572238ddc69e1d1d92bcd5a5bcf911bf1be360db3c4e918238f0440082da13575cff344f3a9888bd749c04a6
6
+ metadata.gz: 66ec3baf0a6610aec89f663bb208725bc4d5512750405a5a86d216793394a1162b84bdb548c007045395c94b4ba991aa05359b96c939b41eaf30993c1af418db
7
+ data.tar.gz: 04ce19bbb766a4c3c699110edcf11326d87c526705eaa231a08d68adc88a97b79fd3a6dcc27b57f5347bb8b6e733786133985dae22efce8244144bb28ade517a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.105.0)
4
+ cocina-models (0.105.2)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
@@ -78,7 +78,7 @@ GEM
78
78
  i18n (1.14.7)
79
79
  concurrent-ruby (~> 1.0)
80
80
  ice_nine (0.11.2)
81
- json (2.12.2)
81
+ json (2.13.2)
82
82
  json_schema (0.21.0)
83
83
  jsonpath (1.1.5)
84
84
  multi_json
@@ -87,24 +87,24 @@ GEM
87
87
  logger (1.7.0)
88
88
  mini_portile2 (2.8.9)
89
89
  minitest (5.25.5)
90
- multi_json (1.16.0)
91
- nokogiri (1.18.8)
90
+ multi_json (1.17.0)
91
+ nokogiri (1.18.9)
92
92
  mini_portile2 (~> 2.8.2)
93
93
  racc (~> 1.4)
94
94
  openapi_parser (1.0.0)
95
95
  optimist (3.2.1)
96
96
  parallel (1.27.0)
97
- parser (3.3.8.0)
97
+ parser (3.3.9.0)
98
98
  ast (~> 2.4.1)
99
99
  racc
100
100
  patience_diff (1.2.0)
101
101
  optimist (~> 3.0)
102
102
  prism (1.4.0)
103
103
  racc (1.8.1)
104
- rack (3.1.16)
104
+ rack (3.2.0)
105
105
  rainbow (3.1.1)
106
106
  rake (13.3.0)
107
- regexp_parser (2.10.0)
107
+ regexp_parser (2.11.1)
108
108
  rspec (3.13.1)
109
109
  rspec-core (~> 3.13.0)
110
110
  rspec-expectations (~> 3.13.0)
@@ -120,7 +120,7 @@ GEM
120
120
  rspec-support (3.13.4)
121
121
  rspec_junit_formatter (0.6.0)
122
122
  rspec-core (>= 2, < 4, != 2.12.0)
123
- rubocop (1.78.0)
123
+ rubocop (1.79.2)
124
124
  json (~> 2.3)
125
125
  language_server-protocol (~> 3.17.0.2)
126
126
  lint_roller (~> 1.1.0)
@@ -128,10 +128,10 @@ GEM
128
128
  parser (>= 3.3.0.2)
129
129
  rainbow (>= 2.2.2, < 4.0)
130
130
  regexp_parser (>= 2.9.3, < 3.0)
131
- rubocop-ast (>= 1.45.1, < 2.0)
131
+ rubocop-ast (>= 1.46.0, < 2.0)
132
132
  ruby-progressbar (~> 1.7)
133
133
  unicode-display_width (>= 2.4.0, < 4.0)
134
- rubocop-ast (1.45.1)
134
+ rubocop-ast (1.46.0)
135
135
  parser (>= 3.3.7.2)
136
136
  prism (~> 1.4)
137
137
  rubocop-rake (0.7.1)
@@ -146,13 +146,13 @@ GEM
146
146
  docile (~> 1.1)
147
147
  simplecov-html (~> 0.11)
148
148
  simplecov_json_formatter (~> 0.1)
149
- simplecov-html (0.13.1)
149
+ simplecov-html (0.13.2)
150
150
  simplecov_json_formatter (0.1.4)
151
151
  super_diff (0.16.0)
152
152
  attr_extras (>= 6.2.4)
153
153
  diff-lcs
154
154
  patience_diff
155
- thor (1.3.2)
155
+ thor (1.4.0)
156
156
  tzinfo (2.0.6)
157
157
  concurrent-ruby (~> 1.0)
158
158
  unicode-display_width (3.1.4)
@@ -178,4 +178,4 @@ DEPENDENCIES
178
178
  simplecov
179
179
 
180
180
  BUNDLED WITH
181
- 2.6.9
181
+ 2.7.1
data/README.md CHANGED
@@ -205,6 +205,14 @@ If for some reason the above method does not work, the sul-dlss/access-update-sc
205
205
  ```
206
206
  REPOS_PATH=infrastructure GH_ACCESS_TOKEN=abc123 COCINA_LEVEL2= ./merge-all.rb
207
207
  ```
208
+
209
+ ### Step 4C: Update purl-fetcher
210
+ Create a branch and update cocina-models:
211
+ ```
212
+ bundle update --conservative cocina-models
213
+ ```
214
+ Once merged, it will deploy to stage via CD.
215
+
208
216
  ### Step 5: Deploy and test
209
217
 
210
218
  #### Step 5A: Deploy to Stage or QA
@@ -220,6 +228,8 @@ It is safest to ensure _all_ the integration tests run cleanly. However, patch
220
228
 
221
229
  **[Turn off Google Books](https://sul-gbooks-prod.stanford.edu/features) when deploying to production.** This avoids failed deposit due to a temporary Cocina model mismatch. Unlike other applications, the deposits will fail without retry and require manual remediation.
222
230
 
231
+ In addition to deploying infrastructure apps via sdr-deploy, tag and cut a release of purl-fetcher. That will trigger its deploy to production.
232
+
223
233
  ## Usage conventions
224
234
 
225
235
  The following are the recommended naming conventions for code using Cocina models:
@@ -102,6 +102,8 @@ contributor.note:
102
102
  event:
103
103
  - value: acquisition
104
104
  description: The transferral of ownership of a resource to a repository.
105
+ - value: broadcast
106
+ description: Live transmission of the resource to a wide audience.
105
107
  - value: capture
106
108
  description: A record of the resource in a fixed form at a specific time.
107
109
  - value: collection
@@ -154,6 +156,8 @@ event.date:
154
156
  status: deprecated
155
157
  - value: acquisition
156
158
  description: The transferral of ownership of a resource to a repository.
159
+ - value: broadcast
160
+ description: Live transmission of the resource to a wide audience.
157
161
  - value: capture
158
162
  description: A record of the resource in a fixed form at a specific time.
159
163
  - value: collection
@@ -110,6 +110,8 @@ _Path: contributor.note.type_
110
110
  _Path: event.type_
111
111
  * acquisition
112
112
  * The transferral of ownership of a resource to a repository.
113
+ * broadcast
114
+ * Live transmission of the resource to a wide audience.
113
115
  * capture
114
116
  * A record of the resource in a fixed form at a specific time.
115
117
  * collection
@@ -163,6 +165,8 @@ _Path: event.date.type_
163
165
  * Deprecated.
164
166
  * acquisition
165
167
  * The transferral of ownership of a resource to a repository.
168
+ * broadcast
169
+ * Live transmission of the resource to a wide audience.
166
170
  * capture
167
171
  * A record of the resource in a fixed form at a specific time.
168
172
  * collection
@@ -22,6 +22,7 @@ module Cocina
22
22
  # a preferred vocabulary, if you will
23
23
  EVENT_TYPES = [
24
24
  'acquisition',
25
+ 'broadcast',
25
26
  'capture',
26
27
  'collection',
27
28
  'copyright',
@@ -226,7 +226,14 @@ module Cocina
226
226
 
227
227
  def datacite_resource_type
228
228
  self_deposit_types = forms.find do |candidate|
229
- candidate.source.value == 'Stanford self-deposit resource types'
229
+ # Why do we need to verify that `candidate.source` is non-nil
230
+ # here? Before this change, our datacite resource-type handling
231
+ # could safely assume that the descriptive form metadata was
232
+ # constrained to the H2/H3 shape. As of August 2025, we're minting
233
+ # DOIs for ETDs which have their own descriptive form metadata
234
+ # (now including datacite resource types), and this assumption no
235
+ # longer holds. One of the ETD form values includes no source.
236
+ candidate.source&.value == 'Stanford self-deposit resource types'
230
237
  end
231
238
  return unless self_deposit_types
232
239
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.105.0'
5
+ VERSION = '0.105.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.105.0
4
+ version: 0.105.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-18 00:00:00.000000000 Z
10
+ date: 2025-08-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport