super_exception_notifier 3.0.13 → 3.0.14
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.
- checksums.yaml +7 -0
- data/CHANGELOG.txt +9 -0
- data/{MIT-LICENSE → LICENSE} +0 -0
- data/README.md +189 -0
- data/Rakefile +40 -0
- data/lib/exception_notification.rb +3 -0
- data/lib/exception_notification/exception_notifiable.rb +3 -3
- data/lib/exception_notification/notifiable.rb +8 -7
- data/lib/exception_notification/version.rb +5 -0
- data/rails/init.rb +5 -2
- metadata +85 -63
- data/README +0 -120
- data/VERSION.yml +0 -5
- data/init.rb +0 -1
- data/super_exception_notifier.gemspec +0 -113
- data/test/exception_notifiable_test.rb +0 -34
- data/test/exception_notifier_helper_test.rb +0 -68
- data/test/exception_notifier_test.rb +0 -41
- data/test/exception_notify_functional_test.rb +0 -139
- data/test/mocks/controllers.rb +0 -89
- data/test/notifiable_test.rb +0 -79
- data/test/test_helper.rb +0 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
data.tar.gz: 33fcc250ec9acc3acd3862d48e412e88790118af
|
4
|
+
metadata.gz: 0cf3c1a7f30e4c604bfa87fa2d69fefaa1b4875a
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: a229c57c4b248277c082220909fbd1782539299836a90469b21af76a7ad79e83f049fbb80d57a7331fa98fa8d47e6908767243947ed071205a0bd440c317942c
|
7
|
+
metadata.gz: 67b28b872173b7c3658796651251266fe75ab72f220ed862914d29e342ee403ddf462ada880b294583ca028832531ee0ccc441f17f1a670d31fe2f277dc09cdf
|
data/CHANGELOG.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
2014-01-18 v3.0.14
|
2
|
+
- Fixed Notifiable class by Peter Boling
|
3
|
+
- Fixed ExceptionNotifiable class by Bradford Folkens
|
4
|
+
- Modernized lots of bits and pieces by Peter Boling
|
5
|
+
- All tests now pass in Rails 2.3.18 and Ruby 1.8.7-p374 by Peter Boling
|
6
|
+
- Fixes typos
|
7
|
+
- Switched to Bundler; Removed Jeweler
|
8
|
+
- Readme makeover
|
9
|
+
|
1
10
|
2010-06-30 v3.0.13
|
2
11
|
- Fixed homepage in Rakefile, noted Rails 3 incompatibility in README.
|
3
12
|
|
data/{MIT-LICENSE → LICENSE}
RENAMED
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
# Super Exception Notifier
|
2
|
+
|
3
|
+
**NOTE: This is a legacy gem, for rails 2.x**
|
4
|
+
|
5
|
+
The Super Exception Notifier (SEN) gem provides a mailer object and a default set of templates for sending email notifications when errors occur in a Rails application, as well as a default set of error page templates to render based on the status code assigned to an error.
|
6
|
+
|
7
|
+
| Project | Super Exception Notifier |
|
8
|
+
|------------------------ | ----------------- |
|
9
|
+
| gem name | super_exception_notifier |
|
10
|
+
| license | MIT |
|
11
|
+
| moldiness | [](http://stillmaintained.com/pboling/super_exception_notifier) |
|
12
|
+
| version | [](http://badge.fury.io/rb/super_exception_notifier) |
|
13
|
+
| dependencies | [](https://gemnasium.com/pboling/super_exception_notifier) |
|
14
|
+
| code quality | [](https://codeclimate.com/github/pboling/super_exception_notifier) |
|
15
|
+
| continuous integration | [](https://travis-ci.org/pboling/super_exception_notifier) |
|
16
|
+
| test coverage | [](https://coveralls.io/r/pboling/super_exception_notifier) |
|
17
|
+
| homepage | [https://github.com/pboling/super_exception_notifier][homepage] |
|
18
|
+
| documentation | [http://rdoc.info/github/pboling/super_exception_notifier/frames][documentation] |
|
19
|
+
| author | [Peter Boling](https://coderbits.com/pboling) |
|
20
|
+
| Spread ~♡ⓛⓞⓥⓔ♡~ | [](http://coderwall.com/pboling) |
|
21
|
+
|
22
|
+
## Summary
|
23
|
+
|
24
|
+
The gem is configurable, allowing programmers to customize (settings are per environment or per class):
|
25
|
+
|
26
|
+
* the sender address of the email
|
27
|
+
* the recipient addresses
|
28
|
+
* text used to prepend and append the subject line
|
29
|
+
* the HTTP status codes to send emails for
|
30
|
+
* the error classes to send emails for
|
31
|
+
* alternatively, the error classes to not send emails for
|
32
|
+
* whether to send error emails or just render without sending anything
|
33
|
+
* the HTTP status and status code that gets rendered with specific errors
|
34
|
+
* the view path to the error page templates
|
35
|
+
* custom errors, with custom error templates
|
36
|
+
* fine-grained customization of error layouts (or no layout)
|
37
|
+
* get error notification for errors that occur in the console, using notifiable method
|
38
|
+
* Hooks into `git blame` output so you can get an idea of who (may) have introduced the bug
|
39
|
+
* Hooks into other website services (e.g. you can send exceptions to to Switchub.com)
|
40
|
+
* Specify which level of notification you would like with an array of optional styles of notification:
|
41
|
+
[:render, :email, :web_hooks]
|
42
|
+
* Can notify of errors occurring in any method in any class in Ruby by wrapping the method call like this:
|
43
|
+
notifiable { method }
|
44
|
+
* Can notify of errors in Rake tasks using 'NotifiedTask.new' instead of 'task' when writing tasks
|
45
|
+
* Works with Hoptoad Notifier, so you can notify via SEN and/or Hoptoad for any particular errors.
|
46
|
+
* Tested with Rails 2.3.x, should work with Rails 2.2.x, and is apparently **not compatible with Rails 3 or 4**.
|
47
|
+
|
48
|
+
The email includes information about the current request, session, and environment, and also gives a backtrace of the exception.
|
49
|
+
|
50
|
+
This gem is based on the wonderful exception_notification plugin created by Jamis Buck. I have modified it extensively and merged many of the improvements from a dozen or so other forks. It remains a (mostly) drop in replacement with greatly extended functionality and customization options. I keep it up to date with the work on the core team's
|
51
|
+
branch.
|
52
|
+
|
53
|
+
The venerable [original is here](http://github.com/rails/exception_notification)
|
54
|
+
|
55
|
+
The current version of this gem is a git fork of the original and has been updated to include the latest improvements from the original, and many improvements from the other forks on github. I merge them in when I have time, and when the changes fit nicely with the enhancements I have already made.
|
56
|
+
|
57
|
+
This fork of Exception Notifier is (or was at some point) in production use on several large websites (top 5000).
|
58
|
+
|
59
|
+
## Installation as RubyGem
|
60
|
+
|
61
|
+
[sudo] gem install super_exception_notifier
|
62
|
+
|
63
|
+
More Installation Options are here: http://wiki.github.com/pboling/exception_notification/installation
|
64
|
+
|
65
|
+
## Configuration as RubyGem in Rails 2.x
|
66
|
+
|
67
|
+
(UPGRADE NOTE: The name of the lib changed from SEN version 2.x to 3.x)
|
68
|
+
|
69
|
+
config.gem 'super_exception_notifier', :lib => "exception_notification"
|
70
|
+
|
71
|
+
More Configuration Options are here: http://wiki.github.com/pboling/exception_notification/configuration
|
72
|
+
|
73
|
+
## Configuration In Environment (Initializer)
|
74
|
+
|
75
|
+
(UPGRADE NOTE: The class invoked here changed from SEN version 2.x to 3.x)
|
76
|
+
|
77
|
+
ExceptionNotification::Notifier.configure_exception_notifier do |config|
|
78
|
+
config[:app_name] = "[MYAPP]"
|
79
|
+
config[:sender_address] = "super.exception.notifier@example.com"
|
80
|
+
config[:exception_recipients] = [] # You need to set at least one recipient if you want to get the notifications
|
81
|
+
# In a local environment only use this gem to render, never email
|
82
|
+
#defaults to false - meaning by default it sends email. Setting true will cause it to only render the error pages, and NOT email.
|
83
|
+
config[:skip_local_notification] = true
|
84
|
+
# Error Notification will be sent if the HTTP response code for the error matches one of the following error codes
|
85
|
+
config[:notify_error_codes] = %W( 405 500 503 )
|
86
|
+
# Error Notification will be sent if the error class matches one of the following error classes
|
87
|
+
config[:notify_error_classes] = %W( )
|
88
|
+
# What should we do for errors not listed?
|
89
|
+
config[:notify_other_errors] = true
|
90
|
+
# If you set this SEN will attempt to use git blame to discover the person who made the last change to the problem code
|
91
|
+
config[:git_repo_path] = nil # ssh://git@blah.example.com/repo/webapp.git
|
92
|
+
end
|
93
|
+
|
94
|
+
More Configuration Options: [http://wiki.github.com/pboling/exception_notification/advanced-environment-configuration](http://wiki.github.com/pboling/exception_notification/advanced-environment-configuration)
|
95
|
+
|
96
|
+
## Handling Errors in Request Cycle
|
97
|
+
|
98
|
+
1. Include the ExceptionNotification::ExceptionNotifiable mixin in whichever controller you want to generate error emails (typically ApplicationController) as below.
|
99
|
+
|
100
|
+
2. Specify the email recipients in your environment as above. (You may have already done this in the "Configuration in Environment (Initializer)" section above):
|
101
|
+
|
102
|
+
3. Make sure you have your ActionMailer server settings correct if you are using the e-mail features.
|
103
|
+
|
104
|
+
4. That’s it! The defaults take care of the rest.
|
105
|
+
|
106
|
+
Code:
|
107
|
+
|
108
|
+
class ApplicationController < ActionController::Base
|
109
|
+
############################################################
|
110
|
+
# ERROR HANDLING et Foo
|
111
|
+
include ExceptionNotification::ExceptionNotifiable
|
112
|
+
#Comment out the line below if you want to see the normal rails errors in normal development.
|
113
|
+
alias :rescue_action_locally :rescue_action_in_public if Rails.env == 'development'
|
114
|
+
#self.error_layout = 'errors'
|
115
|
+
self.exception_notifiable_verbose = true #SEN uses logger.info, so won't be verbose in production
|
116
|
+
self.exception_notifiable_pass_through = :hoptoad # requires the standard hoptoad gem to be installed, and setup normally
|
117
|
+
self.exception_notifiable_silent_exceptions = [Acl9::AccessDenied, MethodDisabled, ActionController::RoutingError ]
|
118
|
+
#specific errors can be handled by something else:
|
119
|
+
rescue_from 'Acl9::AccessDenied', :with => :access_denied
|
120
|
+
# END ERROR HANDLING
|
121
|
+
############################################################
|
122
|
+
...
|
123
|
+
end
|
124
|
+
|
125
|
+
ExceptionNotification::Notifier.configure_exception_notifier do |config|
|
126
|
+
config[:exception_recipients] = %w(joe@example.com bill@example.com)
|
127
|
+
end
|
128
|
+
|
129
|
+
[http://wiki.github.com/pboling/exception_notification/exceptions-inside-request-cycle](http://wiki.github.com/pboling/exception_notification/exceptions-inside-request-cycle)
|
130
|
+
|
131
|
+
## Advanced Configuration
|
132
|
+
|
133
|
+
There is a lot more you can configure, and do:
|
134
|
+
|
135
|
+
[http://wiki.github.com/pboling/exception_notification/](http://wiki.github.com/pboling/exception_notification/)
|
136
|
+
|
137
|
+
|
138
|
+
## Authors
|
139
|
+
|
140
|
+
[Peter Boling][peterboling] is the original author of the code, and current maintainer.
|
141
|
+
|
142
|
+
## Contributors
|
143
|
+
|
144
|
+
See the [Network View](https://github.com/pboling/super_exception_notifier/network) and the [CHANGELOG](https://github.com/pboling/super_exception_notifier/blob/master/CHANGELOG.txt)
|
145
|
+
|
146
|
+
## Contributing
|
147
|
+
|
148
|
+
1. Fork it
|
149
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
150
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
151
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
152
|
+
5. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
153
|
+
6. Create new Pull Request
|
154
|
+
|
155
|
+
## Versioning
|
156
|
+
|
157
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver].
|
158
|
+
Violations of this scheme should be reported as bugs. Specifically,
|
159
|
+
if a minor or patch version is released that breaks backward
|
160
|
+
compatibility, a new version should be immediately released that
|
161
|
+
restores compatibility. Breaking changes to the public API will
|
162
|
+
only be introduced with new major versions.
|
163
|
+
|
164
|
+
As a result of this policy, you can (and should) specify a
|
165
|
+
dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
166
|
+
|
167
|
+
For example:
|
168
|
+
|
169
|
+
spec.add_dependency 'super_exception_notifier', '~> 3.0.14'
|
170
|
+
|
171
|
+
## References
|
172
|
+
|
173
|
+
* [Source Code](http://github.com/pboling/super_exception_notifier)
|
174
|
+
* [A fork from the my original source on Google Code](https://github.com/vitaliel/super_exception_notifier)
|
175
|
+
* [The Original Source on Google Code](http://super-exception-notifier.googlecode.com/svn/trunk/super_exception_notifier/)
|
176
|
+
* [Getting it to work on Stack Overflow & my response](http://stackoverflow.com/questions/1738017/getting-super-exception-notifier-to-work)
|
177
|
+
* [Getting it to work on PasteBin](http://pastebin.com/pyHQjN84)
|
178
|
+
|
179
|
+
## Legal
|
180
|
+
|
181
|
+
* MIT License - See LICENSE file in this project
|
182
|
+
* Copyright (c) 2008-2014 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
183
|
+
|
184
|
+
[semver]: http://semver.org/
|
185
|
+
[pvc]: http://docs.rubygems.org/read/chapter/16#page74
|
186
|
+
[railsbling]: http://www.railsbling.com
|
187
|
+
[peterboling]: http://www.peterboling.com
|
188
|
+
[documentation]: http://rdoc.info/github/pboling/super_exception_notifier/frames
|
189
|
+
[homepage]: https://github.com/pboling/super_exception_notifier
|
data/Rakefile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require 'rake'
|
4
|
+
require 'rake/testtask'
|
5
|
+
require 'rake/rdoctask'
|
6
|
+
|
7
|
+
desc 'Default: run unit tests.'
|
8
|
+
task :default => :test
|
9
|
+
|
10
|
+
desc 'Test exception_notifiable gem.'
|
11
|
+
Rake::TestTask.new do |t|
|
12
|
+
t.libs << "test"
|
13
|
+
t.test_files = FileList['test/*_test.rb']
|
14
|
+
t.verbose = true
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'reek/rake/task'
|
18
|
+
Reek::Rake::Task.new do |t|
|
19
|
+
t.fail_on_error = true
|
20
|
+
t.verbose = false
|
21
|
+
t.source_files = 'lib/**/*.rb'
|
22
|
+
end
|
23
|
+
|
24
|
+
require 'roodi'
|
25
|
+
require 'roodi_task'
|
26
|
+
RoodiTask.new do |t|
|
27
|
+
t.verbose = false
|
28
|
+
end
|
29
|
+
|
30
|
+
desc 'Generate documentation for exception_notifiable gem.'
|
31
|
+
require File.expand_path('../lib/exception_notification/version', __FILE__)
|
32
|
+
Rake::RDocTask.new do |rdoc|
|
33
|
+
rdoc.rdoc_dir = 'rdoc'
|
34
|
+
rdoc.title = "exception_notifiable #{ExceptionNotification::VERSION}"
|
35
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
36
|
+
rdoc.rdoc_files.include('README.md')
|
37
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
38
|
+
end
|
39
|
+
|
40
|
+
Bundler::GemHelper.install_tasks
|
@@ -1,5 +1,8 @@
|
|
1
1
|
require "action_mailer"
|
2
|
+
|
2
3
|
module ExceptionNotification
|
4
|
+
require 'exception_notification/version'
|
5
|
+
|
3
6
|
autoload :ExceptionNotifiable, 'exception_notification/exception_notifiable'
|
4
7
|
autoload :Notifiable, 'exception_notification/notifiable'
|
5
8
|
autoload :Notifier, 'exception_notification/notifier'
|
@@ -132,7 +132,7 @@ module ExceptionNotification::ExceptionNotifiable
|
|
132
132
|
perform_exception_notify_mailing(exception, data, nil, the_blamed, verbose, rejected_sections) if send_email
|
133
133
|
# Send Web Hook requests
|
134
134
|
ExceptionNotification::HooksNotifier.deliver_exception_to_web_hooks(ExceptionNotification::Notifier.config, exception, self, request, data, the_blamed) if send_web_hooks
|
135
|
-
pass_it_on(exception, ENV)
|
135
|
+
pass_it_on(exception, ENV, verbose)
|
136
136
|
end
|
137
137
|
to_return
|
138
138
|
end
|
@@ -152,7 +152,7 @@ module ExceptionNotification::ExceptionNotifiable
|
|
152
152
|
else
|
153
153
|
notify_and_render_error_template(status_code, request, exception, ExceptionNotification::Notifier.get_view_path_for_status_code(status_code, verbose), verbose)
|
154
154
|
end
|
155
|
-
pass_it_on(exception, ENV, request, params, session)
|
155
|
+
pass_it_on(exception, ENV, request, params, session, verbose)
|
156
156
|
end
|
157
157
|
|
158
158
|
def notify_and_render_error_template(status_cd, request, exception, file_path, verbose = false)
|
@@ -182,7 +182,7 @@ module ExceptionNotification::ExceptionNotifiable
|
|
182
182
|
# some integration with hoptoad or other exception handler
|
183
183
|
# is done by tha alias method chain on:
|
184
184
|
# rescue_action_locally
|
185
|
-
def pass_it_on(exception, env, request = {:params => {}}, params = {}, session = {})
|
185
|
+
def pass_it_on(exception, env, request = {:params => {}}, params = {}, session = {}, verbose = false)
|
186
186
|
begin
|
187
187
|
case self.class.exception_notifiable_pass_through
|
188
188
|
when :hoptoad then
|
@@ -55,7 +55,7 @@ module ExceptionNotification::Notifiable
|
|
55
55
|
private
|
56
56
|
|
57
57
|
def environment_is_noisy?
|
58
|
-
|
58
|
+
self.notifiable_noisy_environments.include?(Rails.env)
|
59
59
|
end
|
60
60
|
|
61
61
|
def notification_level_sends_email?
|
@@ -72,11 +72,12 @@ module ExceptionNotification::Notifiable
|
|
72
72
|
data = get_exception_data
|
73
73
|
# With ExceptionNotifiable you have an inherent request, and using a status code makes sense.
|
74
74
|
# With Notifiable class to wrap around everything that doesn't have a request,
|
75
|
+
request = nil
|
75
76
|
# the errors you want to be notified of need to be specified either positively or negatively
|
76
|
-
# 1. positive eg. set
|
77
|
-
# set
|
77
|
+
# 1. positive eg. set ExceptionNotification::Notifier.config[:notify_error_classes] to an array of classes
|
78
|
+
# set ExceptionNotification::Notifier.config[:notify_other_errors] to false
|
78
79
|
# 1. negative eg. set Klass.silent_exceptions to the ones to keep quiet
|
79
|
-
# set
|
80
|
+
# set ExceptionNotification::Notifier.config[:notify_other_errors] to true
|
80
81
|
status_code = nil
|
81
82
|
#We only send email if it has been configured in environment
|
82
83
|
send_email = should_email_on_exception?(exception, status_code, verbose)
|
@@ -89,10 +90,10 @@ module ExceptionNotification::Notifiable
|
|
89
90
|
perform_exception_notify_mailing(exception, data, nil, the_blamed, verbose, rejected_sections) if send_email
|
90
91
|
# Send Web Hook requests
|
91
92
|
ExceptionNotification::HooksNotifier.deliver_exception_to_web_hooks(ExceptionNotification::Notifier.config, exception, self, request, data, the_blamed) if send_web_hooks
|
92
|
-
pass_it_on(exception)
|
93
|
+
pass_it_on(exception, request, verbose)
|
93
94
|
end
|
94
95
|
|
95
|
-
def pass_it_on(exception, request = nil)
|
96
|
+
def pass_it_on(exception, request = nil, verbose = false)
|
96
97
|
begin
|
97
98
|
request ||= {:params => {}}
|
98
99
|
case self.class.notifiable_pass_through
|
@@ -110,7 +111,7 @@ module ExceptionNotification::Notifiable
|
|
110
111
|
end
|
111
112
|
|
112
113
|
def is_local? #like asking is_silent?
|
113
|
-
self.notifiable_noisy_environments.include?(Rails.env)
|
114
|
+
!self.notifiable_noisy_environments.include?(Rails.env)
|
114
115
|
end
|
115
116
|
|
116
117
|
end
|
data/rails/init.rb
CHANGED
@@ -2,9 +2,12 @@ require 'rake'
|
|
2
2
|
require 'rake/tasklib'
|
3
3
|
require "action_mailer"
|
4
4
|
|
5
|
-
require "exception_notification/notified_task"
|
5
|
+
require "exception_notification/notified_task"
|
6
6
|
|
7
|
-
require "exception_notification"
|
7
|
+
require "exception_notification"
|
8
|
+
|
9
|
+
# To load the autoloads.
|
10
|
+
ExceptionNotification
|
8
11
|
|
9
12
|
Object.class_eval do
|
10
13
|
include ExceptionNotification::Notifiable
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_exception_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
- 13
|
10
|
-
version: 3.0.13
|
4
|
+
version: 3.0.14
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Peter Boling
|
@@ -19,37 +13,88 @@ autorequire:
|
|
19
13
|
bindir: bin
|
20
14
|
cert_chain: []
|
21
15
|
|
22
|
-
date:
|
23
|
-
default_executable:
|
16
|
+
date: 2014-01-19 00:00:00 Z
|
24
17
|
dependencies:
|
25
18
|
- !ruby/object:Gem::Dependency
|
26
19
|
name: actionmailer
|
27
20
|
prerelease: false
|
28
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
22
|
requirements:
|
31
|
-
-
|
23
|
+
- &id008
|
24
|
+
- ">="
|
32
25
|
- !ruby/object:Gem::Version
|
33
|
-
hash: 3
|
34
|
-
segments:
|
35
|
-
- 0
|
36
26
|
version: "0"
|
27
|
+
- - <
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: "4"
|
37
30
|
type: :runtime
|
38
31
|
version_requirements: *id001
|
39
32
|
- !ruby/object:Gem::Dependency
|
40
|
-
name:
|
33
|
+
name: rbx-require-relative
|
41
34
|
prerelease: false
|
42
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
36
|
requirements:
|
45
|
-
- -
|
37
|
+
- - ~>
|
46
38
|
- !ruby/object:Gem::Version
|
47
|
-
|
48
|
-
|
49
|
-
- 0
|
50
|
-
version: "0"
|
51
|
-
type: :runtime
|
39
|
+
version: 0.0.9
|
40
|
+
type: :development
|
52
41
|
version_requirements: *id002
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rails
|
44
|
+
prerelease: false
|
45
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: "2.3"
|
50
|
+
- - <
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: "3"
|
53
|
+
type: :development
|
54
|
+
version_requirements: *id003
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rdoc
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: "3.12"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id004
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: rake
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0.8"
|
73
|
+
- - <
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: "0.9"
|
76
|
+
type: :development
|
77
|
+
version_requirements: *id005
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: reek
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.2.13
|
86
|
+
type: :development
|
87
|
+
version_requirements: *id006
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: roodi
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 2.2.0
|
96
|
+
type: :development
|
97
|
+
version_requirements: *id007
|
53
98
|
description: |-
|
54
99
|
Allows customization of:
|
55
100
|
* Specify which level of notification you would like with an array of optional styles of notification (email, webhooks)
|
@@ -78,14 +123,10 @@ executables: []
|
|
78
123
|
extensions: []
|
79
124
|
|
80
125
|
extra_rdoc_files:
|
81
|
-
- README
|
82
|
-
files:
|
83
126
|
- CHANGELOG.txt
|
84
|
-
-
|
85
|
-
- README
|
86
|
-
|
87
|
-
- init.rb
|
88
|
-
- lib/exception_notification.rb
|
127
|
+
- LICENSE
|
128
|
+
- README.md
|
129
|
+
files:
|
89
130
|
- lib/exception_notification/consider_local.rb
|
90
131
|
- lib/exception_notification/custom_exception_classes.rb
|
91
132
|
- lib/exception_notification/custom_exception_methods.rb
|
@@ -99,6 +140,8 @@ files:
|
|
99
140
|
- lib/exception_notification/notified_task.rb
|
100
141
|
- lib/exception_notification/notifier.rb
|
101
142
|
- lib/exception_notification/notifier_helper.rb
|
143
|
+
- lib/exception_notification/version.rb
|
144
|
+
- lib/exception_notification.rb
|
102
145
|
- lib/views/exception_notification/notifier/_backtrace.html.erb
|
103
146
|
- lib/views/exception_notification/notifier/_environment.html.erb
|
104
147
|
- lib/views/exception_notification/notifier/_inspect_model.html.erb
|
@@ -121,17 +164,14 @@ files:
|
|
121
164
|
- rails/app/views/exception_notifiable/503.html
|
122
165
|
- rails/app/views/exception_notifiable/method_disabled.html.erb
|
123
166
|
- rails/init.rb
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
- test/exception_notify_functional_test.rb
|
129
|
-
- test/mocks/controllers.rb
|
130
|
-
- test/notifiable_test.rb
|
131
|
-
- test/test_helper.rb
|
132
|
-
has_rdoc: true
|
167
|
+
- LICENSE
|
168
|
+
- README.md
|
169
|
+
- CHANGELOG.txt
|
170
|
+
- Rakefile
|
133
171
|
homepage: http://github.com/pboling/exception_notification
|
134
|
-
licenses:
|
172
|
+
licenses:
|
173
|
+
- MIT
|
174
|
+
metadata: {}
|
135
175
|
|
136
176
|
post_install_message:
|
137
177
|
rdoc_options:
|
@@ -139,35 +179,17 @@ rdoc_options:
|
|
139
179
|
require_paths:
|
140
180
|
- lib
|
141
181
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
182
|
requirements:
|
144
|
-
-
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
hash: 3
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
version: "0"
|
183
|
+
- *id008
|
150
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
185
|
requirements:
|
153
|
-
-
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
hash: 3
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
version: "0"
|
186
|
+
- *id008
|
159
187
|
requirements: []
|
160
188
|
|
161
189
|
rubyforge_project:
|
162
|
-
rubygems_version:
|
190
|
+
rubygems_version: 2.0.14
|
163
191
|
signing_key:
|
164
|
-
specification_version:
|
192
|
+
specification_version: 4
|
165
193
|
summary: Allows unhandled (and handled!) exceptions to be captured and sent via email
|
166
|
-
test_files:
|
167
|
-
|
168
|
-
- test/exception_notifier_helper_test.rb
|
169
|
-
- test/exception_notifier_test.rb
|
170
|
-
- test/exception_notify_functional_test.rb
|
171
|
-
- test/mocks/controllers.rb
|
172
|
-
- test/notifiable_test.rb
|
173
|
-
- test/test_helper.rb
|
194
|
+
test_files: []
|
195
|
+
|