cocina-models 0.95.1 → 0.96.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: f8438f0415f1a77a6d36bd426d7d363437bc8f1ff0764124d58e150a3c4b158a
4
- data.tar.gz: 979ae98d269ca980a49851525fe517690d910ebbfc81b3c67180c0928002667f
3
+ metadata.gz: da05dda48140bb467d82b84614b44beea26884fcd4cd0891a507a53e6f967e5b
4
+ data.tar.gz: 322900e86d817d5d65820389fb7a6a13c92d98e4b9d6f2150e49de4ddd34785a
5
5
  SHA512:
6
- metadata.gz: a8d79cc6e824f1456fe192f7b81c150b212bf9c2b678ec5b3195d1bbac481dd9787cbffb8f566ca0b0da21a1898c3c872d1643cb9fe30f55b6d8d2db6ac8018f
7
- data.tar.gz: bf0e7dda581ec2b88fb35d26fd76f8efe2c353aa052abf1bdac580fafddbb6f5aeea7637f54cc5cf581e28ec402f88b15231b69a47a9590b857e6877af633162
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.95.1)
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.6)
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.2)
84
+ minitest (5.22.3)
85
85
  multi_json (1.15.0)
86
86
  mutex_m (0.2.0)
87
- nokogiri (1.16.2)
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.9.1)
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.0)
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? :what, Types::Strict::String.enum('self', 'collection')
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.95.1'
5
+ VERSION = '0.96.0'
6
6
  end
7
7
  end
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) ? ColectionWithMetadata : Collection
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
@@ -1526,6 +1526,7 @@ components:
1526
1526
  additionalProperties: false
1527
1527
  required:
1528
1528
  - release
1529
+ - what
1529
1530
  properties:
1530
1531
  who:
1531
1532
  description: Who did this release
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.95.1
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 00:00:00.000000000 Z
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.4.10
565
+ rubygems_version: 3.5.6
566
566
  signing_key:
567
567
  specification_version: 4
568
568
  summary: Data models for the SDR