cocina-models 0.95.1 → 0.96.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/Gemfile.lock +6 -6
- data/README.md +1 -1
- data/lib/cocina/models/citation_only_access.rb +1 -0
- data/lib/cocina/models/release_tag.rb +1 -1
- data/lib/cocina/models/version.rb +1 -1
- data/lib/cocina/models.rb +1 -1
- data/openapi.yml +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da05dda48140bb467d82b84614b44beea26884fcd4cd0891a507a53e6f967e5b
|
|
4
|
+
data.tar.gz: 322900e86d817d5d65820389fb7a6a13c92d98e4b9d6f2150e49de4ddd34785a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce287a4da425257a40eb13e68f7eb7c2819fcd4658cef4d1fa81dae961d4e47df7a33ed2fe385e69a122c5542f73e42a441064e8d4f36fdafa8fdf6cc1bdaa84
|
|
7
|
+
data.tar.gz: cf060d2984d736229e2fbd68ba28e7b3b68efae7e4f393ca0c6bdf7d09fa6ccaa8cfc6c2c0924b37c498b2d762b5817c36a74f31953a72550cd68b748ecdd355
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cocina-models (0.
|
|
4
|
+
cocina-models (0.96.0)
|
|
5
5
|
activesupport
|
|
6
6
|
deprecation
|
|
7
7
|
dry-struct (~> 1.0)
|
|
@@ -34,7 +34,7 @@ GEM
|
|
|
34
34
|
ast (2.4.2)
|
|
35
35
|
attr_extras (7.1.0)
|
|
36
36
|
base64 (0.2.0)
|
|
37
|
-
bigdecimal (3.1.
|
|
37
|
+
bigdecimal (3.1.7)
|
|
38
38
|
byebug (11.1.3)
|
|
39
39
|
committee (5.0.0)
|
|
40
40
|
json_schema (~> 0.14, >= 0.14.3)
|
|
@@ -81,10 +81,10 @@ GEM
|
|
|
81
81
|
multi_json
|
|
82
82
|
language_server-protocol (3.17.0.3)
|
|
83
83
|
mini_portile2 (2.8.5)
|
|
84
|
-
minitest (5.22.
|
|
84
|
+
minitest (5.22.3)
|
|
85
85
|
multi_json (1.15.0)
|
|
86
86
|
mutex_m (0.2.0)
|
|
87
|
-
nokogiri (1.16.
|
|
87
|
+
nokogiri (1.16.3)
|
|
88
88
|
mini_portile2 (~> 2.8.2)
|
|
89
89
|
racc (~> 1.4)
|
|
90
90
|
openapi3_parser (0.9.2)
|
|
@@ -98,7 +98,7 @@ GEM
|
|
|
98
98
|
patience_diff (1.2.0)
|
|
99
99
|
optimist (~> 3.0)
|
|
100
100
|
racc (1.7.3)
|
|
101
|
-
rack (3.0.
|
|
101
|
+
rack (3.0.10)
|
|
102
102
|
rainbow (3.1.1)
|
|
103
103
|
rake (13.1.0)
|
|
104
104
|
regexp_parser (2.9.0)
|
|
@@ -120,7 +120,7 @@ GEM
|
|
|
120
120
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
121
121
|
rss (0.3.0)
|
|
122
122
|
rexml
|
|
123
|
-
rubocop (1.62.
|
|
123
|
+
rubocop (1.62.1)
|
|
124
124
|
json (~> 2.3)
|
|
125
125
|
language_server-protocol (>= 3.17.0)
|
|
126
126
|
parallel (~> 1.10)
|
data/README.md
CHANGED
|
@@ -83,7 +83,7 @@ export DATABASE_HOSTNAME=$DOR_SERVICES_DB_PROD_HOST
|
|
|
83
83
|
export DATABASE_PASSWORD=$DOR_SERVICES_DB_PROD_PWD
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
4. Run `bin/validate-cocina
|
|
86
|
+
4. Run `bin/validate-cocina` (_NOTE:_ You likely want to run this in a screen session, as it can take many hours to complete, especially against prod):
|
|
87
87
|
```
|
|
88
88
|
export RUBYOPT='-W:no-deprecated -W:no-experimental'
|
|
89
89
|
RAILS_ENV=production bin/validate-cocina -p 8
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Cocina
|
|
4
4
|
module Models
|
|
5
|
+
# A type of access for an object wherein users can see the metadata and a list of files, but the files will not have view or download access
|
|
5
6
|
class CitationOnlyAccess < Struct
|
|
6
7
|
# Access level.
|
|
7
8
|
attribute :view, Types::Strict::String.enum('citation-only')
|
|
@@ -9,7 +9,7 @@ module Cocina
|
|
|
9
9
|
attribute? :who, Types::Strict::String
|
|
10
10
|
# What is being released. This item or the whole collection.
|
|
11
11
|
# example: self
|
|
12
|
-
attribute
|
|
12
|
+
attribute :what, Types::Strict::String.enum('self', 'collection')
|
|
13
13
|
# When did this action happen
|
|
14
14
|
attribute? :date, Types::Params::DateTime
|
|
15
15
|
# What platform is it released to
|
data/lib/cocina/models.rb
CHANGED
|
@@ -85,7 +85,7 @@ module Cocina
|
|
|
85
85
|
when *DRO::TYPES
|
|
86
86
|
has_metadata?(dyn) ? DROWithMetadata : DRO
|
|
87
87
|
when *Collection::TYPES
|
|
88
|
-
has_metadata?(dyn) ?
|
|
88
|
+
has_metadata?(dyn) ? CollectionWithMetadata : Collection
|
|
89
89
|
when *AdminPolicy::TYPES
|
|
90
90
|
has_metadata?(dyn) ? AdminPolicyWithMetadata : AdminPolicy
|
|
91
91
|
else
|
data/openapi.yml
CHANGED
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.96.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: 2024-03-
|
|
11
|
+
date: 2024-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -562,7 +562,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
562
562
|
- !ruby/object:Gem::Version
|
|
563
563
|
version: '0'
|
|
564
564
|
requirements: []
|
|
565
|
-
rubygems_version: 3.
|
|
565
|
+
rubygems_version: 3.5.6
|
|
566
566
|
signing_key:
|
|
567
567
|
specification_version: 4
|
|
568
568
|
summary: Data models for the SDR
|