dpl-heroku 1.10.14 → 1.10.16.travis.6625.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: 9314563ba33e4b6e46c4d2d79b31c944110cd5c35491f4aa71e156808299140a
4
- data.tar.gz: 4225be1d4e98efc30399972efc96817b59d7d22669e3ead63f8a0307092d5843
3
+ metadata.gz: a4e8a5dd5460198f76e58935a7e420e301eed6da5308e45886e476fd0978d933
4
+ data.tar.gz: 3758243ba671354093342e74c0b8e8c1104291e46a713e720e83c1d96fc41347
5
5
  SHA512:
6
- metadata.gz: 9443f2eedda233c401fa0a2366a9cdfa868fe0cd7dde39804ee3ec9716b74491a09e9de069447cca740ae5554f6d746987ab8bbf6fd19ce9d0edb0f1e05bc54d
7
- data.tar.gz: 060c5da850628d6ffef2b2e41cf1ddc638090cd04ae4ff5312bb4420e6b102a955f3d0ca7e8903e061495c096818596a97926b6b26745546d7a005f529a8de9e
6
+ metadata.gz: 21d1083b88b51673d5befd7c0f9b026fcfd532ec37232e4257dd265b6c9e7400d6539c0fedb77fb2408e3607fd38cec8ac71f42da131f91cd48145ac9264309f
7
+ data.tar.gz: 142e058e6c21a62fe7c13172ebe93d0811fdf02471d314d7ada1875f7115c279bbe27ab5bc1ef92c887462ee0a8c06569f5329201c887b2cf323c706a819e712
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.10.14'
2
+ VERSION = '1.10.16.travis.6625.6'
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.14
4
+ version: 1.10.16.travis.6625.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: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-11-13 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.14
19
+ version: 1.10.16.travis.6625.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.14
26
+ version: 1.10.16.travis.6625.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -221,13 +221,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
221
  version: '2.2'
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - ">="
224
+ - - ">"
225
225
  - !ruby/object:Gem::Version
226
- version: '0'
226
+ version: 1.3.1
227
227
  requirements: []
228
- rubygems_version: 3.0.3
228
+ rubygems_version: 3.0.8
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: deploy tool
232
- test_files:
233
- - spec/provider/heroku_spec.rb
232
+ test_files: []