airbrake_user_attributes 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,12 @@ module Airbrake
6
6
  return {} unless controller.respond_to?(:current_user, true)
7
7
  begin
8
8
  user = controller.send(:current_user)
9
- rescue Authlogic::Session::Activation::NotActivatedError
10
- # When running rake airbrake:test, use the first User.
11
- # Return empty hash if there are no users.
9
+ rescue
10
+ # If something goes wrong (perhaps while running rake airbrake:test),
11
+ # use the first User.
12
12
  user = User.first
13
13
  end
14
+ # Return empty hash if there are no users.
14
15
  return {} unless user && user.respond_to?(:attributes)
15
16
 
16
17
  # Removes auth-related fields
@@ -1,3 +1,3 @@
1
1
  module AirbrakeUserAttributes
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake_user_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-02 00:00:00.000000000 Z
12
+ date: 2012-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  segments:
207
207
  - 0
208
- hash: 2985756114231812327
208
+ hash: -3601092255931277640
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  none: false
211
211
  requirements:
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 2985756114231812327
217
+ hash: -3601092255931277640
218
218
  requirements: []
219
219
  rubyforge_project:
220
220
  rubygems_version: 1.8.24