bugsnag 1.8.5 → 1.8.6

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: 21881053e80981565851e9d44faeacbfd2a03d48
4
- data.tar.gz: 28c2f7f42f89dc3a3cc7a52c4626d1c36eefa9c0
3
+ metadata.gz: 42328a87ecae5b0b9f8783cb436def3208642965
4
+ data.tar.gz: 8f0fe5750eda3260e15c8d115c9da1ecd02819df
5
5
  SHA512:
6
- metadata.gz: 54bb086e78b8e5ec1533dbf0ff8549c68e51433cd2276bce73ad25f71555515d5bba8f9799bf51d6b826d4cbb94b1f59c36bd134bf2dfc0678d7e3d01435d4a3
7
- data.tar.gz: 010da7e8bd3a68ddc0fbcb2d2901ab20ce431b69d5fb400ece8d11be1c75ef6db47b9881b41ecdf84a2051bcf370bd9f2363eb87e9bb5ebf6b91e56da449c8d4
6
+ metadata.gz: 0be6f3d3356d2c83ba7a27ba561b48e34ed3eca080206404edc0a1a0532f912fbb2a21c8e9d4465ae927e9687c447f71eabd7d38dc5af25efb0bed0d01225967
7
+ data.tar.gz: ca79d5f904850806c255623f0d0e890596b3e2eb003d8e09ef3436d8e356a605c80d1f4ea4cee6c92d022ab1975985a8e769191aa9f5a540276ab658b38d07b0
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 1.8.6
5
+ -----
6
+
7
+ - proxy support in the bugsnag deploy notification rake task
8
+
4
9
  1.8.5
5
10
  -----
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.5
1
+ 1.8.6
@@ -26,12 +26,14 @@ namespace :bugsnag do
26
26
  Bugsnag.configure(config[releaseStage] ? config[releaseStage] : config) if config
27
27
  end
28
28
 
29
+ config = Bugsnag.configuration
30
+
29
31
  # Fetch and check the api key
30
- api_key ||= Bugsnag.configuration.api_key
32
+ api_key ||= config.api_key
31
33
  raise RuntimeError.new("No API key found when notifying deploy") if !api_key || api_key.empty?
32
34
 
33
- endpoint = (Bugsnag.configuration.use_ssl ? "https://" : "http://") \
34
- + (Bugsnag.configuration.endpoint || Bugsnag::Configuration::DEFAULT_ENDPOINT) \
35
+ endpoint = (config.use_ssl ? "https://" : "http://") \
36
+ + (config.endpoint || Bugsnag::Configuration::DEFAULT_ENDPOINT) \
35
37
  + "/deploy"
36
38
 
37
39
  parameters = {
@@ -46,8 +48,15 @@ namespace :bugsnag do
46
48
  uri = URI.parse(endpoint)
47
49
  req = Net::HTTP::Post.new(uri.path)
48
50
  req.set_form_data(parameters)
49
- http = Net::HTTP.new(uri.host, uri.port)
50
- http.use_ssl = true if Bugsnag.configuration.use_ssl
51
+ http = Net::HTTP.new(
52
+ uri.host,
53
+ uri.port,
54
+ config.proxy_host,
55
+ config.proxy_port,
56
+ config.proxy_user,
57
+ config.proxy_password
58
+ )
59
+ http.use_ssl = true if config.use_ssl
51
60
  http.request(req)
52
61
 
53
62
  rescue Exception => e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.5
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-14 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json