cocina-models 0.35.0 → 0.36.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 +4 -4
- data/.rubocop.yml +63 -1
- data/cocina-models.gemspec +1 -0
- data/lib/cocina/models/dro_access.rb +2 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +4 -0
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f64b937df8c8d8c7bbd64af57d587e27843ebcd7e751ea4caff887aaa78c7a1
|
|
4
|
+
data.tar.gz: b697ab2535648dd6d1520f35da839e599756e7c49bbc2803d17a5d6e2db9307d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c67039d09d1d04e7bba5aaf0199402e5e1e0b9008b56a268735f59d4d61bd92f5c6e17f0edaf8625102f5e7bfd25e7cc66b4e58e51193e811bf2635b43ff21cc
|
|
7
|
+
data.tar.gz: d7eeeccbc2a215cdee206b746bda7e38e7c86fca21b5c92f40057c5ffa760494cc539490dd35734314e82506f0ad922ae15f68bcf414034d9ce2fad06375397c
|
data/.rubocop.yml
CHANGED
|
@@ -4,6 +4,9 @@ inherit_from: .rubocop_todo.yml
|
|
|
4
4
|
require:
|
|
5
5
|
- rubocop-rspec
|
|
6
6
|
|
|
7
|
+
AllCops:
|
|
8
|
+
TargetRubyVersion: 2.5
|
|
9
|
+
|
|
7
10
|
Layout/LineLength:
|
|
8
11
|
Max: 114
|
|
9
12
|
Exclude:
|
|
@@ -80,4 +83,63 @@ Style/RedundantRegexpEscape:
|
|
|
80
83
|
|
|
81
84
|
Style/SlicingWithRange:
|
|
82
85
|
Enabled: true
|
|
83
|
-
|
|
86
|
+
|
|
87
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
|
88
|
+
Enabled: true
|
|
89
|
+
|
|
90
|
+
Lint/DuplicateElsifCondition:
|
|
91
|
+
Enabled: true
|
|
92
|
+
|
|
93
|
+
Lint/DuplicateRescueException:
|
|
94
|
+
Enabled: true
|
|
95
|
+
|
|
96
|
+
Lint/EmptyConditionalBody:
|
|
97
|
+
Enabled: true
|
|
98
|
+
|
|
99
|
+
Lint/FloatComparison:
|
|
100
|
+
Enabled: true
|
|
101
|
+
|
|
102
|
+
Lint/MissingSuper:
|
|
103
|
+
Enabled: true
|
|
104
|
+
|
|
105
|
+
Lint/OutOfRangeRegexpRef:
|
|
106
|
+
Enabled: true
|
|
107
|
+
|
|
108
|
+
Lint/SelfAssignment:
|
|
109
|
+
Enabled: true
|
|
110
|
+
|
|
111
|
+
Lint/TopLevelReturnWithArgument:
|
|
112
|
+
Enabled: true
|
|
113
|
+
|
|
114
|
+
Lint/UnreachableLoop:
|
|
115
|
+
Enabled: true
|
|
116
|
+
|
|
117
|
+
Style/ArrayCoercion:
|
|
118
|
+
Enabled: true
|
|
119
|
+
|
|
120
|
+
Style/CaseLikeIf:
|
|
121
|
+
Enabled: true
|
|
122
|
+
|
|
123
|
+
Style/ExplicitBlockArgument:
|
|
124
|
+
Enabled: true
|
|
125
|
+
|
|
126
|
+
Style/GlobalStdStream:
|
|
127
|
+
Enabled: true
|
|
128
|
+
|
|
129
|
+
Style/HashAsLastArrayItem:
|
|
130
|
+
Enabled: true
|
|
131
|
+
|
|
132
|
+
Style/HashLikeCase:
|
|
133
|
+
Enabled: true
|
|
134
|
+
|
|
135
|
+
Style/OptionalBooleanParameter:
|
|
136
|
+
Enabled: false
|
|
137
|
+
|
|
138
|
+
Style/RedundantFileExtensionInRequire:
|
|
139
|
+
Enabled: true
|
|
140
|
+
|
|
141
|
+
Style/SingleArgumentDig:
|
|
142
|
+
Enabled: true
|
|
143
|
+
|
|
144
|
+
Style/StringConcatenation:
|
|
145
|
+
Enabled: true
|
data/cocina-models.gemspec
CHANGED
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.bindir = 'exe'
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
24
|
spec.require_paths = ['lib']
|
|
25
|
+
spec.required_ruby_version = '~> 2.5'
|
|
25
26
|
|
|
26
27
|
spec.add_dependency 'activesupport'
|
|
27
28
|
spec.add_dependency 'dry-struct', '~> 1.0'
|
|
@@ -4,6 +4,8 @@ module Cocina
|
|
|
4
4
|
module Models
|
|
5
5
|
class DROAccess < Struct
|
|
6
6
|
attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
|
|
7
|
+
# Available for controlled digital lending.
|
|
8
|
+
attribute :controlledDigitalLending, Types::Strict::Bool.meta(omittable: true)
|
|
7
9
|
# The human readable copyright statement that applies
|
|
8
10
|
# example: Copyright World Trade Organization
|
|
9
11
|
attribute :copyright, Types::Strict::String.meta(omittable: true)
|
data/openapi.yml
CHANGED
|
@@ -567,6 +567,10 @@ components:
|
|
|
567
567
|
- 'citation-only'
|
|
568
568
|
- 'dark'
|
|
569
569
|
default: 'dark'
|
|
570
|
+
controlledDigitalLending:
|
|
571
|
+
description: Available for controlled digital lending.
|
|
572
|
+
type: boolean
|
|
573
|
+
default: false
|
|
570
574
|
copyright:
|
|
571
575
|
description: The human readable copyright statement that applies
|
|
572
576
|
example: Copyright World Trade Organization
|
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.
|
|
4
|
+
version: 0.36.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -304,15 +304,15 @@ files:
|
|
|
304
304
|
homepage: https://github.com/sul-dlss/cocina-models
|
|
305
305
|
licenses: []
|
|
306
306
|
metadata: {}
|
|
307
|
-
post_install_message:
|
|
307
|
+
post_install_message:
|
|
308
308
|
rdoc_options: []
|
|
309
309
|
require_paths:
|
|
310
310
|
- lib
|
|
311
311
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
312
312
|
requirements:
|
|
313
|
-
- - "
|
|
313
|
+
- - "~>"
|
|
314
314
|
- !ruby/object:Gem::Version
|
|
315
|
-
version: '
|
|
315
|
+
version: '2.5'
|
|
316
316
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
317
|
requirements:
|
|
318
318
|
- - ">="
|
|
@@ -320,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
320
320
|
version: '0'
|
|
321
321
|
requirements: []
|
|
322
322
|
rubygems_version: 3.1.2
|
|
323
|
-
signing_key:
|
|
323
|
+
signing_key:
|
|
324
324
|
specification_version: 4
|
|
325
325
|
summary: Data models for the SDR
|
|
326
326
|
test_files: []
|