yolo 1.2.3 → 1.2.4

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.
@@ -60,8 +60,10 @@ module Yolo
60
60
  while line = io.readline
61
61
  response << line
62
62
  end
63
- rescue StandardError
64
- @error_formatter.deploy_failed("Upload error")
63
+ if response.length == 0
64
+ @error_formatter.deploy_failed("Upload error")
65
+ end
66
+ rescue EOFError
65
67
  end
66
68
  end
67
69
  upload_complete(response) if response.length > 0
@@ -25,8 +25,10 @@ module Yolo
25
25
  while line = io.readline
26
26
  response << line
27
27
  end
28
- rescue StandardError
29
- @error_formatter.deploy_failed("Upload error")
28
+ if response.length == 0
29
+ @error_formatter.deploy_failed("Upload error")
30
+ end
31
+ rescue EOFError
30
32
  end
31
33
  end
32
34
  upload_complete(response) if response.length > 0
@@ -63,8 +63,8 @@ describe Yolo::Deployment::OTA do
63
63
  @ota.upload
64
64
  end
65
65
 
66
- it "should catch StandardError exceptions" do
67
- @io.stub(:readline).and_raise(StandardError)
66
+ it "should catch empty responses" do
67
+ @io.stub(:readline){nil}
68
68
  @error_formatter.should_receive(:deploy_failed).at_least(1).times
69
69
  @ota.upload
70
70
  end
@@ -29,8 +29,8 @@ describe Yolo::Deployment::TestFlight do
29
29
  @tf.deploy("test")
30
30
  end
31
31
 
32
- it "should catch StandardError exceptions" do
33
- @io.stub(:readline).and_raise(StandardError)
32
+ it "should catch empty responses" do
33
+ @io.stub(:readline){nil}
34
34
  @error_formatter.should_receive(:deploy_failed).at_least(1).times
35
35
  @tf.deploy("test")
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: