actionmailer 6.0.0.beta3 → 6.0.0.rc1
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 +5 -0
- data/README.rdoc +3 -1
- data/lib/action_mailer/base.rb +5 -5
- data/lib/action_mailer/gem_version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e3154744057de8ab2114d6229bcd6902877937d6b4162466a3ce9f7c3b8515
|
4
|
+
data.tar.gz: 062db66f8b55914a097b9b05ce7a40f40ba7f71de122265db44444adabb70525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502aa2da3aeb29f834ecf1428d484bb2d4f5d138e12d6ef1ed30bfe33741faea947eccf079b8acbd88334cfcec3c5a45fe206079a8d854aa8420ff00b5385f43
|
7
|
+
data.tar.gz: c67980d53176a64fd754b8910a59bb5a87b9fa6d01e3f280689ba2d78d0a03041146214de20ca104caa8887432826a0fa6d9ac3a6ef290b29a9b543a9561ec4f
|
data/CHANGELOG.md
CHANGED
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
@@ -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
|
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.0.
|
4
|
+
version: 6.0.0.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-04-24 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.0.
|
19
|
+
version: 6.0.0.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.0.
|
26
|
+
version: 6.0.0.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.0.
|
33
|
+
version: 6.0.0.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.0.
|
40
|
+
version: 6.0.0.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.0.
|
47
|
+
version: 6.0.0.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.0.
|
54
|
+
version: 6.0.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mail
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,12 +118,12 @@ 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
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.0.
|
126
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.0.
|
125
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.0.rc1/actionmailer
|
126
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.0.rc1/actionmailer/CHANGELOG.md
|
127
127
|
post_install_message:
|
128
128
|
rdoc_options: []
|
129
129
|
require_paths:
|