uc3-dmp-id 0.0.86 → 0.0.87

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: 10b352f851836dba94128f686ead56e57f9b4ebdbd60d2fec07875c168ceab02
4
- data.tar.gz: 3ebc392cacd0ffff66f0c482463975244021a2b11c046226c27bde091cab1817
3
+ metadata.gz: 5157b046943c0704a73d9b1c203dd7f88489a31c22dc0711f857b8b1c2320290
4
+ data.tar.gz: 7d0d5d498654e4203b37537c760f61c20bc0647ba785193fc253b745cfd21287
5
5
  SHA512:
6
- metadata.gz: c49e77cf0c1d2d4436e6396b98e4cc4b7681d3345925dc27690e81371104aac3d1669e1fee6570c494dd8ec871824884522fb76d11242fd45f2f8fa27478e3b2
7
- data.tar.gz: 321d0ab84681502923e2bb39d8d1e50ef8b3ad9196d3e98e80eccb2a284d8d202fd596990eacda27ef8b4207e7d1a15af2fd947b71b55dad58bbb4b4771ed08f
6
+ metadata.gz: 3030a6a421a5e5e1e461b5861cc802e6f3851a0759c6783fac640978a6af755cad965728a7e5b77ca6f31d17e7069e087a2fb6ea7563a10ed3f49a036911c3c6
7
+ data.tar.gz: 0a41e25fc8b3f9eff0d19620de10a953e0c062472508b3f048d7796dd7ed4d6f91458907f3ee16417d55bca2f9c2a77ae5732a820260f5e5cd883ab3f381f320
@@ -28,7 +28,7 @@ puts annotated
28
28
  puts 'EXISTING:'
29
29
  puts existing
30
30
 
31
- errs = _updateable?(provenance: provenance, p_key: p_key, json: existing)
31
+ errs = _updateable?(provenance: provenance, p_key: p_key, json: annotated)
32
32
  raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
33
33
  # Don't continue if nothing has changed!
34
34
  raise UpdaterError, MSG_NO_CHANGE if Helper.eql?(dmp_a: existing, dmp_b: annotated)
@@ -93,8 +93,6 @@ puts "Provenance: #{provenance['PK']}, DMP_ID to PK #{Helper.dmp_id_to_pk(json:
93
93
  # Verify that the JSON is for the same DMP in the PK
94
94
  dmp_id = json['dmp'].fetch('dmp_id', {})
95
95
  return [MSG_DMP_FORBIDDEN] unless Helper.dmp_id_to_pk(json: dmp_id) == p_key
96
- # Make sure they're not trying to update a historical copy of the DMP
97
- return [MSG_DMP_NO_HISTORICALS] if json['SK'] != Helper::DMP_LATEST_VERSION
98
96
  end
99
97
 
100
98
  # Once the DMP has been updated, we need to register it's DMP ID and download any PDF if applicable
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.86'
4
+ VERSION = '0.0.87'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.86
4
+ version: 0.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley