pboling-super_exception_notifier 1.7.0 → 1.7.1

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.
@@ -56,7 +56,7 @@ Gem Using Git building from source:
56
56
  git clone git://github.com/pboling/exception_notification.git
57
57
  cd exception_notification
58
58
  gem build exception_notification.gemspec
59
- sudo gem install super_exception_notification-1.7.0.gem # (Or whatever version gets built)
59
+ sudo gem install super_exception_notification-1.7.1.gem # (Or whatever version gets built)
60
60
 
61
61
  Then cd to your rails app to optionally freeze the gem into your app:
62
62
 
@@ -65,7 +65,7 @@ Then cd to your rails app to optionally freeze the gem into your app:
65
65
  Then in your environment.rb:
66
66
 
67
67
  config.gem 'super_exception_notifier',
68
- :version => '~> 1.7.0',
68
+ :version => '~> 1.7.1',
69
69
  :lib => "exception_notifier"
70
70
 
71
71
 
@@ -77,14 +77,14 @@ Installing Gem from Github's Gem Server:
77
77
  Then in your environment.rb:
78
78
 
79
79
  config.gem 'pboling-super_exception_notifier',
80
- :version => '~> 1.7.0',
80
+ :version => '~> 1.7.1',
81
81
  :lib => "exception_notifier",
82
82
  :source => 'http://gems.github.com'
83
83
 
84
84
 
85
85
  Plugin using Git:
86
86
 
87
- # Installation as plugin might work... I haven't tried it.
87
+ # Installation as plugin might work... I haven't tried it, but others have told me it works!
88
88
  ./script/plugin install git://github.com/pboling/exception_notification.git
89
89
 
90
90
  SVN Plugin (very deprecated, no longer updated, install Git!):
@@ -393,11 +393,13 @@ ExceptionNotifier.config[:sections] variable.
393
393
 
394
394
  == Not working due to nature of gem vs plugin
395
395
 
396
- You can even add new sections that
397
- describe application-specific data--just add the section's name to the list
398
- (whereever you'd like), and define the corresponding partial. Then, if your
399
- new section requires information that isn't available by default, make sure
400
- it is made available to the email using the exception_data macro:
396
+ This might work if you install the gem as a plugin.
397
+
398
+ You can even add new sections that describe application-specific data --
399
+ just add the section's name to the list (whereever you'd like), and define the
400
+ corresponding partial. Then, if your new section requires information that isn't
401
+ available by default, make sure it is made available to the email using the
402
+ exception_data macro:
401
403
 
402
404
  class ApplicationController < ActionController::Base
403
405
  ...
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 7
4
- :patch: 0
4
+ :patch: 1
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'super_exception_notifier'
3
- s.version = '1.7.0'
4
- s.date = '2009-08-16'
3
+ s.version = '1.7.1'
4
+ s.date = '2009-08-19'
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
 
7
7
  s.summary = %q{Allows unhandled (and handled!) exceptions to be captured and sent via email}
@@ -294,7 +294,7 @@ module ExceptionNotifiable
294
294
 
295
295
  def exception_in_project?(path) # should be a path like /path/to/broken/thingy.rb
296
296
  dir = File.split(path).first rescue ''
297
- if(File.directory?(dir) and !(path =~ /vendor\/plugins/) and path.include?(RAILS_ROOT))
297
+ if(File.directory?(dir) and !(path =~ /vendor\/plugins/) and !(path =~ /vendor\/gems/) and path.include?(RAILS_ROOT))
298
298
  path
299
299
  else
300
300
  nil
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  class ExceptionNotifier < ActionMailer::Base
4
4
 
5
- #andrewroth reported that @@config gets clobbered because rails loads this class twice when installed as a plugin, and adding the ||= fixed it.
5
+ #andrewroth reported that @@config gets clobbered because rails loads this class twice when installed as a plugin, and adding the ||= fixed it.
6
6
  @@config ||= {
7
7
  # If left empty web hooks will not be engaged
8
8
  :web_hooks => [],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pboling-super_exception_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-08-16 00:00:00 -07:00
14
+ date: 2009-08-19 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency