uc3-dmp-id 0.0.135 → 0.0.137

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: a3a83d9c8c3266f0d37821969a6548fc7acc2eca053c5293af6a5fee66ec1f03
4
- data.tar.gz: 3b51e00e8bc38133efe866fde3f262633f32d8f055df7526eec83ab79122a56d
3
+ metadata.gz: af278f46689bcbd4b37c3d83a8ab76fdf6af75c120967145a2fdff8ed1903085
4
+ data.tar.gz: 4a78d04de196ff1e13e97b4b94d17758bb221d103909af1d300e947a80c80ccd
5
5
  SHA512:
6
- metadata.gz: 3308e6acd7891cbf069425b7ae11a586d8c56be7797185c1e33be6afe5e5718d4250e9e6a5d2c40e027350fdbdc694154b6d34d3b3f7095d27586344ecace0a0
7
- data.tar.gz: 1d3a996b8bcd63b3b8ac7e8feb2c36e6f993967dae893b1976189d58f12ba1ad0b7e9b8bbecfca78979ddffc3ff09cb36859eb940cb3b5ccba49be640c76c3d2
6
+ metadata.gz: e57eefaa818f2f1344a6109f8510f6009f3f58cb566925d501633cc6c1b86c064026668362522ee812cd5017bd7e3fab69468470e3ec604f0b2ced8adb200c54
7
+ data.tar.gz: acb63c70fbeb26f7138a0dcf94ba2d5ed60a7bcbadfac07bc8ad7f52943bf0a119b8b704f663717d2e1e6d6537c898f9cd28dad8d4d3c831e28aa1a9218fa63c
@@ -15,7 +15,7 @@ module Uc3DmpId
15
15
  SK_DMP_REGEX = /VERSION#\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}/.freeze
16
16
 
17
17
  # TODO: Verify the assumed structure of the DOI is valid
18
- DOI_REGEX = %r{[0-9]{2}\.[0-9]{5}/[a-zA-Z0-9/_.-]+}.freeze
18
+ DOI_REGEX = %r{[0-9]{2}\.[0-9]{4,}/[a-zA-Z0-9/_.-]+}.freeze
19
19
  URL_REGEX = %r{(https?://)?([a-zA-Z0-9\-_]\.)+[a-zA-Z0-9\-_]{2,3}(:[0-9]+)?/?}.freeze
20
20
 
21
21
  DMP_LATEST_VERSION = "#{SK_DMP_PREFIX}latest"
@@ -40,7 +40,7 @@ module Uc3DmpId
40
40
  raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if version.nil?
41
41
 
42
42
  # Remove the version info because we don't want to save it on the record
43
- version['dmp'].delete('dmphub_versions')
43
+ version.delete('dmphub_versions')
44
44
 
45
45
  # Splice the assertions
46
46
  version = _process_modifications(owner: owner, updater: updater, version: version, mods: mods, note: note,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.135'
4
+ VERSION = '0.0.137'
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.0.135
4
+ version: 0.0.137
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-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json