uc3-dmp-id 0.0.16 → 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: 8d41f178d8112ef49f874b639c1a21689c1933501d387e0e8bbaaab031c55f53
4
- data.tar.gz: da14fdf494d8506df61855f7c2dd43b3d7c08d2969a6df27d059ed0fd1f97ddf
3
+ metadata.gz: d066d2f35fda60e96486334123aedbbd7978eea786d379551dd4fef411be8981
4
+ data.tar.gz: e72d2a53d14636420066f18b41c8d72729e58b50e81b4d27fe1801522f24b028
5
5
  SHA512:
6
- metadata.gz: 5572f018a1059d78efdea007b89b35f1c566dc96ad15f6b8850fb8fc220b67dd323810bd3f38699abb2e2621b503cac843c18eab35f199ce6ef6de37596d9857
7
- data.tar.gz: 30fca12612ebd2fefa23e9d9c79d2bf9a2c284713832464b205ac7255e5289a4bceaf9fb1e79000b693db208234b215a915bbbf425d57adbcf3b3082eaddb0a1
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.16'
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.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley