cocina-models 0.82.0 → 0.83.0

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: ebc24ff8dbe8eb1fe740eb977abb73abc504409aa510905395e6660adcd05b3b
4
- data.tar.gz: 62ad4e7cafce859250323e92cc2173257957b16775e767224a4de2e9fd639bae
3
+ metadata.gz: eed81e24ae6c7f8a21f7dd55ac24df69a599dd69b4aae3de0e726962fdcd9318
4
+ data.tar.gz: a522660cd996da1a703f921940364ffd1690dea8c068dbdb0378f54da35a4597
5
5
  SHA512:
6
- metadata.gz: 7a3b0ed8ab383f945450d42343dbaed6e709854ff0f3deca1f62b93c79883d3157b42f14cdaafd9392ef858620a0c58ae6867c16037c627499efddf3cb33880b
7
- data.tar.gz: 9e1084ea73c6f547eab7b8a076d9e2a61a46361c9da1541effca8529d48d032621b6cd5868bd2886308aea1f834b4c586ae1058ca6f67f0315393e4eb632bbb9
6
+ metadata.gz: 17070357c2d42eee762d4234a8ad3233b1384442f077b7e45bd0039a905c9f9bf7e9db1a322003c7fa5bfc4a0135194fa05451524233f9ea070f28de2eba063c
7
+ data.tar.gz: 637b4bb37a7557abf2591dfaf348d758d89038075292cf0e7135d9fc49042e469b6ce533ea0b63c7428d4bebc60dba91807b97af3c9919b6fb378cad50ee77df
data/.gitignore CHANGED
@@ -9,5 +9,3 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
-
13
- Gemfile.lock
data/.rubocop.yml CHANGED
@@ -184,7 +184,7 @@ Style/SoleNestedConditional: # (new in 0.89)
184
184
  Style/StringConcatenation:
185
185
  Enabled: true
186
186
 
187
- Gemspec/DateAssignment: # new in 1.10
187
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.10
188
188
  Enabled: true
189
189
  Gemspec/RequireMFA: # new in 1.23
190
190
  Enabled: true
data/Gemfile.lock ADDED
@@ -0,0 +1,162 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cocina-models (0.83.0)
5
+ activesupport
6
+ deprecation
7
+ dry-struct (~> 1.0)
8
+ dry-types (~> 1.1)
9
+ edtf
10
+ equivalent-xml
11
+ jsonpath
12
+ nokogiri
13
+ openapi3_parser
14
+ openapi_parser (>= 0.11.1, < 1.0)
15
+ rss
16
+ super_diff
17
+ thor
18
+ zeitwerk (~> 2.1)
19
+
20
+ GEM
21
+ remote: https://rubygems.org/
22
+ specs:
23
+ activesupport (7.0.3)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ ast (2.4.2)
29
+ attr_extras (6.2.5)
30
+ byebug (11.1.3)
31
+ committee (4.4.0)
32
+ json_schema (~> 0.14, >= 0.14.3)
33
+ openapi_parser (>= 0.11.1, < 1.0)
34
+ rack (>= 1.5)
35
+ commonmarker (0.23.5)
36
+ concurrent-ruby (1.1.10)
37
+ deprecation (1.1.0)
38
+ activesupport
39
+ diff-lcs (1.5.0)
40
+ docile (1.4.0)
41
+ dry-configurable (0.15.0)
42
+ concurrent-ruby (~> 1.0)
43
+ dry-core (~> 0.6)
44
+ dry-container (0.9.0)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-configurable (~> 0.13, >= 0.13.0)
47
+ dry-core (0.7.1)
48
+ concurrent-ruby (~> 1.0)
49
+ dry-inflector (0.2.1)
50
+ dry-logic (1.2.0)
51
+ concurrent-ruby (~> 1.0)
52
+ dry-core (~> 0.5, >= 0.5)
53
+ dry-struct (1.4.0)
54
+ dry-core (~> 0.5, >= 0.5)
55
+ dry-types (~> 1.5)
56
+ ice_nine (~> 0.11)
57
+ dry-types (1.5.1)
58
+ concurrent-ruby (~> 1.0)
59
+ dry-container (~> 0.3)
60
+ dry-core (~> 0.5, >= 0.5)
61
+ dry-inflector (~> 0.1, >= 0.1.2)
62
+ dry-logic (~> 1.0, >= 1.0.2)
63
+ edtf (3.0.8)
64
+ activesupport (>= 3.0, < 8.0)
65
+ equivalent-xml (0.6.0)
66
+ nokogiri (>= 1.4.3)
67
+ i18n (1.10.0)
68
+ concurrent-ruby (~> 1.0)
69
+ ice_nine (0.11.2)
70
+ json (2.6.2)
71
+ json_schema (0.21.0)
72
+ jsonpath (1.1.2)
73
+ multi_json
74
+ mini_portile2 (2.8.0)
75
+ minitest (5.16.2)
76
+ multi_json (1.15.0)
77
+ nokogiri (1.13.6)
78
+ mini_portile2 (~> 2.8.0)
79
+ racc (~> 1.4)
80
+ openapi3_parser (0.9.2)
81
+ commonmarker (~> 0.17)
82
+ openapi_parser (0.15.0)
83
+ optimist (3.0.1)
84
+ parallel (1.22.1)
85
+ parser (3.1.2.0)
86
+ ast (~> 2.4.1)
87
+ patience_diff (1.2.0)
88
+ optimist (~> 3.0)
89
+ racc (1.6.0)
90
+ rack (2.2.4)
91
+ rainbow (3.1.1)
92
+ rake (13.0.6)
93
+ regexp_parser (2.5.0)
94
+ rexml (3.2.5)
95
+ rspec (3.11.0)
96
+ rspec-core (~> 3.11.0)
97
+ rspec-expectations (~> 3.11.0)
98
+ rspec-mocks (~> 3.11.0)
99
+ rspec-core (3.11.0)
100
+ rspec-support (~> 3.11.0)
101
+ rspec-expectations (3.11.0)
102
+ diff-lcs (>= 1.2.0, < 2.0)
103
+ rspec-support (~> 3.11.0)
104
+ rspec-mocks (3.11.1)
105
+ diff-lcs (>= 1.2.0, < 2.0)
106
+ rspec-support (~> 3.11.0)
107
+ rspec-support (3.11.0)
108
+ rspec_junit_formatter (0.5.1)
109
+ rspec-core (>= 2, < 4, != 2.12.0)
110
+ rss (0.2.9)
111
+ rexml
112
+ rubocop (1.31.1)
113
+ json (~> 2.3)
114
+ parallel (~> 1.10)
115
+ parser (>= 3.1.0.0)
116
+ rainbow (>= 2.2.2, < 4.0)
117
+ regexp_parser (>= 1.8, < 3.0)
118
+ rexml (>= 3.2.5, < 4.0)
119
+ rubocop-ast (>= 1.18.0, < 2.0)
120
+ ruby-progressbar (~> 1.7)
121
+ unicode-display_width (>= 1.4.0, < 3.0)
122
+ rubocop-ast (1.18.0)
123
+ parser (>= 3.1.1.0)
124
+ rubocop-rake (0.6.0)
125
+ rubocop (~> 1.0)
126
+ rubocop-rspec (2.12.1)
127
+ rubocop (~> 1.31)
128
+ ruby-progressbar (1.11.0)
129
+ simplecov (0.21.2)
130
+ docile (~> 1.1)
131
+ simplecov-html (~> 0.11)
132
+ simplecov_json_formatter (~> 0.1)
133
+ simplecov-html (0.12.3)
134
+ simplecov_json_formatter (0.1.4)
135
+ super_diff (0.9.0)
136
+ attr_extras (>= 6.2.4)
137
+ diff-lcs
138
+ patience_diff
139
+ thor (1.2.1)
140
+ tzinfo (2.0.4)
141
+ concurrent-ruby (~> 1.0)
142
+ unicode-display_width (2.2.0)
143
+ zeitwerk (2.6.0)
144
+
145
+ PLATFORMS
146
+ ruby
147
+
148
+ DEPENDENCIES
149
+ bundler (~> 2.0)
150
+ byebug
151
+ cocina-models!
152
+ committee
153
+ rake (~> 13.0)
154
+ rspec (~> 3.0)
155
+ rspec_junit_formatter
156
+ rubocop (~> 1.24)
157
+ rubocop-rake
158
+ rubocop-rspec (~> 2.1)
159
+ simplecov
160
+
161
+ BUNDLED WITH
162
+ 2.3.17
data/README.md CHANGED
@@ -124,18 +124,9 @@ At the same, we have found it convenient to use these PRs to also bump the versi
124
124
 
