rollbar 0.11.7 → 0.11.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: b7023de85d236f0fbba32430474796aeac7d795e
4
- data.tar.gz: 9ab46c0f7262e45fc5280cbaf4be584293b3d8c9
3
+ metadata.gz: e34c12766fca0c2c51b5d6259d61bd885d694363
4
+ data.tar.gz: cd6a924aec8457baed0c13ebd42a0fdc74510d1c
5
5
  SHA512:
6
- metadata.gz: df0955081c95d86bc61e141734b3125ef660b5fa23e646a1011387cb21f2c759adf7d732ae0c563a323836093118e20ac43e84e62c00a17fdca03a1a8fadc685
7
- data.tar.gz: d1ab33bad3b7825cebeb9eebb9adbc5e13390f1b6b345e10e502de30afa402e37f02f569a02c718844651ef3cdf1b4883023a2e5a10ef57c54ccada40dcef487
6
+ metadata.gz: 89089b7cdb5258f4b1213f9bcea22e6935833572726a7719e0fa031a030a98d25a4fa8f5fb559f441e4d302e10d3b0d35f6fb385b6ae2dd43c92f1255b39d55d
7
+ data.tar.gz: 2afcf44b731cd0afa68ba8200e3bab04c38da570b5420296fba3dbbf88a883b52c0db2ac86d2c5a969e984a204c74750826fc8c15fb881f547fe2eccec8202e3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.11.8**
4
+ - Make sure the person method exists for the controller before trying to extract person data
5
+
3
6
  **0.11.7**
4
7
  - Remove ActiveRecord railtie requirement introduced in 0.11.6
5
8
 
@@ -13,8 +13,8 @@ module Rollbar
13
13
  @app.call(env)
14
14
  rescue
15
15
  controller = env["action_controller.instance"]
16
- if controller
17
- env['rollbar.person_data'] = controller.try(Rollbar.configuration.person_method)
16
+ if controller and controller.respond_to? Rollbar.configuration.person_method
17
+ env['rollbar.person_data'] = controller.send(Rollbar.configuration.person_method)
18
18
  end
19
19
  raise
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.11.7"
2
+ VERSION = "0.11.8"
3
3
  end
@@ -290,6 +290,14 @@ describe HomeController do
290
290
  user.id.should == 123
291
291
  user.name.should == 'test'
292
292
  end
293
+
294
+ it 'should not fail if the controller doesnt contain the person method' do
295
+ Rollbar.configure do |config|
296
+ config.person_method = 'invalid_method'
297
+ end
298
+
299
+ get 'cause_exception'
300
+ end
293
301
  end
294
302
  end
295
303
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.7
4
+ version: 0.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Rue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json