uc3-dmp-id 0.1.31 → 0.1.32

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: c2b799b3390340a0305536f61b9ac6759c7bc7222d28b2b394de872babe89101
4
- data.tar.gz: 5276c677ea75ece39859c6ff5927072b3d90f2afa580604c75c7b47c32187b74
3
+ metadata.gz: c916c27dc8eac1cb0ef5b40a5d3fc4e4e07ce34f1bb599f208e919442d6c7f2b
4
+ data.tar.gz: 7803e305538f4cce36ca021125ae1161cd201d8db4dd25cf8fe026ae28a53011
5
5
  SHA512:
6
- metadata.gz: 5e7ef0c1d827b2b0776c15a930b3dd26bb39ba1c5617f85d1abc0dacefe8c4db1b7087b0e9de2b7c51cf3d9b3fbbfa263fb998fcb5b8ec21268bb9019eb20ed4
7
- data.tar.gz: f93505732e2bd768e968b8be211a6792ec8eb4b2712bfe33400ad69930840533c636ebec79ab033ef789a19793d09ae942ac9d94935d8fd5fb205f8ea578c8ef
6
+ metadata.gz: 2738c8c874bd31cef0c6726de4cafb6378c8e1aa374223a478dcfdd42be0a28d1a929e04ec797d5cfe14748bb2a07eb1a1da723b7164b2ec0e12c6942922065a
7
+ data.tar.gz: 34e267e65d8db9b497a9673f355a97a21ad92820f6d8e1a98c9102017d8abce21695904bf7a8547568e0b5577364af3f86cc52c7c59ea4d37bfa528c0494d720
@@ -49,6 +49,9 @@ module Uc3DmpId
49
49
  annotated['created'] = now unless seeding
50
50
  annotated['modified'] = now unless seeding
51
51
 
52
+ # Make sure we set the registration date. This will change in the new system
53
+ annotated['registered'] = annotated['created'] if annotated['registered'].nil?
54
+
52
55
  # Create the item
53
56
  resp = client.put_item(json: annotated, logger:)
54
57
  raise CreatorError, Helper::MSG_DMP_NO_DMP_ID if resp.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.31'
4
+ VERSION = '0.1.32'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json