bugsnag 1.8.5 → 1.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/bugsnag/tasks/bugsnag.rake +14 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42328a87ecae5b0b9f8783cb436def3208642965
|
4
|
+
data.tar.gz: 8f0fe5750eda3260e15c8d115c9da1ecd02819df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0be6f3d3356d2c83ba7a27ba561b48e34ed3eca080206404edc0a1a0532f912fbb2a21c8e9d4465ae927e9687c447f71eabd7d38dc5af25efb0bed0d01225967
|
7
|
+
data.tar.gz: ca79d5f904850806c255623f0d0e890596b3e2eb003d8e09ef3436d8e356a605c80d1f4ea4cee6c92d022ab1975985a8e769191aa9f5a540276ab658b38d07b0
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
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 ||=
|
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 = (
|
34
|
-
+ (
|
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(
|
50
|
-
|
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.
|
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-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|