exceptiontrap 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -8
- data/lib/exceptiontrap/railtie.rb +1 -1
- data/lib/exceptiontrap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4613ddfba38ec1f735fafa7da8fe332b9d74867dae0e6f3ed0666ef2f14387e
|
4
|
+
data.tar.gz: 24a85363cfac60501748bc86d497107b4932216550d87e3d29610ef6b06cd6fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb493a6883454ee949003ce2d9db020312503ae82b639793fbbf394cc5962de1bf2a08856d617a3c1fea5dab10cae2a1c173fa8b021b7fc719c2cc4c89b3182
|
7
|
+
data.tar.gz: 59e795762b2c85e3a9c4a61536fd3487172d58b2ff4c1d0adf0fb79822801bde8a2c9bbe2bcf3b5a91db22cdf123eca03a1250580fe684b4b6d155fbecf4adc1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
This gem is used to catch and report your Ruby on Rails applications errors and exceptions to the [Exceptiontrap](https://exceptiontrap.com) webservice.
|
4
4
|
|
5
|
-
The gem is compatible with
|
6
|
-
|
7
|
-
- 3, 4, and 5
|
5
|
+
The gem is compatible with Rails 3, 4, and 5
|
8
6
|
|
9
7
|
## Setup
|
10
8
|
|
@@ -24,21 +22,21 @@ Now generate the `config/exceptiontrap.yml` file with
|
|
24
22
|
|
25
23
|
and you should be fine.
|
26
24
|
|
27
|
-
**Note:** Some exceptions are ignored by default, e.g. `RoutingError` and `RecordNotFound` errors. You can change this behavior in the
|
25
|
+
**Note:** Some exceptions are ignored by default, e.g. `RoutingError` and `RecordNotFound` errors. You can change this behavior in the `config/exceptiontrap.yml` file that we just generated.
|
28
26
|
|
29
27
|
## Information / Further Configuration
|
30
28
|
|
31
|
-
You can find your API-Key by
|
29
|
+
You can find your API-Key by logging in to your [Exceptiontrap Account](https://exceptiontrap.com/login). Select the application, and follow the `Setup` link.
|
32
30
|
|
33
31
|
## Integration with Background Jobs and Workers
|
34
32
|
|
35
33
|
### Sidekiq
|
36
34
|
|
37
|
-
Exceptiontrap catches [Sidekiq](http://sidekiq.org) errors automatically
|
35
|
+
Exceptiontrap catches [Sidekiq](http://sidekiq.org) errors automatically. You don't have to set up anything. Easy, right?
|
38
36
|
|
39
37
|
### DelayedJob
|
40
38
|
|
41
|
-
There is no automatic integration into [DelayedJob](https://github.com/collectiveidea/delayed_job) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside
|
39
|
+
There is no automatic integration into [DelayedJob](https://github.com/collectiveidea/delayed_job) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside DelayedJob's `error` hook.
|
42
40
|
|
43
41
|
```ruby
|
44
42
|
class ParanoidNewsletterJob < NewsletterJob
|
@@ -52,7 +50,7 @@ end
|
|
52
50
|
|
53
51
|
### Resque
|
54
52
|
|
55
|
-
automatic integration into [Resque](https://github.com/resque/resque) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside Resque's `on_failure` hook.
|
53
|
+
There is no automatic integration into [Resque](https://github.com/resque/resque) yet. Meanwhile you can let Exceptiontrap notifiy you about errors using its `notify` method inside Resque's `on_failure` hook.
|
56
54
|
|
57
55
|
You can also create a module with Exceptiontrap enabled and integrate this.
|
58
56
|
|
@@ -6,7 +6,7 @@ module Exceptiontrap
|
|
6
6
|
class ExceptiontrapRailtie < Rails::Railtie
|
7
7
|
initializer 'exceptiontrap.middleware' do |app|
|
8
8
|
Exceptiontrap::Config.load(File.join(Rails.root, '/config/exceptiontrap.yml'))
|
9
|
-
|
9
|
+
next if Exceptiontrap::disabled?
|
10
10
|
|
11
11
|
app.config.middleware.insert_after ActionDispatch::ShowExceptions, Exceptiontrap::Rack
|
12
12
|
end
|