exceptiontrap 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fa0ecce0f4cfc15ed217db5c497d83e592ec9ac
4
- data.tar.gz: 3949c01f6b55bf53d46cba8eacd08777ba290731
3
+ metadata.gz: 92d252f29a471a05c6c99b1d1176a25f0b7304e4
4
+ data.tar.gz: 7812a4b2d1b365b712293d213257c669ad34ae5e
5
5
  SHA512:
6
- metadata.gz: 5d98ae3a2dd332d32d0c87f68962b1c06c90e3dad4fdf9c7c2a84c030899b8f3406d92cb3c89aa8ffa9d0db441bd198d3f9de9c7f1814a7a0b5d79c4d528082a
7
- data.tar.gz: 9fcde0f601de1c96646e14cd3c70d25da2f2146c49e0253bfc83a92841fa3290b6d2a4343c2405a2aba0a24f2432eda6747fb07ad9b17d84e0763d1a02916a6c
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.
@@ -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 Exception.new("Unable to load configuration #{config_file} : #{e.message}")
22
+ raise "Unable to load configuration #{config_file} : #{e.message}"
23
23
  end
24
24
  end
25
25
  end
@@ -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] Catched Exception: #{exception.class.name}"
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
- ::Sidekiq.configure_server do |config|
15
- config.server_middleware do |chain|
16
- chain.add ::Exceptiontrap::SidekiqException
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
- end
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
@@ -1,3 +1,3 @@
1
1
  module Exceptiontrap
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  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.8
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-04-16 00:00:00.000000000 Z
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