cocina-models 0.105.1 → 0.106.0

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: ad8e6d358007df9521cf0ab6a99a577fa4b8e41995ee46f9dff8429befd2253f
4
- data.tar.gz: b4c9c7960929205624f78374dd5a373f5335cd98b9564f496d64e4d6128dd66a
3
+ metadata.gz: e344b96eb11f904d0730963727606fed5046857f72901761c7e75a1101992086
4
+ data.tar.gz: 1d446ff09f267b94684b57afeada1be9f393fd99874ed360c5c67f6e2d35051c
5
5
  SHA512:
6
- metadata.gz: 9ec11637cd4d26ad3f36a3d99dd7a2e66906a5ad842bc84500dc555c3843a523db54d4d0adc43714f4baa758ae0c8356b2d75c94e35e45d3364d120629c4f712
7
- data.tar.gz: f342a814ef8115bfc814648de1330844f2db627e2bb643152f21859b76dc0f796d2ebe295788ca36a83a43f92b4785848a5eb1bc453ea798a2ab05619ee21832
6
+ metadata.gz: 3941a79c6c26af81128ed0face784ce398c5b343970c5511d5da8cf8aad9dde10d1ea6fe19dad6122e6d460b2a53c3f1bcd9ca800dfbb2885e98d9d37a4e588f
7
+ data.tar.gz: 4df7a5daf531751de3e26bb168f498a0b07042e039ea6797ee0f42e18893b74a464f72fc7ced0e6625818964f2e67d159bfa133878aa83f4c1410b6e67b0a076
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.105.1)
4
+ cocina-models (0.106.0)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
@@ -19,7 +19,7 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- activesupport (8.0.2)
22
+ activesupport (8.0.2.1)
23
23
  base64
24
24
  benchmark (>= 0.3)
25
25
  bigdecimal
@@ -36,14 +36,14 @@ GEM
36
36
  attr_extras (7.1.0)
37
37
  base64 (0.3.0)
38
38
  benchmark (0.4.1)
39
- bigdecimal (3.2.2)
39
+ bigdecimal (3.2.3)
40
40
  byebug (12.0.0)
41
41
  committee (5.0.0)
42
42
  json_schema (~> 0.14, >= 0.14.3)
43
43
  openapi_parser (~> 1.0)
44
44
  rack (>= 1.5)
45
45
  concurrent-ruby (1.3.5)
46
- connection_pool (2.5.3)
46
+ connection_pool (2.5.4)
47
47
  deprecation (1.1.0)
48
48
  activesupport
49
49
  diff-lcs (1.6.2)
@@ -88,7 +88,7 @@ GEM
88
88
  mini_portile2 (2.8.9)
89
89
  minitest (5.25.5)
90
90
  multi_json (1.17.0)
91
- nokogiri (1.18.9)
91
+ nokogiri (1.18.10)
92
92
  mini_portile2 (~> 2.8.2)
93
93
  racc (~> 1.4)
94
94
  openapi_parser (1.0.0)
@@ -99,12 +99,12 @@ GEM
99
99
  racc
100
100
  patience_diff (1.2.0)
101
101
  optimist (~> 3.0)
102
- prism (1.4.0)
102
+ prism (1.5.1)
103
103
  racc (1.8.1)
104
- rack (3.2.0)
104
+ rack (3.2.1)
105
105
  rainbow (3.1.1)
106
106
  rake (13.3.0)
107
- regexp_parser (2.11.1)
107
+ regexp_parser (2.11.3)
108
108
  rspec (3.13.1)
109
109
  rspec-core (~> 3.13.0)
110
110
  rspec-expectations (~> 3.13.0)
@@ -117,10 +117,10 @@ GEM
117
117
  rspec-mocks (3.13.5)
118
118
  diff-lcs (>= 1.2.0, < 2.0)
119
119
  rspec-support (~> 3.13.0)
120
- rspec-support (3.13.4)
120
+ rspec-support (3.13.5)
121
121
  rspec_junit_formatter (0.6.0)
122
122
  rspec-core (>= 2, < 4, != 2.12.0)
123
- rubocop (1.79.2)
123
+ rubocop (1.80.2)
124
124
  json (~> 2.3)
125
125
  language_server-protocol (~> 3.17.0.2)
