actionmailbox 7.0.2.4 → 7.0.4

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: a5c68ba94c8ec422f4e8e073861ba0cd740c3f3480ee1aa9ee727281f6f0703d
4
- data.tar.gz: 5c7c563322c11041cf3c9c30e20934d8907449b3cd7904020af7148a6b533c96
3
+ metadata.gz: ae1917d8f72d0ae61e874ba0d0348fc651e646e9c19140736bd13da0990d0778
4
+ data.tar.gz: 3269eb37975e14e3477882b89ed7333d17d856eb63a674d38f3270186df8771c
5
5
  SHA512:
6
- metadata.gz: c3e5ce93205632e6a3da46f0ee8b40f1bbbbe0e79337d11f4a36d138d8d5db2b0a5e552910d6e25276f48a7b86d01be88e7e474bd0009367614c41a316b0d18c
7
- data.tar.gz: da357cfb7cf80a1e96d656e02612e20b8f7b9d60171ccd10130e50af52637f9bd01ef517c12afc9e3a6e6aa69ec66dbca39d9fd5e07f6a5122287c16b69ee836
6
+ metadata.gz: 30ee535762c293575dce8d6c6246060cd4d604be09c75dd01f1919cbd499ed37d286a0ce3d61ae5312584249e46f69a991bf79d09c1a4d41b21e670edf0a6df1
7
+ data.tar.gz: 7669448797270ead7de813591c445f1eb5601d4a75e395e4549694521c65ba7dd85ccb04f4961b50a0cd470c32d59409e052cb23ed3b9975cd4a187e4559c31b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## Rails 7.0.4 (September 09, 2022) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.0.3.1 (July 12, 2022) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 7.0.3 (May 09, 2022) ##
12
+
13
+ * No changes.
14
+
15
+
1
16
  ## Rails 7.0.2.4 (April 26, 2022) ##
2
17
 
3
18
  * No changes.
@@ -3,7 +3,7 @@
3
3
  module ActionMailbox
4
4
  # The base class for all Action Mailbox ingress controllers.
5
5
  class BaseController < ActionController::Base
6
- skip_forgery_protection if default_protect_from_forgery
6
+ skip_forgery_protection
7
7
 
8
8
  before_action :ensure_configured
9
9
 
@@ -22,7 +22,7 @@ module Rails
22
22
  def new_mail
23
23
  Mail.new(mail_params.except(:attachments).to_h).tap do |mail|
24
24
  mail[:bcc]&.include_in_headers = true
25
- mail_params[:attachments].to_a.each do |attachment|
25
+ mail_params[:attachments]&.select(&:present?)&.each do |attachment|
26
26
  mail.add_file(filename: attachment.original_filename, content: attachment.read)
27
27
  end
28
28
  end
@@ -27,7 +27,7 @@ module ActionMailbox
27
27
  # routing :all => :backstop
28
28
  # end
29
29
  #
30
- # Application mailboxes need to overwrite the +#process+ method, which is invoked by the framework after
30
+ # Application mailboxes need to override the #process method, which is invoked by the framework after
31
31
  # callbacks have been run. The callbacks available are: +before_processing+, +after_processing+, and
32
32
  # +around_processing+. The primary use case is ensure certain preconditions to processing are fulfilled
33
33
  # using +before_processing+ callbacks.
@@ -35,7 +35,7 @@ module ActionMailbox
35
35
  # If a precondition fails to be met, you can halt the processing using the +#bounced!+ method,
36
36
  # which will silently prevent any further processing, but not actually send out any bounce notice. You
37
37
  # can also pair this behavior with the invocation of an Action Mailer class responsible for sending out
38
- # an actual bounce email. This is done using the +#bounce_with+ method, which takes the mail object returned
38
+ # an actual bounce email. This is done using the #bounce_with method, which takes the mail object returned
39
39
  # by an Action Mailer method, like so:
40
40
  #
41
41
  # class ForwardsMailbox < ApplicationMailbox
@@ -51,7 +51,7 @@ module ActionMailbox
51
51
  #
52
52
  # During the processing of the inbound email, the status will be tracked. Before processing begins,
53
53
  # the email will normally have the +pending+ status. Once processing begins, just before callbacks
54
- # and the +#process+ method is called, the status is changed to +processing+. If processing is allowed to
54
+ # and the #process method is called, the status is changed to +processing+. If processing is allowed to
55
55
  # complete, the status is changed to +delivered+. If a bounce is triggered, then +bounced+. If an unhandled
56
56
  # exception is bubbled up, then +failed+.
57
57
  #
@@ -89,7 +89,7 @@ module ActionMailbox
89
89
  end
90
90
 
91
91
  def process
92
- # Overwrite in subclasses
92
+ # Override in subclasses
93
93
  end
94
94
 
95
95
  def finished_processing? # :nodoc:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionMailbox
4
- # Returns the currently-loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
4
+ # Returns the currently loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
5
5
  def self.gem_version
6
6
  Gem::Version.new VERSION::STRING
7
7
  end
@@ -9,8 +9,8 @@ module ActionMailbox
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 0
12
- TINY = 2
13
- PRE = "4"
12
+ TINY = 4
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module ActionMailbox
4
4
  # Encapsulates a route, which can then be matched against an inbound_email and provide a lookup of the matching
5
- # mailbox class. See examples for the different route addresses and how to use them in the +ActionMailbox::Base+
5
+ # mailbox class. See examples for the different route addresses and how to use them in the ActionMailbox::Base
6
6
  # documentation.
7
7
  class Router::Route
8
8
  attr_reader :address, :mailbox_name
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionMailbox
4
- # See +ActionMailbox::Base+ for how to specify routing.
4
+ # See ActionMailbox::Base for how to specify routing.
5
5
  module Routing
6
6
  extend ActiveSupport::Concern
7
7
 
@@ -4,18 +4,18 @@ require "mail"
4
4
 
5
5
  module ActionMailbox
6
6
  module TestHelper
7
- # Create an +InboundEmail+ record using an eml fixture in the format of message/rfc822
7
+ # Create an InboundEmail record using an eml fixture in the format of message/rfc822
8
8
  # referenced with +fixture_name+ located in +test/fixtures/files/fixture_name+.
9
9
  def create_inbound_email_from_fixture(fixture_name, status: :processing)
10
10
  create_inbound_email_from_source file_fixture(fixture_name).read, status: status
11
11
  end
12
12
 
13
- # Creates an +InboundEmail+ by specifying through options or a block.
13
+ # Creates an InboundEmail by specifying through options or a block.
14
14
  #
15
15
  # ==== Options
16
16
  #
17
- # * <tt>:status</tt> - The +status+ to set for the created +InboundEmail+.
18
- # For possible statuses, see {its documentation}[rdoc-ref:ActionMailbox::InboundEmail].
17
+ # * <tt>:status</tt> - The +status+ to set for the created InboundEmail.
18
+ # For possible statuses, see its documentation.
19
19
  #
20
20
  # ==== Creating a simple email
21
21
  #
@@ -68,26 +68,25 @@ module ActionMailbox
68
68
  create_inbound_email_from_source mail.to_s, status: status
69
69
  end
70
70
 
71
- # Create an +InboundEmail+ using the raw rfc822 +source+ as text.
71
+ # Create an InboundEmail using the raw rfc822 +source+ as text.
72
72
  def create_inbound_email_from_source(source, status: :processing)
73
73
  ActionMailbox::InboundEmail.create_and_extract_message_id! source, status: status
74
74
  end
75
75
 
76
76
 
77
- # Create an +InboundEmail+ from fixture using the same arguments as +create_inbound_email_from_fixture+
77
+ # Create an InboundEmail from fixture using the same arguments as create_inbound_email_from_fixture
78
78
  # and immediately route it to processing.
79
79
  def receive_inbound_email_from_fixture(*args)
80
80
  create_inbound_email_from_fixture(*args).tap(&:route)
81
81
  end
82
82
 
83
- # Create an +InboundEmail+ using the same options or block as
84
- # {create_inbound_email_from_mail}[rdoc-ref:#create_inbound_email_from_mail],
85
- # then immediately route it for processing.
83
+ # Create an InboundEmail using the same options or block as
84
+ # create_inbound_email_from_mail, then immediately route it for processing.
86
85
  def receive_inbound_email_from_mail(**kwargs, &block)
87
86
  create_inbound_email_from_mail(**kwargs, &block).tap(&:route)
88
87
  end
89
88
 
90
- # Create an +InboundEmail+ using the same arguments as +create_inbound_email_from_source+ and immediately route it
89
+ # Create an InboundEmail using the same arguments as create_inbound_email_from_source and immediately route it
91
90
  # to processing.
92
91
  def receive_inbound_email_from_source(*args)
93
92
  create_inbound_email_from_source(*args).tap(&:route)
@@ -3,7 +3,7 @@
3
3
  require_relative "gem_version"
4
4
 
5
5
  module ActionMailbox
6
- # Returns the currently-loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
6
+ # Returns the currently loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
7
7
  def self.version
8
8
  gem_version
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2.4
4
+ version: 7.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-26 00:00:00.000000000 Z
12
+ date: 2022-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -17,70 +17,70 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 7.0.2.4
20
+ version: 7.0.4
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 7.0.2.4
27
+ version: 7.0.4
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 7.0.2.4
34
+ version: 7.0.4
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 7.0.2.4
41
+ version: 7.0.4
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activestorage
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 7.0.2.4
48
+ version: 7.0.4
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 7.0.2.4
55
+ version: 7.0.4
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: activejob
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 7.0.2.4
62
+ version: 7.0.4
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 7.0.2.4
69
+ version: 7.0.4
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: actionpack
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 7.0.2.4
76
+ version: 7.0.4
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - '='
82
82
  - !ruby/object:Gem::Version
83
- version: 7.0.2.4
83
+ version: 7.0.4
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: mail
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -206,10 +206,10 @@ licenses:
206
206
  - MIT
207
207
  metadata:
208
208
  bug_tracker_uri: https://github.com/rails/rails/issues
209
- changelog_uri: https://github.com/rails/rails/blob/v7.0.2.4/actionmailbox/CHANGELOG.md
210
- documentation_uri: https://api.rubyonrails.org/v7.0.2.4/
209
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.4/actionmailbox/CHANGELOG.md
210
+ documentation_uri: https://api.rubyonrails.org/v7.0.4/
211
211
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
212
- source_code_uri: https://github.com/rails/rails/tree/v7.0.2.4/actionmailbox
212
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.4/actionmailbox
213
213
  rubygems_mfa_required: 'true'
214
214
  post_install_message:
215
215
  rdoc_options: []
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.1.6
229
+ rubygems_version: 3.3.3
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Inbound email handling framework.