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 +4 -4
- data/lib/uc3-dmp-id/finder.rb +4 -7
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d066d2f35fda60e96486334123aedbbd7978eea786d379551dd4fef411be8981
|
4
|
+
data.tar.gz: e72d2a53d14636420066f18b41c8d72729e58b50e81b4d27fe1801522f24b028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66a91931568d189eb44d1eee182ac044039f1836b5ed9e63ce3a137208a1bae200f4cdf075a3aa3bfb61570087d48e733db511cfb19e260cd2e3542c19ac7df0
|
7
|
+
data.tar.gz: 0d50822613d923836b21abd0665bfeee501d122ec920632dd1f7c7f4f5863e24a7a555ff393e2f57c28c646d24be7d2d5bfcaf06cdc1965cd1163c0b61729eba
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -128,15 +128,12 @@ puts "FETCHING VERSIONS"
|
|
128
128
|
|
129
129
|
versions = results.map do |ver|
|
130
130
|
|
131
|
-
puts
|
131
|
+
puts ver
|
132
132
|
|
133
|
-
|
134
|
-
next if version.fetch('dmp', {})['modified'].nil?
|
135
|
-
|
136
|
-
timestamp = version['dmp']['modified']
|
133
|
+
next if ver['modified'].nil?
|
137
134
|
{
|
138
|
-
timestamp:
|
139
|
-
url: "#{Helper.api_base_url}dmps/#{Helper.remove_pk_prefix(p_key: p_key)}?version=#{
|
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)
|
data/lib/uc3-dmp-id/version.rb
CHANGED