unipept 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/unipept +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eadba0bac0ca2f5d8dbbbceffe168f26c621cd86
|
|
4
|
+
data.tar.gz: 5115330bf9a71bfabfa9ac78c852769c9299a51d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c03d75460bbb446335ce708e3602b5edb327434f4e427deb6097231be446e9ecb004bf0f31bcc7034026e685690eb900128ba5b7a6148cc269ea6407397d2ce2
|
|
7
|
+
data.tar.gz: 8d83ec62c72179ec629777c54dee5f8b41db8ecedcdc3ddd9b5ec82b419c7e99592bc5ab54cd83b85f0a307d8156c7f5a85f4d12168b4036b200dd7aaadbdc75
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.2
|
data/bin/unipept
CHANGED
|
@@ -28,7 +28,6 @@ class ApiRunner < Cri::CommandRunner
|
|
|
28
28
|
@message_url = "#{host}/api/v1/messages.json"
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
def mapping
|
|
33
32
|
{'pept2taxa' => 'pept2taxa', 'pept2lca' => 'pept2lca'}
|
|
34
33
|
end
|
|
@@ -94,7 +93,8 @@ class ApiRunner < Cri::CommandRunner
|
|
|
94
93
|
request = Typhoeus::Request.new(
|
|
95
94
|
@url,
|
|
96
95
|
method: :post,
|
|
97
|
-
body: url_options(sub_division)
|
|
96
|
+
body: url_options(sub_division),
|
|
97
|
+
accept_encoding: "gzip"
|
|
98
98
|
)
|
|
99
99
|
request.on_complete do |resp|
|
|
100
100
|
if resp.timed_out?
|
|
@@ -107,7 +107,9 @@ class ApiRunner < Cri::CommandRunner
|
|
|
107
107
|
|
|
108
108
|
sub_result.map! {|r| r.select! {|k,v| filter_list.any? {|f| f.match k } } } if ! filter_list.empty?
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
if options[:xml]
|
|
111
|
+
result << sub_result
|
|
112
|
+
end
|
|
111
113
|
|
|
112
114
|
# wait till it's our turn to write
|
|
113
115
|
batch_order.wait(i) do
|
|
@@ -139,7 +141,6 @@ class ApiRunner < Cri::CommandRunner
|
|
|
139
141
|
|
|
140
142
|
hydra.run
|
|
141
143
|
|
|
142
|
-
|
|
143
144
|
begin
|
|
144
145
|
download_xml(result)
|
|
145
146
|
rescue
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unipept
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Toon Willems
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: shoulda
|