miga-base 1.3.13.0 → 1.3.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/remote_dataset/download.rb +11 -5
- data/lib/miga/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c8217b95cae01a70b7248f33790b672b18fd4c3c739437f49f37c7520ece66
|
4
|
+
data.tar.gz: e86e9bb0d8e6beebaf838bc42233ddd9cda5343756853d44ee5873df4d62426d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b2550a8b834a611533d079fc5b5a46b770ba321ae4b062a3e451e752eb3b39d50828ac12261e5a446a5626b904a50b69c7b095cc0d89873bb01fba11b6e1d35
|
7
|
+
data.tar.gz: 4781f1f57b21bf75de2724243751c091f14071ce5a7b3de1505f7cb197175189d6ea11da62b845b5132746bed5fee9250c27cf4c6776875a1d4dfcd0b7751d0b
|
@@ -186,15 +186,21 @@ class MiGA::RemoteDataset
|
|
186
186
|
# Looks for the entry +id+ in +dbfrom+, and returns the linked
|
187
187
|
# identifier in +db+ (or nil).
|
188
188
|
def ncbi_map(id, dbfrom, db)
|
189
|
+
attempts = 0
|
189
190
|
doc = download(:ncbi_map, dbfrom, id, :json, nil, db: db)
|
190
191
|
return if doc.empty?
|
191
192
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
193
|
+
begin
|
194
|
+
tree = MiGA::Json.parse(doc, contents: true)
|
195
|
+
rescue => e
|
196
|
+
sleep 5 # <- Usually caused by busy servers: BLOB ID IS NOT IMPLEMENTED
|
197
|
+
DEBUG "RETRYING after: #{e}"
|
198
|
+
doc = download(:ncbi_map, dbfrom, id, :json, nil, db: db)
|
199
|
+
return if doc.empty?
|
200
|
+
tree = MiGA::Json.parse(doc, contents: true)
|
196
201
|
end
|
197
|
-
|
202
|
+
|
203
|
+
tree&.dig(:linksets, 0, :linksetdbs, 0, :links, 0)
|
198
204
|
end
|
199
205
|
|
200
206
|
##
|
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.3, 13,
|
15
|
+
VERSION = [1.3, 13, 1].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
@@ -20,7 +20,7 @@ module MiGA
|
|
20
20
|
|
21
21
|
##
|
22
22
|
# Date of the current gem relese.
|
23
|
-
VERSION_DATE = Date.new(2024, 3,
|
23
|
+
VERSION_DATE = Date.new(2024, 3, 11)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miga-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.13.
|
4
|
+
version: 1.3.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|