uc3-dmp-id 0.0.17 → 0.0.18

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: 311e98d2bb2766b13451da262a40a971bf6bd277a9b20e08a370b6bc85736c01
4
- data.tar.gz: f44522707fdc652d66d691807d078a07e1f4749eb5bd8c7710e3cf8bfa764f2f
3
+ metadata.gz: d066d2f35fda60e96486334123aedbbd7978eea786d379551dd4fef411be8981
4
+ data.tar.gz: e72d2a53d14636420066f18b41c8d72729e58b50e81b4d27fe1801522f24b028
5
5
  SHA512:
6
- metadata.gz: dec0556fc472a139b1ec25f502eb1a4c1bbf6a533158697b4f554f5211ff69b8dc42cf65accc7ceb8b4d10f4ec792f972bd7a28352fad89b0f3df21ad2600cb0
7
- data.tar.gz: '087af9131a1bcfee8ddfe93f6202cf0f9d38cd9151a6de00c3c50b783eade3775e42a6695b50b5963e2e70f881444ae3f2d4f02a1f9061b4fa9d87478dac2931'
6
+ metadata.gz: 66a91931568d189eb44d1eee182ac044039f1836b5ed9e63ce3a137208a1bae200f4cdf075a3aa3bfb61570087d48e733db511cfb19e260cd2e3542c19ac7df0
7
+ data.tar.gz: 0d50822613d923836b21abd0665bfeee501d122ec920632dd1f7c7f4f5863e24a7a555ff393e2f57c28c646d24be7d2d5bfcaf06cdc1965cd1163c0b61729eba
@@ -128,15 +128,12 @@ puts "FETCHING VERSIONS"
128
128
 
129
129
  versions = results.map do |ver|
130
130
 
131
- puts version
131
+ puts ver
132
132
 
133
- version = ver['dmp'].nil? ? JSON.parse({ dmp: ver }.to_json) : ver
134
- next if version.fetch('dmp', {})['modified'].nil?
135
-
136
- timestamp = version['dmp']['modified']
133
+ next if ver['modified'].nil?
137
134
  {
138
- timestamp: timestamp,
139
- url: "#{Helper.api_base_url}dmps/#{Helper.remove_pk_prefix(p_key: p_key)}?version=#{timestamp}"
135
+ timestamp: ver['modified'],
136
+ url: "#{Helper.api_base_url}dmps/#{Helper.remove_pk_prefix(p_key: p_key)}?version=#{ver['modified']}"
140
137
  }
141
138
  end
142
139
  dmp['dmp']['dmphub_versions'] = JSON.parse(versions.to_json)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.17'
4
+ VERSION = '0.0.18'
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.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley