airbrake_user_attributes 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
@@ -6,7 +6,7 @@ module Airbrake
|
|
6
6
|
|
7
7
|
def airbrake_request_data_with_user_attributes
|
8
8
|
data = airbrake_request_data_without_user_attributes
|
9
|
-
data[:user_attributes] = current_user_filtered_attributes if respond_to?(:current_user)
|
9
|
+
data[:user_attributes] = current_user_filtered_attributes if respond_to?(:current_user, true)
|
10
10
|
data
|
11
11
|
end
|
12
12
|
alias_method_chain :airbrake_request_data, :user_attributes
|
@@ -22,7 +22,8 @@ module Airbrake
|
|
22
22
|
if url_method = [:user_url, :admin_user_url].detect {|m| respond_to?(m) }
|
23
23
|
attributes[:url] = send(url_method, current_user)
|
24
24
|
end
|
25
|
-
|
25
|
+
# Return all keys with non-blank values
|
26
|
+
attributes.select {|k,v| v.present? }
|
26
27
|
end
|
27
28
|
|
28
29
|
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
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
segments:
|
205
205
|
- 0
|
206
|
-
hash:
|
206
|
+
hash: 817822340806227861
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
none: false
|
209
209
|
requirements:
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash:
|
215
|
+
hash: 817822340806227861
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project:
|
218
218
|
rubygems_version: 1.8.24
|