actionmailer 6.0.0.beta1 → 6.0.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.rdoc +3 -1
- data/lib/action_mailer/base.rb +8 -8
- data/lib/action_mailer/gem_version.rb +2 -2
- data/lib/action_mailer/log_subscriber.rb +2 -3
- data/lib/action_mailer/mail_delivery_job.rb +1 -1
- data/lib/action_mailer/railtie.rb +10 -6
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2df58a65d3898e37d4ee4d92ae88aac4cf5c5992435cee690c1fcc9913df778d
|
4
|
+
data.tar.gz: 5dc5a220b9b51d80f6d10827cf6a772b791026820a31935bad3413043b863968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f16f73022443789b3cb94fb8f886f0131dfe5bf3ae4a2457aa417a31060ef5fca7871b6fe93afb778d5f325c213b316a63968d95a71242b4666855e0051df67c
|
7
|
+
data.tar.gz: 8f8aaa1a16bcc10f5755d14c6cabb3f7bfec81eba5c6449723226cae423dffe3fe4da12fd204587d6f85112e1870cc829fdd1bad834cfb7124bb2f1591ca433a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,33 @@
|
|
1
|
+
## Rails 6.0.1.rc1 (October 31, 2019) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 6.0.0 (August 16, 2019) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 6.0.0.rc2 (July 22, 2019) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Rails 6.0.0.rc1 (April 24, 2019) ##
|
17
|
+
|
18
|
+
* No changes.
|
19
|
+
|
20
|
+
|
21
|
+
## Rails 6.0.0.beta3 (March 11, 2019) ##
|
22
|
+
|
23
|
+
* No changes.
|
24
|
+
|
25
|
+
|
26
|
+
## Rails 6.0.0.beta2 (February 25, 2019) ##
|
27
|
+
|
28
|
+
* No changes.
|
29
|
+
|
30
|
+
|
1
31
|
## Rails 6.0.0.beta1 (January 18, 2019) ##
|
2
32
|
|
3
33
|
* Deprecate `ActionMailer::Base.receive` in favor of [Action Mailbox](https://github.com/rails/rails/tree/master/actionmailbox).
|
data/README.rdoc
CHANGED
@@ -13,6 +13,8 @@ Additionally, an Action Mailer class can be used to process incoming email,
|
|
13
13
|
such as allowing a blog to accept new posts from an email (which could even
|
14
14
|
have been sent from a phone).
|
15
15
|
|
16
|
+
You can read more about Action Mailer in the {Action Mailer Basics}[https://edgeguides.rubyonrails.org/action_mailer_basics.html] guide.
|
17
|
+
|
16
18
|
== Sending emails
|
17
19
|
|
18
20
|
The framework works by initializing any instance variables you want to be
|
@@ -128,7 +130,7 @@ Action Mailer is released under the MIT license:
|
|
128
130
|
|
129
131
|
API documentation is at
|
130
132
|
|
131
|
-
*
|
133
|
+
* https://api.rubyonrails.org
|
132
134
|
|
133
135
|
Bug reports for the Ruby on Rails project can be filed here:
|
134
136
|
|
data/lib/action_mailer/base.rb
CHANGED
@@ -408,7 +408,7 @@ module ActionMailer
|
|
408
408
|
# really useful if you need to validate a self-signed and/or a wildcard certificate. You can use the name
|
409
409
|
# of an OpenSSL verify constant (<tt>'none'</tt> or <tt>'peer'</tt>) or directly the constant
|
410
410
|
# (<tt>OpenSSL::SSL::VERIFY_NONE</tt> or <tt>OpenSSL::SSL::VERIFY_PEER</tt>).
|
411
|
-
#
|
411
|
+
# * <tt>:ssl/:tls</tt> Enables the SMTP connection to use SMTP/TLS (SMTPS: SMTP over direct TLS connection)
|
412
412
|
#
|
413
413
|
# * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
|
414
414
|
# * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
|
@@ -593,6 +593,7 @@ module ActionMailer
|
|
593
593
|
private
|
594
594
|
|
595
595
|
def set_payload_for_mail(payload, mail)
|
596
|
+
payload[:mail] = mail.encoded
|
596
597
|
payload[:mailer] = name
|
597
598
|
payload[:message_id] = mail.message_id
|
598
599
|
payload[:subject] = mail.subject
|
@@ -601,7 +602,6 @@ module ActionMailer
|
|
601
602
|
payload[:bcc] = mail.bcc if mail.bcc.present?
|
602
603
|
payload[:cc] = mail.cc if mail.cc.present?
|
603
604
|
payload[:date] = mail.date
|
604
|
-
payload[:mail] = mail.encoded
|
605
605
|
payload[:perform_deliveries] = mail.perform_deliveries
|
606
606
|
end
|
607
607
|
|
@@ -944,9 +944,9 @@ module ActionMailer
|
|
944
944
|
assignable.each { |k, v| message[k] = v }
|
945
945
|
end
|
946
946
|
|
947
|
-
def collect_responses(headers)
|
947
|
+
def collect_responses(headers, &block)
|
948
948
|
if block_given?
|
949
|
-
collect_responses_from_block(headers, &
|
949
|
+
collect_responses_from_block(headers, &block)
|
950
950
|
elsif headers[:body]
|
951
951
|
collect_responses_from_text(headers)
|
952
952
|
else
|
@@ -973,10 +973,10 @@ module ActionMailer
|
|
973
973
|
templates_name = headers[:template_name] || action_name
|
974
974
|
|
975
975
|
each_template(Array(templates_path), templates_name).map do |template|
|
976
|
-
|
976
|
+
format = template.format || self.formats.first
|
977
977
|
{
|
978
|
-
body: render(template: template),
|
979
|
-
content_type:
|
978
|
+
body: render(template: template, formats: [format]),
|
979
|
+
content_type: Mime[format].to_s
|
980
980
|
}
|
981
981
|
end
|
982
982
|
end
|
@@ -986,7 +986,7 @@ module ActionMailer
|
|
986
986
|
if templates.empty?
|
987
987
|
raise ActionView::MissingTemplate.new(paths, name, paths, false, "mailer")
|
988
988
|
else
|
989
|
-
templates.uniq(&:
|
989
|
+
templates.uniq(&:format).each(&block)
|
990
990
|
end
|
991
991
|
end
|
992
992
|
|
@@ -10,11 +10,10 @@ module ActionMailer
|
|
10
10
|
def deliver(event)
|
11
11
|
info do
|
12
12
|
perform_deliveries = event.payload[:perform_deliveries]
|
13
|
-
recipients = Array(event.payload[:to]).join(", ")
|
14
13
|
if perform_deliveries
|
15
|
-
"
|
14
|
+
"Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)"
|
16
15
|
else
|
17
|
-
"Skipped
|
16
|
+
"Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is false"
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require "active_job"
|
4
4
|
|
5
5
|
module ActionMailer
|
6
|
-
# The <tt>ActionMailer::
|
6
|
+
# The <tt>ActionMailer::MailDeliveryJob</tt> class is used when you
|
7
7
|
# want to send emails outside of the request-response cycle. It supports
|
8
8
|
# sending either parameterized or normal mail.
|
9
9
|
#
|
@@ -59,6 +59,14 @@ module ActionMailer
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
initializer "action_mailer.set_autoload_paths" do |app|
|
63
|
+
options = app.config.action_mailer
|
64
|
+
|
65
|
+
if options.show_previews && options.preview_path
|
66
|
+
ActiveSupport::Dependencies.autoload_paths << options.preview_path
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
62
70
|
initializer "action_mailer.compile_config_methods" do
|
63
71
|
ActiveSupport.on_load(:action_mailer) do
|
64
72
|
config.compile_methods! if config.respond_to?(:compile_methods!)
|
@@ -76,12 +84,8 @@ module ActionMailer
|
|
76
84
|
|
77
85
|
if options.show_previews
|
78
86
|
app.routes.prepend do
|
79
|
-
get "/rails/mailers"
|
80
|
-
get "/rails/mailers/*path"
|
81
|
-
end
|
82
|
-
|
83
|
-
if options.preview_path
|
84
|
-
ActiveSupport::Dependencies.autoload_paths << options.preview_path
|
87
|
+
get "/rails/mailers" => "rails/mailers#index", internal: true
|
88
|
+
get "/rails/mailers/*path" => "rails/mailers#preview", internal: true
|
85
89
|
end
|
86
90
|
end
|
87
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionmailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0.
|
19
|
+
version: 6.0.1.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.0.
|
26
|
+
version: 6.0.1.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionview
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.0.
|
33
|
+
version: 6.0.1.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 6.0.
|
40
|
+
version: 6.0.1.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activejob
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 6.0.
|
47
|
+
version: 6.0.1.rc1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 6.0.
|
54
|
+
version: 6.0.1.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mail
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,12 +118,15 @@ files:
|
|
118
118
|
- lib/rails/generators/mailer/mailer_generator.rb
|
119
119
|
- lib/rails/generators/mailer/templates/application_mailer.rb.tt
|
120
120
|
- lib/rails/generators/mailer/templates/mailer.rb.tt
|
121
|
-
homepage:
|
121
|
+
homepage: https://rubyonrails.org
|
122
122
|
licenses:
|
123
123
|
- MIT
|
124
124
|
metadata:
|
125
|
-
|
126
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.
|
125
|
+
bug_tracker_uri: https://github.com/rails/rails/issues
|
126
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.1.rc1/actionmailer/CHANGELOG.md
|
127
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.1.rc1/
|
128
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
129
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.1.rc1/actionmailer
|
127
130
|
post_install_message:
|
128
131
|
rdoc_options: []
|
129
132
|
require_paths:
|
@@ -140,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
143
|
version: 1.3.1
|
141
144
|
requirements:
|
142
145
|
- none
|
143
|
-
rubygems_version: 3.0.
|
146
|
+
rubygems_version: 3.0.3
|
144
147
|
signing_key:
|
145
148
|
specification_version: 4
|
146
149
|
summary: Email composition and delivery framework (part of Rails).
|