uc3-dmp-id 0.1.30 → 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: 85a549f1ef60c797402d9eb0a165c5eb60617de1c1357a0e1e707547b97cb994
4
- data.tar.gz: da68f8bfd1f439f7748c32410b20fbfc4889c50658fa3c133e8b055c0be5fbd6
3
+ metadata.gz: c916c27dc8eac1cb0ef5b40a5d3fc4e4e07ce34f1bb599f208e919442d6c7f2b
4
+ data.tar.gz: 7803e305538f4cce36ca021125ae1161cd201d8db4dd25cf8fe026ae28a53011
5
5
  SHA512:
6
- metadata.gz: 527aa60acc2c5e74b8c986355d77d7cc77b023ae825c7b7355926f313619604adbb9138b5c5fed3621e32e6b5597bb5e08a8f966c550fa726fa422f838fb0484
7
- data.tar.gz: a35a16f0d8586cf959510afa92f2aba4f220d54bc4b43bb0d51d5b2f41b0f782a0a135be153ea1a56a74dfb02de94b373ef4858a61fb5646e6ee41c5d099c98e
6
+ metadata.gz: 2738c8c874bd31cef0c6726de4cafb6378c8e1aa374223a478dcfdd42be0a28d1a929e04ec797d5cfe14748bb2a07eb1a1da723b7164b2ec0e12c6942922065a
7
+ data.tar.gz: 34e267e65d8db9b497a9673f355a97a21ad92820f6d8e1a98c9102017d8abce21695904bf7a8547568e0b5577364af3f86cc52c7c59ea4d37bfa528c0494d720
@@ -79,7 +79,7 @@ module Uc3DmpId
79
79
  next if response[:score] <= 2
80
80
 
81
81
  # Set the confidence level based on the score
82
- response[:dmp_id] = dmp['_id']
82
+ response[:dmp_id] = entry['_id']
83
83
  response[:confidence] = if response[:score] > 10
84
84
  'High'
85
85
  else
@@ -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.30'
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.30
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