exceptiontrap 1.0.7 → 1.0.8
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.
- checksums.yaml +4 -4
- data/README.md +20 -0
- data/exceptiontrap.gemspec +1 -1
- data/lib/exceptiontrap/config.rb +1 -1
- data/lib/exceptiontrap/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fa0ecce0f4cfc15ed217db5c497d83e592ec9ac
|
4
|
+
data.tar.gz: 3949c01f6b55bf53d46cba8eacd08777ba290731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d98ae3a2dd332d32d0c87f68962b1c06c90e3dad4fdf9c7c2a84c030899b8f3406d92cb3c89aa8ffa9d0db441bd198d3f9de9c7f1814a7a0b5d79c4d528082a
|
7
|
+
data.tar.gz: 9fcde0f601de1c96646e14cd3c70d25da2f2146c49e0253bfc83a92841fa3290b6d2a4343c2405a2aba0a24f2432eda6747fb07ad9b17d84e0763d1a02916a6c
|
data/README.md
CHANGED
@@ -57,6 +57,26 @@ and you should be fine.
|
|
57
57
|
|
58
58
|
You can find your API-Key by login to your [Exceptiontrap Account](https://exceptiontrap.com/login), select the application and follow the `Setup` Link.
|
59
59
|
|
60
|
+
## Integration with Background Jobs and Workers
|
61
|
+
|
62
|
+
### Sidekiq
|
63
|
+
|
64
|
+
Exceptiontrap catches [Sidekiq](http://sidekiq.org) errors automatically, you don't have to do anything. Easy, right?
|
65
|
+
|
66
|
+
### DelayedJob
|
67
|
+
|
68
|
+
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`
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
class ParanoidNewsletterJob < NewsletterJob
|
72
|
+
# ...
|
73
|
+
|
74
|
+
def error(job, exception)
|
75
|
+
Exceptiontrap.notify(exception, custom_controller: job.class.name)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
```
|
79
|
+
|
60
80
|
## Known Issues / Todo
|
61
81
|
|
62
82
|
Optimize and insert the test suite to the gem.
|
data/exceptiontrap.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["tbuehl@itm-labs.de"]
|
10
10
|
s.homepage = "http://exceptiontrap.com"
|
11
11
|
s.summary = %q{Exception notifier, used to report your apps exceptions to the exceptiontrap webservice}
|
12
|
-
s.description = %q{Exception notifier. The Gem catches your applications exceptions and sends those to the exceptiontrap webservice hosted at
|
12
|
+
s.description = %q{Exception notifier. The Gem catches your applications exceptions and sends those to the exceptiontrap webservice hosted at https://exceptiontrap.com}
|
13
13
|
|
14
14
|
s.rubyforge_project = "exceptiontrap"
|
15
15
|
|
data/lib/exceptiontrap/config.rb
CHANGED
@@ -19,7 +19,7 @@ module Exceptiontrap
|
|
19
19
|
@enabled_environments = config['enabledEnvironments']
|
20
20
|
@filtered_params = config['filterParams']
|
21
21
|
rescue Exception => e
|
22
|
-
raise
|
22
|
+
raise Exception.new("Unable to load configuration #{config_file} : #{e.message}")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exceptiontrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tbuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Exception notifier. The Gem catches your applications exceptions and
|
14
|
-
sends those to the exceptiontrap webservice hosted at
|
14
|
+
sends those to the exceptiontrap webservice hosted at https://exceptiontrap.com
|
15
15
|
email:
|
16
16
|
- tbuehl@itm-labs.de
|
17
17
|
executables: []
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project: exceptiontrap
|
67
|
-
rubygems_version: 2.
|
67
|
+
rubygems_version: 2.1.11
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Exception notifier, used to report your apps exceptions to the exceptiontrap
|