uc3-dmp-id 0.0.55 → 0.0.56

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: 1d2311f35cbb8b833394919ecad0432d096db0a9b4344f817cdacd62399a97ec
4
- data.tar.gz: 7ecdaf2b92b718d69ff0bc102df2fd366e6f9a2701a92a66c61aeb6e2997381a
3
+ metadata.gz: f1aafa930278b99e50df087691c0bacc305af75bf449b67e64e82e8031e2711d
4
+ data.tar.gz: 8f81d11cf31acb8afcea0adb1171b03f8c39f88cb1471125dc34c95f8faedd92
5
5
  SHA512:
6
- metadata.gz: 302e438282cc47e54ad94c7f1072c6c3f6bb130881c23f2d8c22bed34f17e6b2eb7919e4f17b137e3adc97963316a9fb0e97c651046362e42ae24781fb2318cd
7
- data.tar.gz: 37c8ee0465b0cd2b398cb40be0aa6b56494a141cacd0161db127d867dd6bb867be5c0b663e5a51cf1eca2803ac3a28dec37ca7a938c5a780f4c48927db4a1e24
6
+ metadata.gz: 2145330c697fdc2c9d3ebbd52a9cf4130725c9e9e1a9bab724758198b90e6f9f5c897442c1244d26848fa118269665891aefbc3f696a89a919eb9fcd629b100f
7
+ data.tar.gz: d7ba392936d2ab33b810455c4bb1ba530b346e1b618f22d311ec75eb0ab471b038def5ca0fe171d2f28950bab8327d176fd56bcd3e03e2265e3863e89cdbc0a3
@@ -75,6 +75,9 @@ puts annotated
75
75
  errs = Validator.validate(mode: 'author', json: json)
76
76
  return errs.join(', ') if errs.is_a?(Array) && errs.any? && errs.first != Validator::MSG_VALID_JSON
77
77
 
78
+ puts "Prov: #{provenance['PK']}, PK IN: #{p_key}, DMP ID: #{json.fetch('dmp_id', {})['identifier']}, PK: #{json['PK']}"
79
+ puts "Processed DMP ID: '#{Helper.dmp_id_to_pk(json: dmp_id)}' == '#{p_key}'"
80
+
78
81
  # Fail if the provenance is not defined
79
82
  return [MSG_DMP_FORBIDDEN] unless provenance.is_a?(Hash) && !provenance['PK'].nil?
80
83
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.55'
4
+ VERSION = '0.0.56'
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.55
4
+ version: 0.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley