dpl-heroku 1.10.13.travis.4159.5 → 1.10.15.travis.5877.5

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: 9c8dacd365b2361cff01613460e4bc6d526ea17274d37027173d1c4cfa40466e
4
- data.tar.gz: 64a0fdbc5b7eb53cdea07d44c61cb55fd7289f04d0c0eb374665f81869327200
3
+ metadata.gz: 9c8c4d021328a2c23e6afd0398f479ce2e11bce67770f3a44b4f6d67d6faf6f0
4
+ data.tar.gz: 4392d99a2c6053d297cb77d9b9cbb35ab113bb4c1e6b79df4d36f11f3f0e23ba
5
5
  SHA512:
6
- metadata.gz: 28caee4377fdd167ff2195ab33086c36a2e715dc3b8057abf12f2cdd100ca59725d7d55892d968ebe0fdb555c467a275bdbcc17820b7a3bce5f1cad488e3d9b8
7
- data.tar.gz: 646200eceb4328f9e3754123fa7a8d68795187fa1ded831a84f17b7c48838b3b62810aad640d3f47f08513e7a9aedf683e9352fb275e4e860054f82ade005b02
6
+ metadata.gz: 4783881200102014f02d65db731ae0e90605421bb76c399e0880b4757eecba4c349adf31a14057977a1c64a78efe1020a936dac88ecada479c96947374ea3e91
7
+ data.tar.gz: f2b6c15f0f567fbeb462929f2772ce82750e9da91a2a36cd15c0dc87a72ef2db366cf7d8fe47b6470d07c118f8f2a6b3bb3a5bb81b49787bacea533dbb9ea8ab
data/lib/dpl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.10.13.travis.4159.5'
2
+ VERSION = '1.10.15.travis.5877.5'
3
3
  end
@@ -226,14 +226,26 @@ describe DPL::Provider::Heroku, :api do
226
226
  provider.trigger_build
227
227
  end
228
228
 
229
- example do
230
- expect(provider).to receive(:log).with('triggering new deployment')
231
- expect(provider).to receive(:faraday).at_least(:once).and_return(faraday)
232
- expect(provider).to receive(:get_url).and_return 'http://example.com/source.tgz'
233
- expect(provider).to receive(:version).and_return 'v1.3.0'
234
- expect(provider.context).to receive(:shell).with("curl -sS 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}'")
235
- provider.trigger_build
236
- expect(provider.build_id).to eq('01234567-89ab-cdef-0123-456789abcdef')
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.13.travis.4159.5
4
+ version: 1.10.15.travis.5877.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-18 00:00:00.000000000 Z
11
+ date: 2020-02-14 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.13.travis.4159.5
19
+ version: 1.10.15.travis.5877.5
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.13.travis.4159.5
26
+ version: 1.10.15.travis.5877.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +225,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  - !ruby/object:Gem::Version
226
226
  version: 1.3.1
227
227
  requirements: []
228
- rubygems_version: 3.0.4
228
+ rubyforge_project:
229
+ rubygems_version: 2.7.7
229
230
  signing_key:
230
231
  specification_version: 4
231
232
  summary: deploy tool