dpl-packagecloud 1.10.2.travis.2992.6 → 1.10.2.travis.2993.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/packagecloud.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee5569a31d091e31cd00cb9945a4729e89d9f17a060fa59d1c08966ca45e1574
|
4
|
+
data.tar.gz: 215414b1842ddcd58fb8674e0f80cf2752f34d426d452d595b03f2253a9b817f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f8d9f99d495d5ab48cc21c7c20a00dd46c01f15e9f14f12b0a97a7ad91e64f686a43d7c3744d794b4f0230a2251de9d3277c693d3c440ad9acba9a10908aa6
|
7
|
+
data.tar.gz: 3723e4f2fd415b00c74c351005040adcf134a5720bbccbde02b563870784df318f5d32e9ed12be8ca59b4082660392ef01f286489087ab2aaae284a1a1b85c0c
|
@@ -5,8 +5,15 @@ module DPL
|
|
5
5
|
class Packagecloud < Provider
|
6
6
|
def check_auth
|
7
7
|
setup_auth
|
8
|
+
timeout_options = {
|
9
|
+
connect_timeout: (options[:connect_timeout] || 60).to_i,
|
10
|
+
read_timeout: (options[:read_timeout] || 60).to_i,
|
11
|
+
write_timeout: (options[:write_timeout] || 180.to_i)
|
12
|
+
}
|
13
|
+
connection = ::Packagecloud::Connection.new("https", "packagecloud.io", "443", timeout_options)
|
8
14
|
begin
|
9
|
-
|
15
|
+
log "Timeout configuration: #{timeout_options.inspect}"
|
16
|
+
@client = ::Packagecloud::Client.new(@creds, "travis-ci dpl #{DPL::VERSION}", connection)
|
10
17
|
rescue ::Packagecloud::UnauthenticatedException
|
11
18
|
error "Could not authenticate to https://packagecloud.io, please check credentials"
|
12
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-packagecloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.2.travis.
|
4
|
+
version: 1.10.2.travis.2993.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.2.travis.
|
19
|
+
version: 1.10.2.travis.2993.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.10.2.travis.
|
26
|
+
version: 1.10.2.travis.2993.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: packagecloud-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|