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: 93d19f5540efa1d0c1426ec9ab64f1f16e8c6557b4e5bad5890b99bf62686607
4
- data.tar.gz: de614f07ace037bc1b8fb9d998b97bfcb54f122b7a7560bf2f20693fd382a6ee
3
+ metadata.gz: ae2c9d720954788440b1deedc356091324eb5c393801790d6f861c4fe157bdb4
4
+ data.tar.gz: 31e91bdeeda86d168e887fa235e31b9810feb37c91317d564eee46c425376011
5
5
  SHA512:
6
- metadata.gz: 839fb346abb6142cbf5185d947c982fbf1d2516a7289769392926e674ee78550565861b03b3970d75e6c9d5838155316f3a893b44a4d76f9ee4d5dc1f7da0b6f
7
- data.tar.gz: e6def42195dc5f106e959b1e4601cd6593e799b9e5232b9e0ea08f4b3cfa87e48a3c44300af3d0e0b2de43b1c17cf40ed344557742f28961463865d60423ebdc
6
+ metadata.gz: cbd31aedd92e7fc5064cad2efde830070aa41f2289f3e08f57c63d001046cad20187dd6948c4fd96e6489d3d513ee1d6b32069206cbc3562a82bb17f4b92e314
7
+ data.tar.gz: fda70cf9f41a3a57bb83e47bfebbd1c181de0400faa72807474e76b6f2ec69f07ce37ea1ee1a5429e9dfb1b65006a6255765c0bd0677ff53cbf42cd274b5c254
@@ -1,3 +1,13 @@
1
+ == 4.4.3
2
+
3
+ * big fixes
4
+ * Remove using configured default from address from custom mailer_parent class
5
+
6
+ == 4.4.2 (yanked)
7
+
8
+ * bug fixes
9
+ * Fix `sender_address` being overwritten
10
+
1
11
  == 4.4.1
2
12
 
3
13
  * enhancements
@@ -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-23'
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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExceptionNotification
4
- VERSION = '4.4.1'
4
+ VERSION = '4.4.3'
5
5
  end
@@ -127,7 +127,7 @@ module ExceptionNotifier
127
127
  headers = {
128
128
  delivery_method: @options[:delivery_method],
129
129
  to: exception_recipients,
130
- from: self.class.default[:from] || @options[:sender_address],
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.1
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-23 00:00:00.000000000 Z
12
+ date: 2020-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionmailer