dpl-releases 1.9.8.travis.2863.6 → 1.9.8.travis.2891.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/releases.rb +8 -2
- data/spec/provider/releases_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ff0a518757b84c0ec95240e3945dd15018722faad3f15e1034847d177c861c
|
4
|
+
data.tar.gz: fb228fcbb6515f1f49ac1f9844d25e54f7fb689df26bb5a24367f82c040ec048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533072a8ac8be812f8e88eab066904b00f50ae958f371b28a5cd131991db1c2c2d0295198b78f21832cd2860cd6683798c3a8cfc60d911ae0af48803e5b11be7
|
7
|
+
data.tar.gz: 95e25dc9bb0561bc4180cec0feec58e276d89106ad64b4bcf7c909a9a824ef94bd8ad1a8469471187baa3620e5fb7083b96754207ae70fe168f3c15231861a13
|
@@ -29,10 +29,16 @@ module DPL
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def api
|
32
|
+
connection_options = {
|
33
|
+
:request => {
|
34
|
+
:timeout => 180,
|
35
|
+
:open_timeout => 180
|
36
|
+
}
|
37
|
+
}
|
32
38
|
if options[:user] and options[:password]
|
33
|
-
@api ||= Octokit::Client.new(:login => options[:user], :password => options[:password])
|
39
|
+
@api ||= Octokit::Client.new(:login => options[:user], :password => options[:password], :connection_options => connection_options)
|
34
40
|
else
|
35
|
-
@api ||= Octokit::Client.new(:access_token => option(:api_key))
|
41
|
+
@api ||= Octokit::Client.new(:access_token => option(:api_key), :connection_options => connection_options)
|
36
42
|
end
|
37
43
|
end
|
38
44
|
|
@@ -30,7 +30,7 @@ describe DPL::Provider::Releases do
|
|
30
30
|
describe "#api" do
|
31
31
|
example "With API key" do
|
32
32
|
api = double(:api)
|
33
|
-
expect(::Octokit::Client).to receive(:new).with(:access_token => '0123445789qwertyuiop0123445789qwertyuiop').and_return(api)
|
33
|
+
expect(::Octokit::Client).to receive(:new).with(:access_token => '0123445789qwertyuiop0123445789qwertyuiop', :connection_options=>{:request=>{:timeout=>180, :open_timeout=>180}}).and_return(api)
|
34
34
|
expect(provider.api).to eq(api)
|
35
35
|
end
|
36
36
|
|
@@ -39,7 +39,7 @@ describe DPL::Provider::Releases do
|
|
39
39
|
provider.options.update(:user => 'foo')
|
40
40
|
provider.options.update(:password => 'bar')
|
41
41
|
|
42
|
-
expect(::Octokit::Client).to receive(:new).with(:login => 'foo', :password => 'bar').and_return(api)
|
42
|
+
expect(::Octokit::Client).to receive(:new).with(:login => 'foo', :password => 'bar', :connection_options=>{:request=>{:timeout=>180, :open_timeout=>180}}).and_return(api)
|
43
43
|
expect(provider.api).to eq(api)
|
44
44
|
end
|
45
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-releases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.8.travis.
|
4
|
+
version: 1.9.8.travis.2891.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dpl
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.9.8.travis.
|
19
|
+
version: 1.9.8.travis.2891.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.9.8.travis.
|
26
|
+
version: 1.9.8.travis.2891.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: octokit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|