dpl-heroku 1.10.14 → 1.10.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/version.rb +1 -1
- data/spec/provider/heroku_spec.rb +20 -8
- 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: 59893dfa64b56d7e441c64a5e9fc2cc2ac8fb5941384a6ae06ec1dbb0002d3d2
|
4
|
+
data.tar.gz: 53fffec4ad5d487c8a708fc3489731d97951ac4c5de330a4c7eaeb66a9f6f34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5501e53aad332bd4474631c7a94d5c883ecb72376eccd2045ad85e8f25911a9de99efb5e1c22196c07dd5410d67601267ddf6a134f4ea3f68d90a20fa5dc873e
|
7
|
+
data.tar.gz: 55bd723628e6f69a87c0c6f3cec4488fb6770ffd0c85f4f23ca6fbb8da3c8e25d8fb7a93b29efd790d6ad9f97e0ddb5e87a44932fe5f1c05148b2320cf67a6d6
|
data/lib/dpl/version.rb
CHANGED
@@ -226,14 +226,26 @@ describe DPL::Provider::Heroku, :api do
|
|
226
226
|
provider.trigger_build
|
227
227
|
end
|
228
228
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
229
|
+
context 'when $stdout is a TTY' do
|
230
|
+
before do
|
231
|
+
@old_stdout = $stdout
|
232
|
+
$stdout = StringIO.new
|
233
|
+
allow($stdout).to receive(:isatty).and_return(true)
|
234
|
+
end
|
235
|
+
|
236
|
+
after do
|
237
|
+
$stdout = @old_stdout
|
238
|
+
end
|
239
|
+
|
240
|
+
example do
|
241
|
+
expect(provider).to receive(:log).with('triggering new deployment')
|
242
|
+
expect(provider).to receive(:faraday).at_least(:once).and_return(faraday)
|
243
|
+
expect(provider).to receive(:get_url).and_return 'http://example.com/source.tgz'
|
244
|
+
expect(provider).to receive(:version).and_return 'v1.3.0'
|
245
|
+
expect(provider.context).to receive(:shell).with("curl https://build-output.heroku.com/streams/01234567-89ab-cdef-0123-456789abcdef -H 'Accept: application/vnd.heroku+json; version=3' -H 'User-Agent: dpl/#{DPL::VERSION}'")
|
246
|
+
provider.trigger_build
|
247
|
+
expect(provider.build_id).to eq('01234567-89ab-cdef-0123-456789abcdef')
|
248
|
+
end
|
237
249
|
end
|
238
250
|
|
239
251
|
context 'when $stdout is not a TTY' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-heroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-24 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.10.
|
19
|
+
version: 1.10.15
|
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.
|
26
|
+
version: 1.10.15
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|