dpl-heroku 1.10.7.travis.3126.5 → 1.10.7.travis.3128.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: 195b47a8d62e0b4adc644c2d2037cc5b16082538d3ba84f47ffd382fc47d920f
4
- data.tar.gz: 42598e2162d16f8f2a8cf65f4d0a0ee49379bef03635deeba3789fc6a7b0add2
3
+ metadata.gz: 00f272b9c7b48039a0fcda17093f368f747b3e16ae436060e6b10306ea1a849e
4
+ data.tar.gz: 38afdc54fe4a558ef48122e7d70b05ed6f36d8fc546be6d0e2e2a764643e6d49
5
5
  SHA512:
6
- metadata.gz: b1ccd5fb08f4623ce32cf6398fb38342f48fb0e153b7df6bc80aaea6fba39fbd05a3359c8027e3c1554e6dd008f9af50c84c44b46d9734cd267b79eec928f78a
7
- data.tar.gz: 43a519dc004c61574752939e774d8498683317dfcadc6e99bb68ef8a5fdd87f442ed44ab4a93244cddc1b19ef5484e8347da22cd01edb11d5af8f1d08d2f92fb
6
+ metadata.gz: 4bea91736d02b86021c37862e32adf0511123b0cebea21668552154729d2edbf6b52c904b09bb0a17c115d9d1f9befa4cf3f40a290c26b05b2189c5b1edce1a4
7
+ data.tar.gz: bc6d7a1e149da9fe023e682fbb6de78ad7c186253d303231f61484e66da736dfc5d934be37c1b534fe6e84d7e23e1a2604e38e04a1d6554fa641091cb19f164a
@@ -26,7 +26,7 @@ module DPL
26
26
 
27
27
  def upload_archive
28
28
  log "uploading application archive"
29
- context.shell "curl#{curl_options} #{Shellwords.escape(put_url)} -X PUT -H 'Content-Type:' -H 'Accept: application/vnd.heroku+json; version=3' --data-binary @#{archive_file}"
29
+ context.shell "curl#{curl_options} #{Shellwords.escape(put_url)} -X PUT -H 'Content-Type:' -H 'Accept: application/vnd.heroku+json; version=3' -H 'User-Agent: #{user_agent}' --data-binary @#{archive_file}"
30
30
  end
31
31
 
32
32
  def trigger_build
@@ -44,7 +44,7 @@ module DPL
44
44
  if response.success?
45
45
  @build_id = JSON.parse(response.body)['id']
46
46
  output_stream_url = JSON.parse(response.body)['output_stream_url']
47
- context.shell "curl#{curl_options} #{Shellwords.escape(output_stream_url)} -H 'Accept: application/vnd.heroku+json; version=3'"
47
+ context.shell "curl#{curl_options} #{Shellwords.escape(output_stream_url)} -H 'Accept: application/vnd.heroku+json; version=3' -H 'User-Agent: #{user_agent}'"
48
48
  else
49
49
  handle_error_response(response)
50
50
  end
@@ -12,7 +12,10 @@ module DPL
12
12
 
13
13
  def faraday
14
14
  return @conn if @conn
15
- headers = { "Accept" => "application/vnd.heroku+json; version=3" }
15
+ headers = {
16
+ "Accept" => "application/vnd.heroku+json; version=3",
17
+ "User-Agent" => user_agent,
18
+ }
16
19
 
17
20
  if options[:user] and options[:password]
18
21
  # no-op
@@ -0,0 +1,3 @@
1
+ module DPL
2
+ VERSION = '1.10.7.travis.3128.5'
3
+ end
@@ -231,7 +231,7 @@ describe DPL::Provider::Heroku, :api do
231
231
  expect(provider).to receive(:faraday).at_least(:once).and_return(faraday)
232
232
  expect(provider).to receive(:get_url).and_return 'http://example.com/source.tgz'
233
233
  expect(provider).to receive(:version).and_return 'v1.3.0'
234
- 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'")
234
+ 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}'")
235
235
  provider.trigger_build
236
236
  expect(provider.build_id).to eq('01234567-89ab-cdef-0123-456789abcdef')
237
237
  end
@@ -251,7 +251,7 @@ describe DPL::Provider::Heroku, :api do
251
251
  expect(provider).to receive(:faraday).at_least(:once).and_return(faraday)
252
252
  expect(provider).to receive(:get_url).and_return 'http://example.com/source.tgz'
253
253
  expect(provider).to receive(:version).and_return 'v1.3.0'
254
- 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'")
254
+ 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}'")
255
255
  provider.trigger_build
256
256
  expect(provider.build_id).to eq('01234567-89ab-cdef-0123-456789abcdef')
257
257
  end
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.7.travis.3126.5
4
+ version: 1.10.7.travis.3128.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: 2018-11-26 00:00:00.000000000 Z
11
+ date: 2018-11-29 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.7.travis.3126.5
19
+ version: 1.10.7.travis.3128.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.7.travis.3126.5
26
+ version: 1.10.7.travis.3128.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -203,6 +203,7 @@ files:
203
203
  - lib/dpl/provider/heroku/api.rb
204
204
  - lib/dpl/provider/heroku/generic.rb
205
205
  - lib/dpl/provider/heroku/git.rb
206
+ - lib/dpl/version.rb
206
207
  - notes/heroku.md
207
208
  - spec/provider/heroku_spec.rb
208
209
  homepage: https://github.com/travis-ci/dpl