errplane 0.1.5 → 0.1.6
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.
- data/lib/errplane/railtie.rb +10 -4
- data/lib/errplane/version.rb +1 -1
- metadata +2 -2
data/lib/errplane/railtie.rb
CHANGED
@@ -17,20 +17,26 @@ module Errplane
|
|
17
17
|
|
18
18
|
class ::ErrplaneSampleException < Exception; end;
|
19
19
|
|
20
|
+
require ::Rails.root.join("app/controllers/application_controller.rb")
|
21
|
+
|
20
22
|
puts "Setting up ApplicationController.."
|
21
|
-
class ::ApplicationController
|
22
|
-
|
23
|
+
class ::ApplicationController
|
24
|
+
prepend_before_filter :raise_sample_exception
|
25
|
+
|
26
|
+
def raise_sample_exception
|
23
27
|
raise ::ErrplaneSampleException.new("If you see this, Errplane is working.")
|
24
28
|
end
|
29
|
+
|
30
|
+
def errplane_dummy_action; end
|
25
31
|
end
|
26
32
|
|
27
33
|
::Rails.application.routes_reloader.execute_if_updated
|
28
34
|
::Rails.application.routes.draw do
|
29
|
-
match
|
35
|
+
match "errplane_test" => 'application#errplane_dummy_action'
|
30
36
|
end
|
31
37
|
|
32
38
|
puts "Generating sample request.."
|
33
|
-
env = ::Rack::MockRequest.env_for("/
|
39
|
+
env = ::Rack::MockRequest.env_for("/errplane_test")
|
34
40
|
::Rails.application.call(env)
|
35
41
|
|
36
42
|
puts "Done. Check your email or http://errplane.com for the exception notice."
|
data/lib/errplane/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: errplane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This gem provides exception reporting with Errplane for Rails 3.x applications.
|
15
15
|
email:
|