bugsnag 2.8.7 → 2.8.8

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: 067814066dcb230ce23d76c6a2c6aaac1f558d6a
4
- data.tar.gz: ca9cdab9e2a56282adae7ad665448cb7a56fbe3c
3
+ metadata.gz: 45e5633d92f40d5a0bd96fbf03cbbe5c808ce7ec
4
+ data.tar.gz: 4566d88616c540a6d668cf290416869fdc8af516
5
5
  SHA512:
6
- metadata.gz: 359bf4b141709e8eaa9c69a703c5572970349a536f4b91ca0a62e14ad7e250f9979a99f9f8904ab6f1c144909df40d741886f421b9a77bb1a7053a65d4c389a7
7
- data.tar.gz: 1b4490466b23031df3577d009c4a0482d10d702d85394d501f90577378f99316e89d3ca9304336df411a680cb245d37b0157f3f3014c89aa6324366c70bdfccc
6
+ metadata.gz: de54715b8e69a6c6ce464548d46638e5433561373d59e8efb8c2d1a9149bb07e35767c357ad8eee118af34d307a240116b43eb05fd63c452f0e1798204c4e428
7
+ data.tar.gz: 7548655948694c82aecdc957639e993526c94cf0b0c64c0f51f6831d17080f076a6429f2d9816a36e62da5da55b2cce6488c2552c5b49b785855f8f920a88343
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.8.8
5
+ -----
6
+
7
+ - Pull IP address from action_dispatch.remote_ip if available
8
+
4
9
  2.8.7
5
10
  -----
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.7
1
+ 2.8.8
@@ -15,12 +15,19 @@ module Bugsnag::Middleware
15
15
 
16
16
  # Augment the request tab
17
17
  notification.add_tab(:request, {
18
- :requestId => env["action_dispatch.request_id"],
19
18
  :railsAction => "#{params[:controller]}##{params[:action]}",
20
19
  :params => params
21
20
  })
22
21
  end
23
22
 
23
+ # Use action_dispatch.remote_ip for IP address fields and send request id
24
+ notification.add_tab(:request, {
25
+ :clientIp => env["action_dispatch.remote_ip"],
26
+ :requestId => env["action_dispatch.request_id"]
27
+ })
28
+
29
+ notification.user_id = env["action_dispatch.remote_ip"]
30
+
24
31
  # Add the rails version
25
32
  if notification.configuration.send_environment
26
33
  notification.add_tab(:environment, {
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.8.7
4
+ version: 2.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-03 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json