uc3-dmp-id 0.0.9 → 0.0.10

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: b57944fc6521b4cd8583fa7209fa0aef226dfea6e28f8b2e9e9395765976fe0f
4
- data.tar.gz: 384da8b1ceae9979c60ee9fc44110515c61eaab0a48fdb8e8444f36d3f7f00da
3
+ metadata.gz: 35192e984c146cf3891bc898ed03d3f100338a150a379e61e90da8c978b16050
4
+ data.tar.gz: 1c75e1a057e8b45fb26b56e6b4569f47dc496bf3d0bd66c00ddebc8d3be85ccd
5
5
  SHA512:
6
- metadata.gz: 7942cadabbe4d6dbe39bfed3871fde14f03f50ec51242cd6ff9d8511e3146fcb6dde979c7a3da239856c66db8f51469c60e99095cad3b1dcc9dc3240c18d489e
7
- data.tar.gz: e73125ef0b15b2ac6f42b037ea86d8c9d68ec6e8bb1501c055084e8a21706b04bc8a75853bbd2f651a699dc35b50b9382f40aa5e34daf5a1d6e796d0b930abdf
6
+ metadata.gz: 564ac8f207a3a156c73d3258f4de65d62e44841569e9f4a3808c88031ff0c5c75429d7922c2ed60a1146731e9c282170c111c3fd8a41524c9f9cb9e4bb608b9a
7
+ data.tar.gz: 4bb2d583e5863ecc0b299a2f25c3042fc3f2615326a0545e2160e5f668db35dd3e2fe66be5c4ec1e0c630ef02a86dd1f986ea81f401e9c1f60fd6a455bb60980
@@ -37,7 +37,7 @@ module Uc3DmpId
37
37
  # Append the SK prefix for the object
38
38
  # -------------------------------------------------------------------------------------
39
39
  def append_sk_prefix(s_key:)
40
- s_key.is_a?(String) ? "#{SK_DMP_PREFIX}#{remove_pk_prefix(s_key: s_key)}" : nil
40
+ s_key.is_a?(String) ? "#{SK_DMP_PREFIX}#{remove_sk_prefix(s_key: s_key)}" : nil
41
41
  end
42
42
 
43
43
  # Strip off the SK prefix
@@ -79,7 +79,7 @@ module Uc3DmpId
79
79
  p_key = param if param.start_with?(dmp_id_base_url) || param.start_with?(base_domain)
80
80
  p_key = CGI.unescape(p_key.nil? ? param : p_key)
81
81
  p_key = format_dmp_id(value: p_key)
82
- append_pk_prefix(dmp: p_key)
82
+ append_pk_prefix(p_key: p_key)
83
83
  end
84
84
 
85
85
  # Append the :PK prefix to the :dmp_id
@@ -90,7 +90,7 @@ module Uc3DmpId
90
90
  dmp_id = format_dmp_id(value: json['identifier'].to_s)
91
91
  return nil if dmp_id.nil? || dmp_id == ''
92
92
 
93
- append_pk_prefix(dmp: dmp_id)
93
+ append_pk_prefix(p_key: dmp_id)
94
94
  end
95
95
 
96
96
  # Derive the DMP ID by removing the :PK prefix
@@ -99,7 +99,7 @@ module Uc3DmpId
99
99
 
100
100
  {
101
101
  type: 'doi',
102
- identifier: format_dmp_id(value: remove_pk_prefix(dmp: p_key), with_protocol: true)
102
+ identifier: format_dmp_id(value: remove_pk_prefix(p_key: p_key), with_protocol: true)
103
103
  }
104
104
  end
105
105
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley