actionmailer 6.0.0.beta3 → 6.0.2.rc2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionmailer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/README.rdoc +3 -1
- data/lib/action_mailer/base.rb +6 -6
- data/lib/action_mailer/gem_version.rb +2 -2
- data/lib/action_mailer/test_helper.rb +2 -1
- 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: 1eccd23773deaf8e6e0e55deee50fe801adc0321e1cdc535a1b5cd173cc0cfaa
|
4
|
+
data.tar.gz: 66a79bff21ba9efd460b5cefd0fa3ebd04b8d7c6b3f0196c7e294629320ab1f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d3ba3c67cfed55e0843719ff403ad9ab7bc2a251d925ae61570e9d6f8e2d9e020492005b518b5111d2d14967e2b3a1f4819e3c1a6fcc56e3c765d373707fea
|
7
|
+
data.tar.gz: 192dbc36c241d4015d077b950a542fcdbedcf624d2ff83ac7c6371231ff0b7730a0dd5adbff798f5617bdc385abc1dc00de9167422fc38d912d5362635e8aade
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
## Rails 6.0.2.rc2 (December 09, 2019) ##
|
2
|
+
|
3
|
+
* Fix ActionMailer assertions don't work for parameterized mail with legacy delivery job.
|
4
|
+
|
5
|
+
*bogdanvlviv*
|
6
|
+
|
7
|
+
|
8
|
+
## Rails 6.0.1 (November 5, 2019) ##
|
9
|
+
|
10
|
+
* No changes.
|
11
|
+
|
12
|
+
|
13
|
+
## Rails 6.0.0 (August 16, 2019) ##
|
14
|
+
|
15
|
+
* No changes.
|
16
|
+
|
17
|
+
|
18
|
+
## Rails 6.0.0.rc2 (July 22, 2019) ##
|
19
|
+
|
20
|
+
* No changes.
|
21
|
+
|
22
|
+
|
23
|
+
## Rails 6.0.0.rc1 (April 24, 2019) ##
|
24
|
+
|
25
|
+
* No changes.
|
26
|
+
|
27
|
+
|
1
28
|
## Rails 6.0.0.beta3 (March 11, 2019) ##
|
2
29
|
|
3
30
|
* No changes.
|
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>.
|
@@ -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
|
@@ -156,7 +156,8 @@ module ActionMailer
|
|
156
156
|
def delivery_job_filter(job)
|
157
157
|
job_class = job.is_a?(Hash) ? job.fetch(:job) : job.class
|
158
158
|
|
159
|
-
Base.descendants.map(&:delivery_job).include?(job_class)
|
159
|
+
Base.descendants.map(&:delivery_job).include?(job_class) ||
|
160
|
+
ActionMailer::Parameterized::DeliveryJob == job_class
|
160
161
|
end
|
161
162
|
end
|
162
163
|
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.2.rc2
|
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-12-09 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.2.rc2
|
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.2.rc2
|
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.2.rc2
|
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.2.rc2
|
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.2.rc2
|
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.2.rc2
|
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.2.rc2/actionmailer/CHANGELOG.md
|
127
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.2.rc2/
|
128
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
129
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc2/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).
|