126
126
  lint_roller (~> 1.1.0)
@@ -137,7 +137,7 @@ GEM
137
137
  rubocop-rake (0.7.1)
138
138
  lint_roller (~> 1.1)
139
139
  rubocop (>= 1.72.1)
140
- rubocop-rspec (3.6.0)
140
+ rubocop-rspec (3.7.0)
141
141
  lint_roller (~> 1.1)
142
142
  rubocop (~> 1.72, >= 1.72.1)
143
143
  ruby-progressbar (1.13.0)
@@ -155,9 +155,9 @@ GEM
155
155
  thor (1.4.0)
156
156
  tzinfo (2.0.6)
157
157
  concurrent-ruby (~> 1.0)
158
- unicode-display_width (3.1.4)
159
- unicode-emoji (~> 4.0, >= 4.0.4)
160
- unicode-emoji (4.0.4)
158
+ unicode-display_width (3.2.0)
159
+ unicode-emoji (~> 4.1)
160
+ unicode-emoji (4.1.0)
161
161
  uri (1.0.3)
162
162
  zeitwerk (2.7.3)
163
163
 
@@ -178,4 +178,4 @@ DEPENDENCIES
178
178
  simplecov
179
179
 
180
180
  BUNDLED WITH
181
- 2.7.1
181
+ 2.7.2
@@ -68,6 +68,8 @@ contributor.name:
68
68
  description: Name used that differs from legal or primary form of name.
69
69
  - value: surname
70
70
  description: Last or family name or names.
71
+ - value: translation
72
+ description: Latinized or other translated version of the name not following a formal transliteration scheme.
71
73
  - value: transliteration
72
74
  description: Name originally in non-Latin script presented phonetically using Latin characters.
73
75
  contributor.name.structuredValue:
@@ -102,6 +104,8 @@ contributor.note:
102
104
  event:
103
105
  - value: acquisition
104
106
  description: The transferral of ownership of a resource to a repository.
107
+ - value: broadcast
108
+ description: Live transmission of the resource to a wide audience.
105
109
  - value: capture
106
110
  description: A record of the resource in a fixed form at a specific time.
107
111
  - value: collection
@@ -154,6 +158,8 @@ event.date:
154
158
  status: deprecated
155
159
  - value: acquisition
156
160
  description: The transferral of ownership of a resource to a repository.
161
+ - value: broadcast
162
+ description: Live transmission of the resource to a wide audience.
157
163
  - value: capture
158
164
  description: A record of the resource in a fixed form at a specific time.
159
165
  - value: collection
@@ -72,6 +72,8 @@ _Path: contributor.name.type_
72
72
  * Name used that differs from legal or primary form of name.
73
73
  * surname
74
74
  * Last or family name or names.
75
+ * translation
76
+ * Latinized or other translated version of the name not following a formal transliteration scheme.
75
77
  * transliteration
76
78
  * Name originally in non-Latin script presented phonetically using Latin characters.
77
79
  ### Contributor name part types for structured value
@@ -110,6 +112,8 @@ _Path: contributor.note.type_
110
112
  _Path: event.type_
111
113
  * acquisition
112
114
  * The transferral of ownership of a resource to a repository.
115
+ * broadcast
116
+ * Live transmission of the resource to a wide audience.
113
117
  * capture
114
118
  * A record of the resource in a fixed form at a specific time.
115
119
  * collection
@@ -163,6 +167,8 @@ _Path: event.date.type_
163
167
  * Deprecated.
164
168
  * acquisition
165
169
  * The transferral of ownership of a resource to a repository.
170
+ * broadcast
171
+ * Live transmission of the resource to a wide audience.
166
172
  * capture
167
173
  * A record of the resource in a fixed form at a specific time.
168
174
  * 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',
@@ -64,6 +64,8 @@ module Cocina
64
64
  end
65
65
 
66
66
  def valid_edtf?(value)
67
+ return false if value == 'XXXX' # Not permitted by the spec, but allowed in the gem. https://github.com/inukshuk/edtf-ruby/issues/41
68
+
67
69
  Date.edtf!(value)
68
70
  true
69
71
  rescue StandardError
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.105.1'
5
+ VERSION = '0.106.0'
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.1
4
+ version: 0.106.0
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-09-19 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: []