travis-artifacts 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -66,7 +66,6 @@ module Travis::Artifacts
|
|
66
66
|
# we don't want to display sensitive data, make the error message simpler
|
67
67
|
request = e.request
|
68
68
|
response = e.response
|
69
|
-
raise e
|
70
69
|
raise e.class.new("Expected(#{request[:expects].inspect}) <=> Actual(#{response.status})")
|
71
70
|
else
|
72
71
|
raise
|
@@ -34,7 +34,7 @@ module Travis::Artifacts
|
|
34
34
|
response = mock('response', :status => 500)
|
35
35
|
error_class = Class.new(Excon::Errors::HTTPStatusError)
|
36
36
|
my_error = error_class.new('message', request, response)
|
37
|
-
uploader.should_receive(:_upload).exactly(
|
37
|
+
uploader.should_receive(:_upload).exactly(3).times.and_raise(my_error)
|
38
38
|
|
39
39
|
expect {
|
40
40
|
uploader.upload_file(file)
|
data/travis-artifacts.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis-artifacts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|