cocina-models 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/cocina/models/dro.rb +4 -5
- data/lib/cocina/models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6abdc4aaa916e9d19c4e86939b1dd46957cb688ff2ab15d70101ba975bbb9aa
|
4
|
+
data.tar.gz: a806b4371060ade68b0bd5a4e3664b29aa5accf6a763da7754fbabf0248e2d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72e8ca5521d065f8275d608cae680b432fe7631734f59bbfcbb6c6387107bd3dfa1224e1a72fca2efa75d5f56f0c9fd45be26a3357476766d32dff1b77b36a2
|
7
|
+
data.tar.gz: 7938a63de467a7d72560f605a8c179bc99f08fe38e8f78b610f0f32972c4b7ab8c336ef506a9ca3c755616551410f881500fcef617b66d40a39c4bfb7e987133
|
data/.rubocop.yml
CHANGED
data/lib/cocina/models/dro.rb
CHANGED
@@ -35,7 +35,7 @@ module Cocina
|
|
35
35
|
attribute :externalIdentifier, Types::Strict::String
|
36
36
|
attribute :type, Types::Strict::String
|
37
37
|
attribute :label, Types::Strict::String
|
38
|
-
attribute :version, Types::
|
38
|
+
attribute :version, Types::Coercible::Integer
|
39
39
|
attribute(:access, Access.default { Access.new })
|
40
40
|
attribute(:administrative, Administrative.default { Administrative.new })
|
41
41
|
attribute(:identification, Identification.default { Identification.new })
|
@@ -48,10 +48,9 @@ module Cocina
|
|
48
48
|
label: dyn['label'],
|
49
49
|
version: dyn['version']
|
50
50
|
}
|
51
|
-
if dyn['access']
|
52
|
-
access = {
|
53
|
-
|
54
|
-
}
|
51
|
+
if (access_params = dyn['access'])
|
52
|
+
access = {}
|
53
|
+
access[:embargoReleaseDate] = access_params['embargoReleaseDate'] if access_params['embargoReleaseDate']
|
55
54
|
params[:access] = access
|
56
55
|
end
|
57
56
|
|
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.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|