dpl 1.8.35.travis.2090.5 → 1.8.35.travis.2098.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b436d3746356cbd45dd77a8b0389201b36458868
4
- data.tar.gz: 62df194d40b762c0976559371b003d28ed6e6ca2
3
+ metadata.gz: fc0ab2903936fab347667cb1ccb6e0e19fdbe6cc
4
+ data.tar.gz: c4a5cf40fd1d9c5c3b7136da09c1a1c9ea3fa3b9
5
5
  SHA512:
6
- metadata.gz: 3b9df1a3ad2e5cddbc497c19bb99662228e86a0e18bbf895ba8450992afb612ef451d8ace9da4b92339d06d797d89ba9423082f37721ba3421b50643d2564bbe
7
- data.tar.gz: 6c0d34af6b7b2a8853451e7076ac7ee89e9cea1ea5ad837ddbe9fe4c5f73e9b036dcdaf5c34b42b4caa5ef984b43b7eb4e263a4e224b20c462f34de6692669f9
6
+ metadata.gz: 87b1730911d16e827b1d95add01c0079df2e25ad8945f664083dc1ae6621483a584d78ad9d41cf60432f9c4e8bfad66b14c5ad81f4f25474e1fcbdf9aa005118
7
+ data.tar.gz: 55608377739dd30d3f0c660575a96fd6dd30a629b69220f2f6939cb6eb98d7ac48a46ed1575b669362250ebb18767aa5b88f3401dbf1b6318897757273a6080a
@@ -81,7 +81,7 @@ module DPL
81
81
 
82
82
  def upload_archive
83
83
  log "uploading application archive"
84
- context.shell "curl #{Shellwords.escape(put_url)} -X PUT -H 'Content-Type:' --data-binary @#{archive_file}"
84
+ context.shell "curl #{Shellwords.escape(put_url)} -X PUT -H 'Content-Type:' -H 'Accept: application/vnd.heroku+json; version=3' --data-binary @#{archive_file}"
85
85
  end
86
86
 
87
87
  def trigger_build
@@ -99,7 +99,7 @@ module DPL
99
99
  if response.success?
100
100
  @build_id = JSON.parse(response.body)['id']
101
101
  output_stream_url = JSON.parse(response.body)['output_stream_url']
102
- context.shell "curl #{Shellwords.escape(output_stream_url)}"
102
+ context.shell "curl #{Shellwords.escape(output_stream_url)} -H 'Accept: application/vnd.heroku+json; version=3'"
103
103
  else
104
104
  handle_error_response(response)
105
105
  end
@@ -189,7 +189,7 @@ describe DPL::Provider::Heroku do
189
189
  expect(provider).to receive(:faraday).at_least(:once).and_return(faraday)
190
190
  expect(provider).to receive(:get_url).and_return 'http://example.com/source.tgz'
191
191
  expect(provider).to receive(:version).and_return 'v1.3.0'
192
- expect(provider.context).to receive(:shell).with('curl https://build-output.heroku.com/streams/01234567-89ab-cdef-0123-456789abcdef')
192
+ 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'")
193
193
  provider.trigger_build
194
194
  expect(provider.build_id).to eq('01234567-89ab-cdef-0123-456789abcdef')
195
195
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.35.travis.2090.5
4
+ version: 1.8.35.travis.2098.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase