anvil-cli 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/anvil/builder.rb CHANGED
@@ -27,10 +27,12 @@ class Anvil::Builder
27
27
 
28
28
  req = Net::HTTP::Post.new uri.request_uri
29
29
 
30
- Anvil.append_agent "source=#{source}"
31
-
32
30
  req.initialize_http_header "User-Agent" => Anvil.agent
33
31
 
32
+ Anvil.headers.each do |name, val|
33
+ req.initialize_http_header name, val
34
+ end
35
+
34
36
  req.set_form_data({
35
37
  "buildpack" => options[:buildpack],
36
38
  "cache" => options[:cache],
@@ -38,6 +38,10 @@ class Anvil::Manifest
38
38
  req.initialize_http_header "User-Agent" => Anvil.agent
39
39
  req["User-Agent"] = Anvil.agent
40
40
 
41
+ Anvil.headers.each do |name, val|
42
+ req[name] = val
43
+ end
44
+
41
45
  req.set_form_data({
42
46
  "buildpack" => options[:buildpack],
43
47
  "cache" => @cache_url,
data/lib/anvil/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Anvil
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
data/lib/anvil.rb CHANGED
@@ -10,4 +10,8 @@ module Anvil
10
10
  @@agent = self.agent + " " + str
11
11
  end
12
12
 
13
+ def self.headers
14
+ @headers ||= {}
15
+ end
16
+
13
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anvil-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: progress
16
- requirement: &70292313402880 !ruby/object:Gem::Requirement
16
+ requirement: &70113156927440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70292313402880
24
+ version_requirements: *70113156927440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &70292313402300 !ruby/object:Gem::Requirement
27
+ requirement: &70113156926380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.7
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70292313402300
35
+ version_requirements: *70113156926380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &70292313401760 !ruby/object:Gem::Requirement
38
+ requirement: &70113156925560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.15.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70292313401760
46
+ version_requirements: *70113156925560
47
47
  description: Alternate Heroku build workflow
48
48
  email: david@dollar.io
49
49
  executables: