uc3-dmp-id 0.1.19 → 0.1.20

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: 0375f36323f6e846bd14ad18a345a0ef42cc29ad9255e26c926f4d18c0960515
4
- data.tar.gz: b9f5cf963f505420438731225b2663bf4d85dae6683386104d8466808588a804
3
+ metadata.gz: cf23236a56983b63050eefbc4a1b94eb435c44a3c7e47e060f7a95e880ed0d3b
4
+ data.tar.gz: 483b42d03c8e3e0ae8cf88222ca099c3690bcff4e943245c372408fc3382d141
5
5
  SHA512:
6
- metadata.gz: 783bb2a9de8175a6c4cd57c879e6dc8a1ae0070e6e25bc344e3fbebb5791ca1cdb25718031c91d078fcba5a94f7e058cf84d4394e3bab0877d7b402a8109a95f
7
- data.tar.gz: b75ab3c52824b16fd8bd2452272b0defd5a2663e2a62980eb405e5f323089f26ac7e65f4aee2eae2cefacf3fb209e85ff00a391e4a32623e6abfd9ce70d48acb
6
+ metadata.gz: 6b4a5b5f7fdc3853892a4c71a2c285f40b41624b4e68caacfc95affefb05024d8e29ff0e36f54f421519594a5ec55f41cbf7c9261e9402f51dd8e3c43a3638ac
7
+ data.tar.gz: 1fd451e5b41c1fe381d08630c28f7fda267cdb1000fbdb0125ac5b6ff37b50c0881a3d91335fb72471a1d2d9471b4ef097be45c18f9c892aedcfc2c041d97196
@@ -44,8 +44,10 @@ module Uc3DmpId
44
44
 
45
45
  # Set the :created and :modified timestamps
46
46
  now = Time.now.utc.iso8601
47
- annotated['created'] = now
48
- annotated['modified'] = now
47
+ seeding = provenance.fetch('seedingWithLiveDmpIds', false).to_s.downcase == 'true'
48
+ # Do not overwrite the created/modified timestamps if we are seeding!
49
+ annotated['created'] = now unless seeding
50
+ annotated['modified'] = now unless seeding
49
51
 
50
52
  # Create the item
51
53
  resp = client.put_item(json: annotated, logger:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.19'
4
+ VERSION = '0.1.20'
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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.4.10
153
+ rubygems_version: 3.4.22
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: DMPTool gem that provides support for DMP ID records