exception_notification 4.4.1 → 4.4.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae2c9d720954788440b1deedc356091324eb5c393801790d6f861c4fe157bdb4
|
4
|
+
data.tar.gz: 31e91bdeeda86d168e887fa235e31b9810feb37c91317d564eee46c425376011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd31aedd92e7fc5064cad2efde830070aa41f2289f3e08f57c63d001046cad20187dd6948c4fd96e6489d3d513ee1d6b32069206cbc3562a82bb17f4b92e314
|
7
|
+
data.tar.gz: fda70cf9f41a3a57bb83e47bfebbd1c181de0400faa72807474e76b6f2ec69f07ce37ea1ee1a5429e9dfb1b65006a6255765c0bd0677ff53cbf42cd274b5c254
|
data/CHANGELOG.rdoc
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'exception_notification'
|
7
7
|
s.version = ExceptionNotification::VERSION
|
8
8
|
s.authors = ['Jamis Buck', 'Josh Peek']
|
9
|
-
s.date = '2020-06-
|
9
|
+
s.date = '2020-06-29'
|
10
10
|
s.summary = 'Exception notification for Rails apps'
|
11
11
|
s.homepage = 'https://smartinez87.github.io/exception_notification/'
|
12
12
|
s.email = 'smartinez87@gmail.com'
|
@@ -127,7 +127,7 @@ module ExceptionNotifier
|
|
127
127
|
headers = {
|
128
128
|
delivery_method: @options[:delivery_method],
|
129
129
|
to: exception_recipients,
|
130
|
-
from:
|
130
|
+
from: @options[:sender_address],
|
131
131
|
subject: subject,
|
132
132
|
template_name: name
|
133
133
|
}.merge(@options[:email_headers])
|
@@ -353,25 +353,3 @@ class EmailNotifierWithEnvTest < ActiveSupport::TestCase
|
|
353
353
|
assert_equal '[ERROR] (ZeroDivisionError) "divided by 0"', mail.subject
|
354
354
|
end
|
355
355
|
end
|
356
|
-
|
357
|
-
class EmailNotifierWithCustomParentClassTest < ActiveSupport::TestCase
|
358
|
-
class ApplicationMailer < ActionMailer::Base
|
359
|
-
default from: 'infrastructure@example.com'
|
360
|
-
end
|
361
|
-
|
362
|
-
setup do
|
363
|
-
@exception = ZeroDivisionError.new('divided by 0')
|
364
|
-
@exception.set_backtrace(["#{__FILE__}:#{__LINE__}"])
|
365
|
-
end
|
366
|
-
|
367
|
-
test 'uses default from configured parent class' do
|
368
|
-
email_notifier = ExceptionNotifier::EmailNotifier.new(
|
369
|
-
mailer_parent: 'EmailNotifierWithCustomParentClassTest::ApplicationMailer',
|
370
|
-
exception_recipients: %w[dummyexceptions@example.com]
|
371
|
-
)
|
372
|
-
mail = email_notifier.call(@exception)
|
373
|
-
|
374
|
-
assert email_notifier.__send__(:mailer) < ApplicationMailer
|
375
|
-
assert_equal ['infrastructure@example.com'], mail.from
|
376
|
-
end
|
377
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-06-
|
12
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionmailer
|