unipept 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/unipept +11 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03aafb9cbcaa8776d094bbd65c42c5fe4f4fbd3a
4
- data.tar.gz: 2b2b6f19a6d7d0e263f85501407d3add70324ede
3
+ metadata.gz: a5a71603248346c391236d3c403bef0ecd240399
4
+ data.tar.gz: d8d91d4254c7c6b86be958cb0b10e2a4665c8b4f
5
5
  SHA512:
6
- metadata.gz: 5191cb4452871172c7b3e2b5115dbf0b77b9a0f533a0e3047258a75cdaf84f0bd3ba7c1982f0e9c337232a31f608e3b885e5a4d996f0593c88c122510e4e918b
7
- data.tar.gz: 3b13ff181339f1c5cac5fb833c918cab4b987defea3bfba3fc4a68e24f08dc5730743d0f0cdbf115d6bb2faf20cdb8f3c3c0f1113f8fdb97a8d77574bec0dc90
6
+ metadata.gz: b6c359618d1603f0f871b93f24cfc6aa8c08d5f14010622749a2abce4b9e05b713ac865dd61074c3f607c931714f29684cdb7ab40fb1f2e30f40aca8e781506a
7
+ data.tar.gz: 17b7aa1681f7dbec7068d5313d26e4c156b2a0311f67dd2b5abc22924ede1a0280cad6e9e07593cadacd844cbfe072ec7730b677e0baa61741dda44e3926c2ef
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
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
- sub_result = JSON[Faraday.post(@url, url_options(sub_division)).body]
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
- download_xml(result)
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda