ratchetio 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ **0.4.1**
4
+ - Recursively filter files out of the params hash. Thanks to [trisweb](https://github.com/trisweb) for the pull request.
5
+
3
6
  **0.4.0**
4
7
 
5
- - Breaking change to make the "person" more configurable. If you were previously relying on your `current_member` method being called to return the person object, you will need to add the following line to `config/initializers/ratchetio.rb`:
6
-
7
- config.person_method = "current_member"
8
+ - Breaking change to make the "person" more configurable. If you were previously relying on your `current_member` method being called to return the person object, you will need to add the following line to `config/initializers/ratchetio.rb`:
9
+
10
+ config.person_method = "current_member"
8
11
 
9
- - Person id, username, and email method names are now configurable -- see README for details.
12
+ - Person id, username, and email method names are now configurable -- see README for details.
data/README.md CHANGED
@@ -59,22 +59,22 @@ Ratchetio.report_message("Unexpected input", "warning")
59
59
  # default level is "info"
60
60
  Ratchetio.report_message("Login successful")
61
61
 
62
- # can also include additional data as a hash in the final param
62
+ # can also include additional data as a hash in the final param. :body is reserved.
63
63
  Ratchetio.report_message("Login successful", "info", :user => @user)
64
64
  ```
65
65
 
66
66
 
67
67
  ## Person tracking
68
68
 
69
- Ratchet will send information about the current user (called a "person" in Ratchet parlance) along with each error report, when available. This works by calling the `current\_user` controller method. The return value should be an object with an `id` method and, optionally, `username` and `email` methods.
69
+ Ratchet will send information about the current user (called a "person" in Ratchet parlance) along with each error report, when available. This works by calling the `current_user` controller method. The return value should be an object with an `id` method and, optionally, `username` and `email` methods.
70
70
 
71
- If the gem should call a controller method besides `current\_user`, add the following in `config/initializers/ratchetio.rb`:
71
+ If the gem should call a controller method besides `current_user`, add the following in `config/initializers/ratchetio.rb`:
72
72
 
73
73
  ```ruby
74
74
  config.person_method = "my_current_user"
75
75
  ```
76
76
 
77
- If the methods to extract the `id`, `username`, and `email` from the object returned by the `person\_method` have other names, configure like so in `config/initializers/ratchetio.rb`:
77
+ If the methods to extract the `id`, `username`, and `email` from the object returned by the `person_method` have other names, configure like so in `config/initializers/ratchetio.rb`:
78
78
 
79
79
  ```ruby
80
80
  config.person_id_method = "user_id" # default is "id"
@@ -85,7 +85,7 @@ If the methods to extract the `id`, `username`, and `email` from the object retu
85
85
 
86
86
  ## Exception level filters
87
87
 
88
- By default, all exceptions reported through `Ratchetio.report\_exception()` are reporeted at the "error" level, except for the following, which are reported at "warning" level:
88
+ By default, all exceptions reported through `Ratchetio.report_exception()` are reporeted at the "error" level, except for the following, which are reported at "warning" level:
89
89
 
90
90
  - ActiveRecord::RecordNotFound
91
91
  - AbstractController::ActionNotFound
@@ -47,6 +47,8 @@ module Ratchetio
47
47
  rescue
48
48
  filtered[k] = "Uploaded file"
49
49
  end
50
+ elsif v.is_a? Hash
51
+ filtered[k] = ratchetio_filter_params v
50
52
  else
51
53
  filtered[k] = v
52
54
  end
@@ -1,3 +1,3 @@
1
1
  module Ratchetio
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratchetio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-11-07 00:00:00.000000000 Z
12
+ date: 2012-11-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rails plugin to catch and send exceptions to Ratchet.io
15
15
  email: