bugsnag 2.5.0 → 2.5.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/bugsnag/middleware/rack_request.rb +16 -2
- 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: 492b7ad630873a696cfe885ba27c95d652e8bcd2
|
4
|
+
data.tar.gz: aabd629b69e8dbfaf6bd528e1e22e42f56cfdc1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b142a6f7107413fc6b10a9764013d5c76181ca1e19fc655bad998a0d5ef26e30d5f6eae7ee11e1cc6c917a7dccf754e59e46afcb00565c6e246064014ada86
|
7
|
+
data.tar.gz: 015f3dba4008ae2cdafdb8bc89ff103bf5072d3688f8ee98d9ce40f1e7f1d4b2f98837b20c91ce98775f784a2487c3eb814cd7f90b59b962186ab45a3e06d42a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -299,7 +299,7 @@ end
|
|
299
299
|
YourApp::Application.load_tasks
|
300
300
|
```
|
301
301
|
|
302
|
-
|
302
|
+
> Note: We also configure Bugsnag in the Rakefile, so the tasks that do not load the full
|
303
303
|
environment can still notify Bugsnag.
|
304
304
|
|
305
305
|
Standard Ruby Scripts
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.1
|
@@ -25,14 +25,28 @@ module Bugsnag::Middleware
|
|
25
25
|
url << ":#{request.port}" unless [80, 443].include?(request.port)
|
26
26
|
url << Bugsnag::Helpers.cleanup_url(request.fullpath, notification.configuration.params_filters)
|
27
27
|
|
28
|
+
headers = {}
|
29
|
+
|
30
|
+
env.each_pair do |key, value|
|
31
|
+
if key.start_with?("HTTP_")
|
32
|
+
header_key = key[5..-1]
|
33
|
+
elsif ["CONTENT_TYPE", "CONTENT_LENGTH"].include?(key)
|
34
|
+
header_key = key
|
35
|
+
else
|
36
|
+
next
|
37
|
+
end
|
38
|
+
|
39
|
+
headers[header_key.split("_").map {|s| s.capitalize}.join("-")] = value
|
40
|
+
end
|
41
|
+
|
28
42
|
# Add a request tab
|
29
43
|
notification.add_tab(:request, {
|
30
44
|
:url => url,
|
31
45
|
:httpMethod => request.request_method,
|
32
46
|
:params => params.to_hash,
|
33
|
-
:userAgent => request.user_agent,
|
34
47
|
:referer => request.referer,
|
35
|
-
:clientIp => request.ip
|
48
|
+
:clientIp => request.ip,
|
49
|
+
:headers => headers
|
36
50
|
})
|
37
51
|
|
38
52
|
# Add an environment tab
|
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: 2.5.
|
4
|
+
version: 2.5.1
|
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-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|