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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6100b41eabce369fbc9cfb2b283bef0007c42e17dc2a5552bd0611e2110a828b
4
- data.tar.gz: a90e57d3fadfbc63b2291fbef0cc6c3ab65374f10f35928f1dcbb3d08f42f6dc
3
+ metadata.gz: ee5569a31d091e31cd00cb9945a4729e89d9f17a060fa59d1c08966ca45e1574
4
+ data.tar.gz: 215414b1842ddcd58fb8674e0f80cf2752f34d426d452d595b03f2253a9b817f
5
5
  SHA512:
6
- metadata.gz: 8c6bb3f94378bc05ecb9af71b5b2e0b6bff0aa9dcb039b535c89321a318af4337583699817849b2b991d698e304ea0ee560887519b25719e352c059a82edef66
7
- data.tar.gz: 2fb32b0d3a246e6a1641878602566a0dde6f2ecd0b13821b151589bcfdaa4c0f0664958d92789947dfb741fb6de52f6f55d09574857d31cf5be022a60f679aee
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
- @client = ::Packagecloud::Client.new(@creds, "travis-ci")
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.2992.6
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.2992.6
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.2992.6
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