mailgunner 3.2.0 → 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: 0c41e367b2b2934d3507be230520c72cb62feb57b03c91f1cb6c593578c88956
4
- data.tar.gz: 4a08ca142232d72e11208051711f3a8f9abd437f0e29c99104d3a5d9c8745995
3
+ metadata.gz: 710f8d7a57375739abe0a86b8593fce280d816db9b4714e88c3d72813674314e
4
+ data.tar.gz: 26dc907da5afb3955fccf1c0973d116fa7a899a87f933fea96b9f7833c908c64
5
5
  SHA512:
6
- metadata.gz: e16b51a2710153ce19414399bc2fa5cb147a9c2eba7b1daed4e9b4768727ce0a091f1ed6874055640d71f41ff8c5225d77fddcf781b7d136954d193d31adeae2
7
- data.tar.gz: e93e0cf4f5f2ef7879a6fe1bfd62fc8c5280e84e60a707c4c489b21ce3c09e06b37a9b1269a85827037575e9ef18e85f4915a89e2080ee03b130c6f52630b31f
6
+ metadata.gz: 9775c97eaa7562e235a289bb3017e7712edb0f4ac921fdd0479e0bfc34df98313721d6b77de3988c8d52f42396d043ecf2ed6f828da3c959274e401ecf0b3a1b
7
+ data.tar.gz: 526a146c51827c7cdcf5d792073fd200ed0515eb576e71b4bb76146758f60bfc862fd9bf282644261fd63ac6efb0a2d39667a07ab84afe980a22e1bad6fe334b
data/CHANGES.md CHANGED
@@ -1,3 +1,13 @@
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
+
7
+ # 3.2.1
8
+
9
+ * Fixed outdated changelog_uri
10
+
1
11
  # 3.2.0
2
12
 
3
13
  * Added update_web_prefix method
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.0'
2
+ VERSION = '3.3.0'
3
3
  end
data/mailgunner.gemspec CHANGED
@@ -17,6 +17,6 @@ Gem::Specification.new do |s|
17
17
  'homepage' => 'https://github.com/readysteady/mailgunner',
18
18
  'source_code_uri' => 'https://github.com/readysteady/mailgunner',
19
19
  'bug_tracker_uri' => 'https://github.com/readysteady/mailgunner/issues',
20
- 'changelog_uri' => 'https://github.com/readysteady/mailgunner/blob/master/CHANGES.md'
20
+ 'changelog_uri' => 'https://github.com/readysteady/mailgunner/blob/main/CHANGES.md'
21
21
  }
22
22
  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.0
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-10-13 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:
@@ -48,7 +48,7 @@ metadata:
48
48
  homepage: https://github.com/readysteady/mailgunner
49
49
  source_code_uri: https://github.com/readysteady/mailgunner
50
50
  bug_tracker_uri: https://github.com/readysteady/mailgunner/issues
51
- changelog_uri: https://github.com/readysteady/mailgunner/blob/master/CHANGES.md
51
+ changelog_uri: https://github.com/readysteady/mailgunner/blob/main/CHANGES.md
52
52
  post_install_message:
53
53
  rdoc_options: []
54
54
  require_paths:
@@ -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