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 +7 -4
- data/README.md +5 -5
- data/lib/ratchetio/rails/controller_methods.rb +2 -0
- data/lib/ratchetio/version.rb +1 -1
- metadata +2 -2
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
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
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 `
|
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 `
|
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 `
|
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.
|
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
|
data/lib/ratchetio/version.rb
CHANGED
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.
|
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-
|
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:
|