errplane 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 < ::ActionController::Base
22
- def test_action
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 'generate_sample_exception' => 'application#test_action'
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("/generate_sample_exception")
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."
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-25 00:00:00.000000000 Z
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: