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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc8ddb0dfd77463068313414c399d9329c69a1ea93904123a84834443a874c01
4
- data.tar.gz: f372df6bd7648df6d5f331335538eb7d27ece1a2acd1ddc824954cf0df941451
3
+ metadata.gz: a6abdc4aaa916e9d19c4e86939b1dd46957cb688ff2ab15d70101ba975bbb9aa
4
+ data.tar.gz: a806b4371060ade68b0bd5a4e3664b29aa5accf6a763da7754fbabf0248e2d1f
5
5
  SHA512:
6
- metadata.gz: dfe212d14d1b84929028c272b7a94518ac31d3924d640e72d683da70565283043c884396f3612210622de473b1dc7b4dbde8cb8f2f23df229e2490658efc9b5e
7
- data.tar.gz: bb584811cf3ea4ffaf4ef8babce832dae1f5f623214554e735b56965214c76e539ce4bebb65001f0b2c3ca0f3f2ddfab330a6def4c1e64c078d7fe181d8b66dc
6
+ metadata.gz: d72e8ca5521d065f8275d608cae680b432fe7631734f59bbfcbb6c6387107bd3dfa1224e1a72fca2efa75d5f56f0c9fd45be26a3357476766d32dff1b77b36a2
7
+ data.tar.gz: 7938a63de467a7d72560f605a8c179bc99f08fe38e8f78b610f0f32972c4b7ab8c336ef506a9ca3c755616551410f881500fcef617b66d40a39c4bfb7e987133
@@ -9,7 +9,7 @@ Metrics/BlockLength:
9
9
  - spec/cocina/**/*
10
10
 
11
11
  Metrics/LineLength:
12
- Max: 100
12
+ Max: 114
13
13
 
14
14
  Metrics/MethodLength:
15
15
  Max: 13
@@ -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::Strict::Integer
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
- embargoReleaseDate: dyn['access']['embargoReleaseDate']
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2019-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct