super_exception_notifier 2.0.7 → 2.0.8
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/README.rdoc +10 -5
- data/VERSION.yml +1 -1
- data/lib/super_exception_notifier/deprecated_methods.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -90,7 +90,7 @@ If installed as a gem, in your environment.rb:
|
|
90
90
|
== Basic Environment Configuration
|
91
91
|
|
92
92
|
These are settings that are global for SEN wherever it is used in your project.
|
93
|
-
You can tweak other values to your liking, as well. In your environment file,
|
93
|
+
You can tweak other values to your liking, as well. In your environment file or initializer,
|
94
94
|
just set any or all of the following values (defaults are shown):
|
95
95
|
|
96
96
|
ExceptionNotifier.configure_exception_notifier do |config|
|
@@ -104,7 +104,7 @@ just set any or all of the following values (defaults are shown):
|
|
104
104
|
config[:subject_append] = nil
|
105
105
|
# Include which sections of the exception email?
|
106
106
|
config[:sections] = %w(request session environment backtrace)
|
107
|
-
#
|
107
|
+
# In a local environment only use this gem to render, never email
|
108
108
|
#defaults to false - meaning by default it sends email. Setting true will cause it to only render the error pages, and NOT email.
|
109
109
|
config[:skip_local_notification] = true
|
110
110
|
# Example:
|
@@ -116,9 +116,10 @@ just set any or all of the following values (defaults are shown):
|
|
116
116
|
config[:notify_error_classes] = %W( )
|
117
117
|
# What should we do for errors not listed?
|
118
118
|
config[:notify_other_errors] = true
|
119
|
-
# If you set this SEN will
|
120
|
-
config[:git_repo_path] = nil
|
121
|
-
|
119
|
+
# If you set this SEN will attempt to use git blame to discover the person who made the last change to the problem code
|
120
|
+
config[:git_repo_path] = nil # ssh://git@blah.example.com/repo/webapp.git
|
121
|
+
#This is the template root for the exception notification emails. If you want to use your own set your own path.
|
122
|
+
#config[:template_root] = "#{File.dirname(__FILE__)}/../views"
|
122
123
|
end
|
123
124
|
|
124
125
|
== Exceptions Without a Controller
|
@@ -148,6 +149,10 @@ to generate error emails (typically ApplicationController):
|
|
148
149
|
|
149
150
|
class ApplicationController < ActionController::Base
|
150
151
|
include ExceptionNotifiable
|
152
|
+
#Comment out the line below if you want to see the normal rails errors in normal development.
|
153
|
+
alias :rescue_action_locally :rescue_action_in_public if Rails.env == 'development'
|
154
|
+
#self.error_layout = 'errors'
|
155
|
+
#self.exception_notifiable_silent_exceptions = [MethodDisabled, ActionController::RoutingError ]
|
151
156
|
...
|
152
157
|
end
|
153
158
|
|
data/VERSION.yml
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
module SuperExceptionNotifier
|
5
5
|
module DeprecatedMethods
|
6
6
|
@@namespacing = "Better namespacing to allow for Notifiable and ExceptionNotifiable to have similar APIs"
|
7
|
-
@@rails2ruby = "An effort to make this a 'Ruby' Gem and not a
|
7
|
+
@@rails2ruby = "An effort to make this a 'Ruby' Gem and not a strictly 'Rails' Gem"
|
8
8
|
|
9
9
|
def http_error_codes
|
10
10
|
deprecation_warning("http_error_codes", "error_class_status_codes")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_exception_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date:
|
16
|
+
date: 2010-01-28 00:00:00 -05:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|