public
Description: Reports exceptions to Hoptoad
Homepage: http://www.hoptoadapp.com/
Clone URL: git://github.com/thoughtbot/hoptoad_notifier.git
Made some quick mods for 1.2.6
jyurek (author)
Wed Jul 30 13:56:37 -0700 2008
commit  188acc9a9b513f1df3f83003b6ea57eef771866b
tree    fe8dddcab7932fb93ffe05603cd6411d7bc9d428
parent  162f287cb53014063a9520d6cea607a9c5d3645e
...
1
2
 
...
 
1
2
0
@@ -1 +1 @@
0
-puts IO.read(File.join(File.dirname(__FILE__), 'INSTALL'))
0
\ No newline at end of file
0
+puts IO.read(File.join(File.dirname(__FILE__), 'INSTALL'))
...
3
4
5
6
7
8
9
 
 
 
 
 
 
 
10
11
12
...
3
4
5
 
 
 
 
6
7
8
9
10
11
12
13
14
15
0
@@ -3,10 +3,13 @@ require 'net/http'
0
 # Plugin for applications to automatically post errors to the Hoptoad of their choice.
0
 module HoptoadNotifier
0
 
0
- IGNORE_DEFAULT = [ActiveRecord::RecordNotFound,
0
- ActionController::RoutingError,
0
- ActionController::InvalidAuthenticityToken,
0
- CGI::Session::CookieStore::TamperedWithCookie]
0
+ IGNORE_DEFAULT = ['ActiveRecord::RecordNotFound',
0
+ 'ActionController::RoutingError',
0
+ 'ActionController::InvalidAuthenticityToken',
0
+ 'CGI::Session::CookieStore::TamperedWithCookie']
0
+
0
+ # Some of these don't exist for Rails 1.2.*, so we have to consider that.
0
+ IGNORE_DEFAULT.map!{|e| Object.const_get(e) rescue nil }
0
   
0
   class << self
0
     attr_accessor :host, :port, :secure, :api_key, :filter_params, :ignore

Comments

    No one has commented yet.