la_maquina 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/la_maquina/error_notifier/honeybadger_notifier.rb +1 -1
- data/lib/la_maquina/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acd2791bb4c7f4a12ecce84438589889b745a5c5
|
4
|
+
data.tar.gz: 353b65cc5432f9aa0c6263978b70046c21c14d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aafe304080235d4f6f2ca9290c078bbd61408230a70aa22c58ee57006e7305302d0bb04e9c397e19549a26c07d2c1a9d0259427999a8506ed8f6728b9e1a7f8
|
7
|
+
data.tar.gz: a7f50f4b9e986b241f1e8770f96fd0453356b2d17df698faa18373305d9e4790fb3f39b605fd5b5ca0c4101ecc8681b5f01fdf78c7352d034144d6de219d8c14
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ It can either notify LaMaquina about the object itself with `notifies_about :sel
|
|
76
76
|
notified_id = params[:notified_id]
|
77
77
|
notifier_class = params[:notifier_class]
|
78
78
|
|
79
|
-
LaMaquina::Engine.notify notifier_class, id, notified_class
|
79
|
+
LaMaquina::Engine.notify! notifier_class, id, notified_class
|
80
80
|
|
81
81
|
render json: {success: true}
|
82
82
|
end
|
@@ -209,7 +209,7 @@ end
|
|
209
209
|
```
|
210
210
|
If you *don't* care about your exceptions and want to ignore them, there's a notifier you can use, `SilentNotifier`, making that last line in your `config/initializers/la_maquina.rb` be
|
211
211
|
```ruby
|
212
|
-
LaMaquina
|
212
|
+
LaMaquina.error_notifier = LaMaquina::ErrorNotifier::SilentNotifier
|
213
213
|
```
|
214
214
|
|
215
215
|
## Setup
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module LaMaquina
|
2
2
|
module ErrorNotifier
|
3
3
|
class HoneybadgerNotifier < LaMaquina::ErrorNotifier::Base
|
4
|
-
def notify(error, details = {})
|
4
|
+
def self.notify(error, details = {})
|
5
5
|
Honeybadger.notify( :error_class => "LaMaquinaError: #{error.class.name}",
|
6
6
|
:error_message => error.message,
|
7
7
|
:parameters => details
|
data/lib/la_maquina/version.rb
CHANGED