exceptiontrap 1.0.8 → 1.0.9
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 +4 -0
- data/lib/exceptiontrap/config.rb +1 -1
- data/lib/exceptiontrap/rack.rb +1 -1
- data/lib/exceptiontrap/sidekiq.rb +11 -4
- data/lib/exceptiontrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d252f29a471a05c6c99b1d1176a25f0b7304e4
|
4
|
+
data.tar.gz: 7812a4b2d1b365b712293d213257c669ad34ae5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa6466d710ba4c4a3d7bc16f2b4772900f8fa5e9af71420de30a7d8ab1b3dd689a82871a5d121ecde9b55f6e0c827e6aa304622ea6e99662e122f6d3fac5cd25
|
7
|
+
data.tar.gz: cdfd6f93876a46abcdf9f78cc7f07bd519efc19663b50180edc4be3112feca0162034b61db62c6f9d3c32fe665b97986a4e48e7a2e00cb2d2426a282a926063c
|
data/README.md
CHANGED
@@ -27,6 +27,8 @@ Now generate the `config/exceptiontrap.yml` file with
|
|
27
27
|
|
28
28
|
and you should be fine.
|
29
29
|
|
30
|
+
**Note:** Some exceptions are ignored by default, e.g. `RoutingError` and `RecordNotFound` errors. You can change this behavior in the just generated `config/exceptiontrap.yml` file.
|
31
|
+
|
30
32
|
### Rails 2.3
|
31
33
|
|
32
34
|
#### 1a. Install (with Bundler)
|
@@ -53,6 +55,8 @@ Now generate the `config/exceptiontrap.yml` file with
|
|
53
55
|
|
54
56
|
and you should be fine.
|
55
57
|
|
58
|
+
**Note:** Some exceptions are ignored by default, e.g. `RoutingError` and `RecordNotFound` errors. You can change this behavior in the just generated `config/exceptiontrap.yml` file.
|
59
|
+
|
56
60
|
## Information / Further Configuration
|
57
61
|
|
58
62
|
You can find your API-Key by login to your [Exceptiontrap Account](https://exceptiontrap.com/login), select the application and follow the `Setup` Link.
|
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 "Unable to load configuration #{config_file} : #{e.message}"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/exceptiontrap/rack.rb
CHANGED
@@ -9,7 +9,7 @@ module Exceptiontrap
|
|
9
9
|
response = @app.call(env)
|
10
10
|
rescue Exception => exception
|
11
11
|
puts '[Exceptiontrap] Raised Exceptiontrap::Rack::Exception'
|
12
|
-
puts "[Exceptiontrap]
|
12
|
+
puts "[Exceptiontrap] Caught Exception: #{exception.class.name}"
|
13
13
|
data = Exceptiontrap::Data.rack_data(exception, env)
|
14
14
|
Exceptiontrap::Notifier.notify(data)
|
15
15
|
raise
|
@@ -11,8 +11,15 @@ module Exceptiontrap
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
::
|
15
|
-
|
16
|
-
|
14
|
+
if Sidekiq::VERSION < '3'
|
15
|
+
# old behavior
|
16
|
+
Sidekiq.configure_server do |config|
|
17
|
+
config.server_middleware do |chain|
|
18
|
+
chain.add Exceptiontrap::SidekiqException
|
19
|
+
end
|
17
20
|
end
|
18
|
-
|
21
|
+
else
|
22
|
+
Sidekiq.configure_server do |config|
|
23
|
+
config.error_handlers << Proc.new {|ex, context| Exceptiontrap::notify(ex, context.merge(custom_controller: context['class'])) }
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tbuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Exception notifier. The Gem catches your applications exceptions and
|
14
14
|
sends those to the exceptiontrap webservice hosted at https://exceptiontrap.com
|