dpl 1.8.35.travis.2090.5 → 1.8.35.travis.2098.5
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/heroku/api.rb +2 -2
- data/spec/provider/heroku_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc0ab2903936fab347667cb1ccb6e0e19fdbe6cc
|
4
|
+
data.tar.gz: c4a5cf40fd1d9c5c3b7136da09c1a1c9ea3fa3b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|