cocina-models 0.107.0 → 0.107.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: 5274bff6327cebe2e04f7cc145fde055203131ae9885b4f654ff83dbbbe57408
4
- data.tar.gz: 2cf28892860fdf3eb011a54aaaf4f6a25663f85cf66b8a1b15280b4165fe52f3
3
+ metadata.gz: 3e982057b0f0017c03ce8809fa93494bd179b28a90e6ad3f32ad6859c4a8249c
4
+ data.tar.gz: 4777322f4d9b18fa6d814b36974dbbbd9e79857a4ce5149a756ae737e82ca49c
5
5
  SHA512:
6
- metadata.gz: 46b42f34df5bf8aba16f2d47110f8d81ae5f1be62b0b5aeda6fba9898b911540788a6f9ff23318cc7e0870a6c57a8dc95a14b50ced333628ef6f703fd842872f
7
- data.tar.gz: a769621283a3433cebb98fff0e3a872f21016050e38770932af0aafc1634993631d31e50bddc58cc0720c6002fcaa9ae48fac840aa6042f39d55a745c6a7ec0b
6
+ metadata.gz: c0c1136149b28c85dfa4c7a5e1aab4ee6829beecb2a04367db82a85f31a4a84aca774a3243fdbbfac34db1dca4d6f7624eaf399548db69a281c0e7059136d67a
7
+ data.tar.gz: 0ba5d2b587e122a0ab1cd363fcc5c32e0fc3a3a26ae35621967bcb8e0eead73bc87d86f263520be8b6d831ca528f2e7e0a85138f545e31ff8381d90bd826971c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.107.0)
4
+ cocina-models (0.107.1)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
@@ -36,7 +36,7 @@ GEM
36
36
  attr_extras (7.1.0)
37
37
  base64 (0.3.0)
38
38
  benchmark (0.4.1)
39
- bigdecimal (3.2.3)
39
+ bigdecimal (3.3.1)
40
40
  byebug (12.0.0)
41
41
  committee (5.0.0)
42
42
  json_schema (~> 0.14, >= 0.14.3)
@@ -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.15.0)
81
+ json (2.15.1)
82
82
  json_schema (0.21.0)
83
83
  jsonpath (1.1.5)
84
84
  multi_json
@@ -86,7 +86,7 @@ GEM
86
86
  lint_roller (1.1.0)
87
87
  logger (1.7.0)
88
88
  mini_portile2 (2.8.9)
89
- minitest (5.25.5)
89
+ minitest (5.26.0)
90
90
  multi_json (1.17.0)
91
91
  nokogiri (1.18.10)
92
92
  mini_portile2 (~> 2.8.2)
@@ -99,9 +99,9 @@ GEM
99
99
  racc
100
100
  patience_diff (1.2.0)
101
101
  optimist (~> 3.0)
102
- prism (1.5.1)
102
+ prism (1.6.0)
103
103
  racc (1.8.1)
104
- rack (3.2.1)
104
+ rack (3.2.3)
105
105
  rainbow (3.1.1)
106
106
  rake (13.3.0)
107
107
  regexp_parser (2.11.3)
@@ -109,12 +109,12 @@ GEM
109
109
  rspec-core (~> 3.13.0)
110
110
  rspec-expectations (~> 3.13.0)
111
111
  rspec-mocks (~> 3.13.0)
112
- rspec-core (3.13.5)
112
+ rspec-core (3.13.6)
113
113
  rspec-support (~> 3.13.0)
114
114
  rspec-expectations (3.13.5)
115
115
  diff-lcs (>= 1.2.0, < 2.0)
116
116
  rspec-support (~> 3.13.0)
117
- rspec-mocks (3.13.5)
117
+ rspec-mocks (3.13.6)
118
118
  diff-lcs (>= 1.2.0, < 2.0)
119
119
  rspec-support (~> 3.13.0)
120
120
  rspec-support (3.13.6)
@@ -158,7 +158,7 @@ GEM
158
158
  unicode-display_width (3.2.0)
159
159
  unicode-emoji (~> 4.1)
160
160
  unicode-emoji (4.1.0)
161
- uri (1.0.3)
161
+ uri (1.0.4)
162
162
  zeitwerk (2.7.3)
163
163
 
164
164
  PLATFORMS
data/README.md CHANGED
@@ -91,32 +91,8 @@ RAILS_ENV=production bin/validate-cocina -p 8
91
91
 
92
92
  ## Running Reports in DSA
93
93
 
94
- Custom reports stored in dor-services-app can be run similarly to validation testing described above.
95
-
96
- 1. Connect to the `sdr-infra` box:
97
- ```shell
98
- ssh sdr-infra
99
- ```
100
- 1. Start a shell as the `deploy` user:
101
- ```shell
102
- # you may or may not need to supply the `-n SUNETID` argument
103
- ksu deploy
104
- ```
105
- 1. Go to the `~/dor-services-app` directory and reset to main if needed (verify nobody else is using this first though):
106
- ```shell
107
- cd ~/dor-services-app
108
- git status # see if there are any unsaved changes, if so, you may need to git stash them
109
- git pull # OR git reset --hard main to just ditch any local unsaved changes
110
- ```
111
- 1. Connect to the desired database by setting the environment variables as described in the section above. This must be done each time you SSH back into the box to run a new report.
112
- 1. Run the report (good idea to do it in a screen or via background process in case you get disconnected):
113
- ```shell
114
- bundle exec bin/rails r -e production "BadIso8601Dates.report" > BadIso8601Dates.csv
115
- ```
116
- 1. When done, you can pull the report to your laptop as needed:
117
- ```shell
118
- scp sdr-infra:/opt/app/deploy/dor-services-app/BadIso8601Dates.csv .
119
- ```
94
+ See https://github.com/sul-dlss/dor-services-app/blob/main/README.md#running-reports
95
+
120
96
 
121
97
  ## Releasing a patch change
122
98
  A patch change is a change that (1) does not affect the data model; (2) does not alter the openapi.yml; and more broadly (3) does not matter if some applications have the change and others do not.
@@ -143,7 +119,7 @@ Send a note to `#dlss-infra-chg-mgmt` on Slack to let people know what is changi
143
119
  The release process is much like any other gem. While on main:
144
120
  1. Bump the version in `lib/cocina/models/version.rb`
145
121
  2. `bundle install` so that `Gemfile.lock` is updated.
146
- 3. Commit those changes.
122
+ 3. Commit those changes.
147
123
  4. Run:
148
124
  ```
149
125
  bundle exec rake release
@@ -179,11 +155,11 @@ Copy and paste the cocina-models schemas to each project's `openapi.yml`. By con
179
155
  If you updated the `openapi.yml` in step 3A, use the same PR for step 3B. Why? When [dor-services-app](https://github.com/sul-dlss/dor-services-app), for example, is updated to use the new models (via the auto-update script), these clients should be updated at the same time or there is risk of models produced by dor-services-app not being acceptable to the clients.
180
156
 
181
157
  1. Perform `bundle update --conservative cocina-models dor-services-client` in the services above and make PRs for those repos if they don't already exist. You may first need to update how these gems are pinned in the `Gemfile` in order to bump them.
182
- 2. Note that sdr-client is not currently used in these applications, but if it were, would also need to be bumped to the latest release.
158
+ 2. Note that sdr-client is not currently used in these applications, but if it were, would also need to be bumped to the latest release.
183
159
 
184
160
  #### Step 3C: Merge 'em
185
161
 
186
- Get the directly coupled services PRs merged before the deploy in step 5.
162
+ Get the directly coupled services PRs merged before the deploy in step 5.
187
163
 
188
164
  See the IMPORTANT note above about the timing of merging these PRs if you are waiting for dependency updates to make the updates to other dependent applications.
189
165
 
@@ -211,7 +187,7 @@ Create a branch and update cocina-models:
211
187
  ```
212
188
  bundle update --conservative cocina-models
213
189
  ```
214
- Once merged, it will deploy to stage via CD.
190
+ Once merged, it will deploy to stage via CD.
215
191
 
216
192
  ### Step 5: Deploy and test
217
193
 
@@ -228,7 +204,7 @@ It is safest to ensure _all_ the integration tests run cleanly. However, patch
228
204
 
229
205
  **[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.
230
206
 
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.
207
+ 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
208
 
233
209
  ## Usage conventions
234
210
 
@@ -99,6 +99,8 @@ contributor.note:
99
99
  description: Institution with which the contributor is associated.
100
100
  - value: citation status
101
101
  description: Indicator of whether the contributor should be included in the citation.
102
+ - value: contact email
103
+ description: Preferred email contact for contributor.
102
104
  - value: description
103
105
  description: Biographical information about the contributor.
104
106
  event:
@@ -106,6 +106,8 @@ _Path: contributor.note.type_
106
106
  * Institution with which the contributor is associated.
107
107
  * citation status
108
108
  * Indicator of whether the contributor should be included in the citation.
109
+ * contact email
110
+ * Preferred email contact for contributor.
109
111
  * description
110
112
  * Biographical information about the contributor.
111
113
  # Event types
@@ -97,7 +97,7 @@ module Cocina
97
97
  if parallel_name_values.size == 1
98
98
  contrib_name_value_slice = Cocina::Models::Builders::NameTitleGroupBuilder.value_slices(parallel_name_values.first)
99
99
  name_title_group = name_title_vals_index[contrib_name_value_slice]&.values&.first
100
- write_name_from_parallel(contributor, contributor.name.first, parallel_name_values, name_title_group, nil)
100
+ write_name_from_parallel(contributor, contributor.name.first, parallel_name_values.first, name_title_group, nil)
101
101
  elsif parallel_name_values.size == 2 && display_type_parallel_name
102
102
  contrib_name_value_slice = Cocina::Models::Builders::NameTitleGroupBuilder.value_slices(parallel_name_values.first)
103
103
  name_title_group = name_title_vals_index[contrib_name_value_slice]&.values&.first
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.107.0'
5
+ VERSION = '0.107.1'
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.107.0
4
+ version: 0.107.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 2025-10-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -535,7 +535,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
535
535
  - !ruby/object:Gem::Version
536
536
  version: '0'
537
537
  requirements: []
538
- rubygems_version: 3.7.0
538
+ rubygems_version: 3.6.2
539
539
  specification_version: 4
540
540
  summary: Data models for the SDR
541
541
  test_files: []