unipept 0.2.0 → 0.2.1
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 +11 -2
- 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: a5a71603248346c391236d3c403bef0ecd240399
|
|
4
|
+
data.tar.gz: d8d91d4254c7c6b86be958cb0b10e2a4665c8b4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6c359618d1603f0f871b93f24cfc6aa8c08d5f14010622749a2abce4b9e05b713ac865dd61074c3f607c931714f29684cdb7ab40fb1f2e30f40aca8e781506a
|
|
7
|
+
data.tar.gz: 17b7aa1681f7dbec7068d5313d26e4c156b2a0311f67dd2b5abc22924ede1a0280cad6e9e07593cadacd844cbfe072ec7730b677e0baa61741dda44e3926c2ef
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.1
|
data/bin/unipept
CHANGED
|
@@ -58,7 +58,12 @@ class ApiRunner < Cri::CommandRunner
|
|
|
58
58
|
result = []
|
|
59
59
|
peptides.each_slice(self.batch_size) do |sub_division|
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
begin
|
|
62
|
+
sub_result = JSON[Faraday.post(@url, url_options(sub_division)).body]
|
|
63
|
+
rescue
|
|
64
|
+
puts "API endpoint gave an error, exiting."
|
|
65
|
+
exit 1
|
|
66
|
+
end
|
|
62
67
|
|
|
63
68
|
sub_result = [sub_result] if not sub_result.kind_of? Array
|
|
64
69
|
|
|
@@ -69,7 +74,11 @@ class ApiRunner < Cri::CommandRunner
|
|
|
69
74
|
progress.progress += sub_division.size
|
|
70
75
|
end
|
|
71
76
|
|
|
72
|
-
|
|
77
|
+
begin
|
|
78
|
+
download_xml(result)
|
|
79
|
+
rescue
|
|
80
|
+
puts "Something went wrong while downloading xml information! please check the output"
|
|
81
|
+
end
|
|
73
82
|
|
|
74
83
|
result = formatter.format(result)
|
|
75
84
|
if options[:output]
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
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-04-
|
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: shoulda
|