mailgunner 3.2.1 → 3.3.0

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: 335c9306bcba99a231c0346ae15845bf458f76b673246d2c22b1359b846f1a55
4
- data.tar.gz: ef5b9d5c4af263b98e9bc9384f4e800fe06bea4919a2db0a7710deb14c12e001
3
+ metadata.gz: 710f8d7a57375739abe0a86b8593fce280d816db9b4714e88c3d72813674314e
4
+ data.tar.gz: 26dc907da5afb3955fccf1c0973d116fa7a899a87f933fea96b9f7833c908c64
5
5
  SHA512:
6
- metadata.gz: 5ee12a7c01d4d978f520eede84647b49e5c44434dc8040cbd1a75596c7580b6f25a40f3caad2db727cafe0b320e5d48ea93a278cf0bab4fba193ccd6ba7be0dd
7
- data.tar.gz: bab9b97bd1ea0c7ad3c872c6ed1ebe4f0d4d8db77272207aa5d6e57f92c129cae048fec5b5bcdec30b55aa44ccccf5a8226af6fa5443f0ba69cae7a08ab04f16
6
+ metadata.gz: 9775c97eaa7562e235a289bb3017e7712edb0f4ac921fdd0479e0bfc34df98313721d6b77de3988c8d52f42396d043ecf2ed6f828da3c959274e401ecf0b3a1b
7
+ data.tar.gz: 526a146c51827c7cdcf5d792073fd200ed0515eb576e71b4bb76146758f60bfc862fd9bf282644261fd63ac6efb0a2d39667a07ab84afe980a22e1bad6fe334b
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 3.3.0
2
+
3
+ * Fixed compatibility with rails/actionmailer 7.1 (#24)
4
+
5
+ * Added support for Mail::SmtpEnvelope.new introduced in mail 2.8.0
6
+
1
7
  # 3.2.1
2
8
 
3
9
  * Fixed outdated changelog_uri
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2020 TIMCRAFT
1
+ Copyright (c) 2012-2023 TIMCRAFT
2
2
 
3
3
  This is an Open Source project licensed under the terms of the LGPLv3 license.
4
4
  Please see <http://www.gnu.org/licenses/lgpl-3.0.html> for license text.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # mailgunner
2
2
 
3
3
  ![Gem Version](https://badge.fury.io/rb/mailgunner.svg)
4
- ![Build Status](https://github.com/readysteady/mailgunner/workflows/Test/badge.svg)
4
+ ![Test Status](https://github.com/readysteady/mailgunner/actions/workflows/test.yml/badge.svg)
5
5
 
6
6
 
7
7
  Ruby client for the [Mailgun API](https://documentation.mailgun.com/en/latest/api_reference.html).
@@ -1,4 +1,8 @@
1
- require 'mail/check_delivery_params'
1
+ begin
2
+ require 'mail/smtp_envelope'
3
+ rescue LoadError
4
+ require 'mail/check_delivery_params'
5
+ end
2
6
 
3
7
  module Mailgunner
4
8
  # @private
@@ -18,7 +22,11 @@ module Mailgunner
18
22
 
19
23
  private
20
24
 
21
- if Mail::CheckDeliveryParams.respond_to?(:check) # mail v2.6.6+
25
+ if defined?(Mail::SmtpEnvelope) # mail v2.8.0+
26
+ def check(mail)
27
+ Mail::SmtpEnvelope.new(mail)
28
+ end
29
+ elsif Mail::CheckDeliveryParams.respond_to?(:check) # mail v2.6.6+
22
30
  def check(mail)
23
31
  Mail::CheckDeliveryParams.check(mail)
24
32
  end
@@ -1,7 +1,7 @@
1
1
  module Mailgunner
2
2
  # @private
3
3
  class Railtie < Rails::Railtie
4
- config.before_initialize do
4
+ initializer 'mailgunner', before: 'action_mailer.set_configs' do
5
5
  require 'mailgunner/delivery_method'
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Mailgunner
2
- VERSION = '3.2.1'
2
+ VERSION = '3.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailgunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Craft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2023-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby client for the Mailgun API
14
14
  email:
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.1.4
67
+ rubygems_version: 3.4.10
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Ruby client for the Mailgun API