125
125
  ### Step 4: Update other dependent applications
126
126
 
127
- Once the above listed steps have been completed, all the following applications that use cocina-models should be updated and released at the same time. "Cocina Level 2" describes this set of updates.
128
-
129
- * [sul-dlss/argo](https://github.com/sul-dlss/argo/)
130
- * [sul-dlss/common-accessioning](https://github.com/sul-dlss/common-accessioning/)
131
- * [sul-dlss/dor_indexing_app](https://github.com/sul-dlss/dor_indexing_app/)
132
- * [sul-dlss/google-books](https://github.com/sul-dlss/google-books/)
133
- * [sul-dlss/happy-heron](https://github.com/sul-dlss/happy-heron/)
134
- * [sul-dlss/hydra_etd](https://github.com/sul-dlss/hydra_etd/)
135
- * [sul-dlss/infrastructure-integration-test](https://github.com/sul-dlss/infrastructure-integration-test/)
136
- * [sul-dlss/pre-assembly](https://github.com/sul-dlss/pre-assembly/)
137
-
138
- There are scripts to help with this:
127
+ Once the above listed steps have been completed, all applications that use cocina-models should be updated and released at the same time. "Cocina Level 2" describes this set of updates. The applications that use cocina-models are those in [this list](https://github.com/sul-dlss/access-update-scripts/blob/master/infrastructure/projects.yml) that are NOT marked with `cocina_level2: false`.
128
+
129
+ There are scripts to help with updating other dependent applications:
139
130
 
140
131
  #### Step 4A: Create the PRs
141
132
 
@@ -70,12 +70,10 @@ module Cocina
70
70
  end
71
71
 
72
72
  def extract_type(geo)
73
- type = geo[:form].find do |form|
74
- form[:type].match(TYPE_REGEX) || (form[:type].match(MEDIA_REGEX) && form[:value] == 'Image')
73
+ type = geo.form.find do |form|
74
+ form.type.match?(TYPE_REGEX) || (form.type.match?(MEDIA_REGEX) && form.value == 'Image')
75
75
  end
76
- return type[:value] if type
77
-
78
- nil
76
+ type&.value
79
77
  end
80
78
 
81
79
  def about(druid)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.82.0'
5
+ VERSION = '0.83.0'
6
6
  end
7
7
  end
data/openapi.yml CHANGED
@@ -390,7 +390,7 @@ components:
390
390
  - catalogRecordId
391
391
  - refresh
392
392
  CatkeyBarcode:
393
- description: The barcode associated with a DRO object based on catkey, prefixed with 36105
393
+ description: The barcode associated with a DRO object based on catkey, prefixed with a catkey followed by a hyphen
394
394
  type: string
395
395
  pattern: '^[0-9]+-[0-9]+$'
396
396
  example: '6772719-1001'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.0
4
+ version: 0.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-17 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -339,6 +339,7 @@ files:
339
339
  - ".rubocop.yml"
340
340
  - ".rubocop_todo.yml"
341
341
  - Gemfile
342
+ - Gemfile.lock
342
343
  - README.md
343
344
  - Rakefile
344
345
  - bin/console