cocina-models 0.43.0 → 0.44.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: 6a7fb04bce15550d80d32758dea67de26bbf3e0e7f0476249d24404deaab6c5b
4
- data.tar.gz: b719c0868f50c0c374d9a2ccec6c6bd7b83099c6cde53b8950f821cfc83eb464
3
+ metadata.gz: b11ea0c5efe76fc9a4a59bc70e4c60e7c25c8a97491259687ae63899c45f5e2e
4
+ data.tar.gz: 2edc2ee62490fbf0c0cf29942cc1820d7bdfbd28e0cddb39db8df1753e6e64b0
5
5
  SHA512:
6
- metadata.gz: be9ec459083968e1321fd24d65420afa5e5c83ce7c445b8752e8873a3e42ed45d351768f9697984b6ba9d9046de1cb103b8489843916659c0297e001daa8bef5
7
- data.tar.gz: 5769465759f52137fb7f0fff10752b099fe5c4dd514895341c720bc6fd6fcdb43cbb4a2e897ae2b822565b916306686c64079116968a5890543f578aad79ff2b
6
+ metadata.gz: 822ff54e876a9c4384dc9f7530a2ab9bd11b86e21cf4e7d426f5975dbf98ac8f387968a45e0ea1afae57a2d5a72283b8af71a8ab0776e45c81f24f9fa26c4160
7
+ data.tar.gz: c88924f5de3c54a11c026864df8713eabf89693f51a3cd789c6e92d6a15618a0ba7ee725d0c742de9480de2f7fee8ece3a5c8b7ffac2e08fe381a53654ced9b0
@@ -1,3 +1,5 @@
1
+ **NOTE: Changes to openapi.yml require updating openapi.yml for sdr-api and dor-services-app and generating models - see README.**
2
+
1
3
  ## Why was this change made?
2
4
 
3
5
 
@@ -7,6 +9,3 @@
7
9
 
8
10
 
9
11
  ## Which documentation and/or configurations were updated?
10
-
11
-
12
-
@@ -7,170 +7,148 @@ require:
7
7
  AllCops:
8
8
  TargetRubyVersion: 2.5
9
9
 
10
+ # ----- Layout ------
11
+
10
12
  Layout/LineLength:
11
13
  Max: 114
12
14
  Exclude:
13
15
  - lib/cocina/models/*
14
16
 
15
- Metrics/BlockLength:
16
- Exclude:
17
- - cocina-models.gemspec
18
- - spec/cocina/**/*
19
-
20
- Metrics/MethodLength:
21
- Max: 14
22
-
23
- RSpec/MultipleExpectations:
24
- Enabled: false
25
-
26
- RSpec/ExampleLength:
27
- Max: 18
28
- Exclude:
29
- - spec/cocina/models/description_spec.rb
30
- - spec/cocina/models/dro_shared_examples.rb
31
-
32
- Style/Documentation:
33
- Exclude:
34
- - lib/cocina/models/*
35
-
17
+ Layout/BeginEndAlignment: # (new in 0.91)
18
+ Enabled: true
36
19
  Layout/EmptyLinesAroundAttributeAccessor:
37
20
  Enabled: true
38
-
39
21
  Layout/SpaceAroundMethodCallOperator:
40
22
  Enabled: true
41
23
 
42
- Lint/DeprecatedOpenSSLConstant:
43
- Enabled: true
24
+ # ----- Lint ------
44
25
 
45
- Lint/MixedRegexpCaptureTypes:
26
+ Lint/BinaryOperatorWithIdenticalOperands:
46
27
  Enabled: true
47
-
48
- Lint/RaiseException:
28
+ Lint/ConstantDefinitionInBlock: # (new in 0.91)
49
29
  Enabled: true
50
-
51
- Lint/StructNewOverride:
30
+ Lint/DeprecatedOpenSSLConstant:
52
31
  Enabled: true
53
-
54
- Style/AccessorGrouping:
32
+ Lint/DuplicateElsifCondition:
55
33
  Enabled: true
56
-
57
- Style/BisectedAttrAccessor:
34
+ Lint/DuplicateRequire: # (new in 0.90)
58
35
  Enabled: true
59
-
60
- Style/ExponentialNotation:
36
+ Lint/DuplicateRescueException:
61
37
  Enabled: true
62
-
63
- Style/HashEachMethods:
38
+ Lint/EmptyConditionalBody:
64
39
  Enabled: true
65
-
66
- Style/HashTransformKeys:
40
+ Lint/EmptyFile: # (new in 0.90)
67
41
  Enabled: true
68
-
69
- Style/HashTransformValues:
42
+ Lint/FloatComparison:
70
43
  Enabled: true
71
-
72
- Style/RedundantAssignment:
44
+ Lint/HashCompareByIdentity: # (new in 0.93)
73
45
  Enabled: true
74
-
75
- Style/RedundantFetchBlock:
46
+ Lint/IdentityComparison: # (new in 0.91)
76
47
  Enabled: true
77
-
78
- Style/RedundantRegexpCharacterClass:
48
+ Lint/MissingSuper:
79
49
  Enabled: true
80
-
81
- Style/RedundantRegexpEscape:
50
+ Lint/MixedRegexpCaptureTypes:
82
51
  Enabled: true
83
-
84
- Style/SlicingWithRange:
52
+ Lint/OutOfRangeRegexpRef:
85
53
  Enabled: true
86
-
87
- Lint/BinaryOperatorWithIdenticalOperands:
54
+ Lint/RaiseException:
88
55
  Enabled: true
89
-
90
- Lint/DuplicateElsifCondition:
56
+ Lint/RedundantSafeNavigation: # (new in 0.93)
91
57
  Enabled: true
92
-
93
- Lint/DuplicateRescueException:
58
+ Lint/SelfAssignment:
94
59
  Enabled: true
95
-
96
- Lint/EmptyConditionalBody:
60
+ Lint/StructNewOverride:
97
61
  Enabled: true
98
-
99
- Lint/FloatComparison:
62
+ Lint/TopLevelReturnWithArgument:
100
63
  Enabled: true
101
-
102
- Lint/MissingSuper:
64
+ Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
103
65
  Enabled: true
104
-
105
- Lint/OutOfRangeRegexpRef:
66
+ Lint/UnreachableLoop:
106
67
  Enabled: true
107
-
108
- Lint/SelfAssignment:
68
+ Lint/UselessMethodDefinition: # (new in 0.90)
109
69
  Enabled: true
110
-
111
- Lint/TopLevelReturnWithArgument:
70
+ Lint/UselessTimes: # (new in 0.91)
112
71
  Enabled: true
113
72
 
114
- Lint/UnreachableLoop:
115
- Enabled: true
73
+ # ----- Metrics ------
116
74
 
117
- Style/ArrayCoercion:
118
- Enabled: true
75
+ Metrics/BlockLength:
76
+ Exclude:
77
+ - cocina-models.gemspec
78
+ - spec/cocina/**/*
119
79
 
120
- Style/CaseLikeIf:
121
- Enabled: true
80
+ Metrics/MethodLength:
81
+ Max: 14
122
82
 
123
- Style/ExplicitBlockArgument:
124
- Enabled: true
83
+ # ----- RSpec ------
125
84
 
126
- Style/GlobalStdStream:
127
- Enabled: true
85
+ RSpec/ExampleLength:
86
+ Max: 18
87
+ Exclude:
88
+ - spec/cocina/models/description_spec.rb
89
+ - spec/cocina/models/dro_shared_examples.rb
128
90
 
129
- Style/HashAsLastArrayItem:
130
- Enabled: true
91
+ RSpec/MultipleExpectations:
92
+ Enabled: false
131
93
 
132
- Style/HashLikeCase:
94
+ RSpec/StubbedMock: # (new in 1.44)
133
95
  Enabled: true
134
96
 
135
- Style/OptionalBooleanParameter:
136
- Enabled: false
97
+ # ----- Style ------
137
98
 
138
- Style/RedundantFileExtensionInRequire:
139
- Enabled: true
99
+ Style/Documentation:
100
+ Exclude:
101
+ - lib/cocina/models/*
140
102
 
141
- Style/SingleArgumentDig:
103
+ Style/AccessorGrouping:
142
104
  Enabled: true
143
-
144
- Style/StringConcatenation:
105
+ Style/ArrayCoercion:
145
106
  Enabled: true
146
-
147
- Layout/BeginEndAlignment: # (new in 0.91)
107
+ Style/BisectedAttrAccessor:
148
108
  Enabled: true
149
- Lint/ConstantDefinitionInBlock: # (new in 0.91)
109
+ Style/CaseLikeIf:
150
110
  Enabled: true
151
- Lint/DuplicateRequire: # (new in 0.90)
111
+ Style/ClassEqualityComparison: # (new in 0.93)
152
112
  Enabled: true
153
- Lint/EmptyFile: # (new in 0.90)
113
+ Style/CombinableLoops: # (new in 0.90)
154
114
  Enabled: true
155
- Lint/HashCompareByIdentity: # (new in 0.93)
115
+ Style/ExplicitBlockArgument:
156
116
  Enabled: true
157
- Lint/IdentityComparison: # (new in 0.91)
117
+ Style/ExponentialNotation:
158
118
  Enabled: true
159
- Lint/RedundantSafeNavigation: # (new in 0.93)
119
+ Style/GlobalStdStream:
160
120
  Enabled: true
161
- Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
121
+ Style/HashAsLastArrayItem:
162
122
  Enabled: true
163
- Lint/UselessMethodDefinition: # (new in 0.90)
123
+ Style/HashEachMethods:
164
124
  Enabled: true
165
- Lint/UselessTimes: # (new in 0.91)
125
+ Style/HashLikeCase:
166
126
  Enabled: true
167
- Style/ClassEqualityComparison: # (new in 0.93)
127
+ Style/HashTransformKeys:
168
128
  Enabled: true
169
- Style/CombinableLoops: # (new in 0.90)
129
+ Style/HashTransformValues:
170
130
  Enabled: true
171
131
  Style/KeywordParametersOrder: # (new in 0.90)
172
132
  Enabled: true
133
+ Style/OptionalBooleanParameter:
134
+ Enabled: false
135
+ Style/RedundantAssignment:
136
+ Enabled: true
137
+ Style/RedundantFetchBlock:
138
+ Enabled: true
139
+ Style/RedundantFileExtensionInRequire:
140
+ Enabled: true
141
+ Style/RedundantRegexpCharacterClass:
142
+ Enabled: true
143
+ Style/RedundantRegexpEscape:
144
+ Enabled: true
173
145
  Style/RedundantSelfAssignment: # (new in 0.90)
174
146
  Enabled: true
147
+ Style/SingleArgumentDig:
148
+ Enabled: true
149
+ Style/SlicingWithRange:
150
+ Enabled: true
175
151
  Style/SoleNestedConditional: # (new in 0.89)
176
152
  Enabled: true
153
+ Style/StringConcatenation:
154
+ Enabled: true
@@ -11,8 +11,6 @@ module Cocina
11
11
  attribute :role, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
12
12
  attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
13
13
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
14
- # Place of contributor in order of authorship for resource.
15
- attribute :order, Types::Strict::Integer.meta(omittable: true)
16
14
  end
17
15
  end
18
16
  end
@@ -5,6 +5,7 @@ module Cocina
5
5
  class DescriptiveAccessMetadata < Struct
6
6
  attribute :url, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
7
7
  attribute :physicalLocation, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
8
+ attribute :digitalLocation, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
8
9
  attribute :accessContact, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
9
10
  attribute :digitalRepository, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
10
11
  attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
@@ -25,8 +25,6 @@ module Cocina
25
25
  attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
26
26
  # The version of the related resource.
27
27
  attribute :version, Types::Strict::String.meta(omittable: true)
28
- # The order of the related resource in a series of related resources.
29
- attribute :order, Types::Strict::Integer.meta(omittable: true)
30
28
  end
31
29
  end
32
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.43.0'
5
+ VERSION = '0.44.0'
6
6
  end
7
7
  end
@@ -277,9 +277,6 @@ components:
277
277
  type: array
278
278
  items:
279
279
  $ref: "#/components/schemas/DescriptiveValue"
280
- order:
281
- description: Place of contributor in order of authorship for resource.
282
- type: integer
283
280
  Description:
284
281
  type: object
285
282
  additionalProperties: false
@@ -368,6 +365,11 @@ components:
368
365
  type: array
369
366
  items:
370
367
  $ref: "#/components/schemas/DescriptiveValue"
368
+ digitalLocation:
369
+ description: Location of a digital version of the resource, such as a file path for a born digital resource.
370
+ type: array
371
+ items:
372
+ $ref: "#/components/schemas/DescriptiveValue"
371
373
  accessContact:
372
374
  description: The library, organization, or person responsible for access to the resource.
373
375
  type: array
@@ -1060,9 +1062,6 @@ components:
1060
1062
  version:
1061
1063
  description: The version of the related resource.
1062
1064
  type: string
1063
- order:
1064
- description: The order of the related resource in a series of related resources.
1065
- type: integer
1066
1065
  ReleaseTag:
1067
1066
  description: A tag that indicates the item or collection should be released.
1068
1067
  type: object
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.43.0
4
+ version: 0.44.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: 2020-11-20 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  - !ruby/object:Gem::Version
326
326
  version: '0'
327
327
  requirements: []
328
- rubygems_version: 3.0.3
328
+ rubygems_version: 3.1.2
329
329
  signing_key:
330
330
  specification_version: 4
331
331
  summary: Data models for the SDR