bugsnag 2.5.0 → 2.5.1

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
  SHA1:
3
- metadata.gz: 3eb0d383ce8b03fd84cafce08eb5e087a6163fe7
4
- data.tar.gz: 09433fa6a18a8f972a6fc8fbd27327e9820279b3
3
+ metadata.gz: 492b7ad630873a696cfe885ba27c95d652e8bcd2
4
+ data.tar.gz: aabd629b69e8dbfaf6bd528e1e22e42f56cfdc1a
5
5
  SHA512:
6
- metadata.gz: 7b6ce5c4483f4ee3d40b55a624d6f82762e71d42328ee89158cdabdc33addc3b68e935807a3e3194c5bb4161e28c184a9e0a7bd93151b4054333e08231c2cc37
7
- data.tar.gz: fbe2f141ffd43808aedf115121774fbdf2a465bea5be05a9bea456705bc14d1c155665998ae6d3dfb7b327b411f5fe902eafd67b82449b2865ad92710d109190
6
+ metadata.gz: 91b142a6f7107413fc6b10a9764013d5c76181ca1e19fc655bad998a0d5ef26e30d5f6eae7ee11e1cc6c917a7dccf754e59e46afcb00565c6e246064014ada86
7
+ data.tar.gz: 015f3dba4008ae2cdafdb8bc89ff103bf5072d3688f8ee98d9ce40f1e7f1d4b2f98837b20c91ce98775f784a2487c3eb814cd7f90b59b962186ab45a3e06d42a
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.5.1
5
+ -----
6
+ - Send headers through
7
+
4
8
  2.5.0
5
9
  -----
6
10
  - Allow access to the metadata object in before bugsnag notify callbacks
data/README.md CHANGED
@@ -299,7 +299,7 @@ end
299
299
  YourApp::Application.load_tasks
300
300
  ```
301
301
 
302
- **NOTE**: We also configure Bugsnag in the Rakefile, so the tasks that do not load the full
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.0
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.0
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-09-16 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json