actionmailer 7.0.8.7 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/action_mailer/base.rb +13 -13
- data/lib/action_mailer/gem_version.rb +2 -2
- metadata +14 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 255579d6c8026b1b5e0a1a9a9528b329481073d6718aa908ea95c1737eeff053
|
|
4
|
+
data.tar.gz: 98c60fa75c97a60c222131becef724eebb1d25d4ae529b5c15d54842b1a430f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0fbeab6c1820138eb83c6fb99b4c024475e5de7fffc2a67f18c870b707a0e3001bc029e5050000507f856f14f56e76f2b527c2af49778b83e567be6bc982645
|
|
7
|
+
data.tar.gz: 898e273025a412f90867f2deec04046d2fd827a408e52d6ee3f7b7713342dfb900bcdb95fc61b4714e88be15b9c2444cc566cb5d752eed1f869212d5c61b7f70
|
data/CHANGELOG.md
CHANGED
data/lib/action_mailer/base.rb
CHANGED
|
@@ -12,7 +12,7 @@ require "action_mailer/rescuable"
|
|
|
12
12
|
module ActionMailer
|
|
13
13
|
# Action Mailer allows you to send email from your application using a mailer model and views.
|
|
14
14
|
#
|
|
15
|
-
#
|
|
15
|
+
# == Mailer Models
|
|
16
16
|
#
|
|
17
17
|
# To use Action Mailer, you need to create a mailer model.
|
|
18
18
|
#
|
|
@@ -84,7 +84,7 @@ module ActionMailer
|
|
|
84
84
|
# format.html { render "some_other_template" }
|
|
85
85
|
# end
|
|
86
86
|
#
|
|
87
|
-
#
|
|
87
|
+
# == Mailer views
|
|
88
88
|
#
|
|
89
89
|
# Like Action Controller, each mailer class has a corresponding view directory in which each
|
|
90
90
|
# method of the class looks for a template with its name.
|
|
@@ -112,7 +112,7 @@ module ActionMailer
|
|
|
112
112
|
# <%= truncate(@note.body, length: 25) %>
|
|
113
113
|
#
|
|
114
114
|
#
|
|
115
|
-
#
|
|
115
|
+
# == Generating URLs
|
|
116
116
|
#
|
|
117
117
|
# URLs can be generated in mailer views using <tt>url_for</tt> or named routes. Unlike controllers from
|
|
118
118
|
# Action Pack, the mailer instance doesn't have any context about the incoming request, so you'll need
|
|
@@ -140,7 +140,7 @@ module ActionMailer
|
|
|
140
140
|
#
|
|
141
141
|
# By default when <tt>config.force_ssl</tt> is +true+, URLs generated for hosts will use the HTTPS protocol.
|
|
142
142
|
#
|
|
143
|
-
#
|
|
143
|
+
# == Sending mail
|
|
144
144
|
#
|
|
145
145
|
# Once a mailer action and template are defined, you can deliver your message or defer its creation and
|
|
146
146
|
# delivery for later:
|
|
@@ -165,7 +165,7 @@ module ActionMailer
|
|
|
165
165
|
# You never instantiate your mailer class. Rather, you just call the method you defined on the class itself.
|
|
166
166
|
# All instance methods are expected to return a message object to be sent.
|
|
167
167
|
#
|
|
168
|
-
#
|
|
168
|
+
# == Multipart Emails
|
|
169
169
|
#
|
|
170
170
|
# Multipart messages can also be used implicitly because Action Mailer will automatically detect and use
|
|
171
171
|
# multipart templates, where each template is named after the name of the action, followed by the content
|
|
@@ -186,7 +186,7 @@ module ActionMailer
|
|
|
186
186
|
# This means that you'll have to manually add each part to the email and set the content type of the email
|
|
187
187
|
# to <tt>multipart/alternative</tt>.
|
|
188
188
|
#
|
|
189
|
-
#
|
|
189
|
+
# == Attachments
|
|
190
190
|
#
|
|
191
191
|
# Sending attachment in emails is easy:
|
|
192
192
|
#
|
|
@@ -226,7 +226,7 @@ module ActionMailer
|
|
|
226
226
|
# end
|
|
227
227
|
# end
|
|
228
228
|
#
|
|
229
|
-
#
|
|
229
|
+
# == Inline Attachments
|
|
230
230
|
#
|
|
231
231
|
# You can also specify that a file should be displayed inline with other HTML. This is useful
|
|
232
232
|
# if you want to display a corporate logo or a photo.
|
|
@@ -252,7 +252,7 @@ module ActionMailer
|
|
|
252
252
|
#
|
|
253
253
|
# <%= image_tag attachments['photo.png'].url, alt: 'Our Photo', class: 'photo' -%>
|
|
254
254
|
#
|
|
255
|
-
#
|
|
255
|
+
# == Observing and Intercepting Mails
|
|
256
256
|
#
|
|
257
257
|
# Action Mailer provides hooks into the Mail observer and interceptor methods. These allow you to
|
|
258
258
|
# register classes that are called during the mail delivery life cycle.
|
|
@@ -265,7 +265,7 @@ module ActionMailer
|
|
|
265
265
|
# the delivery agents. Your class should make any needed modifications directly to the passed
|
|
266
266
|
# in <tt>Mail::Message</tt> instance.
|
|
267
267
|
#
|
|
268
|
-
#
|
|
268
|
+
# == Default Hash
|
|
269
269
|
#
|
|
270
270
|
# Action Mailer provides some intelligent defaults for your emails, these are usually specified in a
|
|
271
271
|
# default method inside the class definition:
|
|
@@ -314,7 +314,7 @@ module ActionMailer
|
|
|
314
314
|
#
|
|
315
315
|
# config.action_mailer.default_options = { from: "no-reply@example.org" }
|
|
316
316
|
#
|
|
317
|
-
#
|
|
317
|
+
# == Callbacks
|
|
318
318
|
#
|
|
319
319
|
# You can specify callbacks using <tt>before_action</tt> and <tt>after_action</tt> for configuring your messages.
|
|
320
320
|
# This may be useful, for example, when you want to add default inline attachments for all
|
|
@@ -342,7 +342,7 @@ module ActionMailer
|
|
|
342
342
|
# using <tt>before_action</tt> rather than <tt>after_action</tt> in your
|
|
343
343
|
# Action Mailer classes so that headers are parsed properly.
|
|
344
344
|
#
|
|
345
|
-
#
|
|
345
|
+
# == Rescuing Errors
|
|
346
346
|
#
|
|
347
347
|
# +rescue+ blocks inside of a mailer method cannot rescue errors that occur
|
|
348
348
|
# outside of rendering -- for example, record deserialization errors in a
|
|
@@ -365,7 +365,7 @@ module ActionMailer
|
|
|
365
365
|
# end
|
|
366
366
|
# end
|
|
367
367
|
#
|
|
368
|
-
#
|
|
368
|
+
# == Previewing emails
|
|
369
369
|
#
|
|
370
370
|
# You can preview your email templates visually by adding a mailer preview file to the
|
|
371
371
|
# <tt>ActionMailer::Base.preview_path</tt>. Since most emails do something interesting
|
|
@@ -402,7 +402,7 @@ module ActionMailer
|
|
|
402
402
|
# and <tt>register_preview_interceptor</tt> if they should operate on both sending and
|
|
403
403
|
# previewing emails.
|
|
404
404
|
#
|
|
405
|
-
#
|
|
405
|
+
# == Configuration options
|
|
406
406
|
#
|
|
407
407
|
# These options are specified on the class level, like
|
|
408
408
|
# <tt>ActionMailer::Base.raise_delivery_errors = true</tt>
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionmailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -16,56 +15,56 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - '='
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 7.0.
|
|
18
|
+
version: 7.0.10
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - '='
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 7.0.
|
|
25
|
+
version: 7.0.10
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: actionpack
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - '='
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 7.0.
|
|
32
|
+
version: 7.0.10
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - '='
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 7.0.
|
|
39
|
+
version: 7.0.10
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: actionview
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - '='
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 7.0.
|
|
46
|
+
version: 7.0.10
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - '='
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 7.0.
|
|
53
|
+
version: 7.0.10
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: activejob
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - '='
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 7.0.
|
|
60
|
+
version: 7.0.10
|
|
62
61
|
type: :runtime
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - '='
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 7.0.
|
|
67
|
+
version: 7.0.10
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: mail
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -178,12 +177,11 @@ licenses:
|
|
|
178
177
|
- MIT
|
|
179
178
|
metadata:
|
|
180
179
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
181
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
|
182
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
|
180
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.10/actionmailer/CHANGELOG.md
|
|
181
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.10/
|
|
183
182
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
184
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
|
183
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.10/actionmailer
|
|
185
184
|
rubygems_mfa_required: 'true'
|
|
186
|
-
post_install_message:
|
|
187
185
|
rdoc_options: []
|
|
188
186
|
require_paths:
|
|
189
187
|
- lib
|
|
@@ -199,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
197
|
version: '0'
|
|
200
198
|
requirements:
|
|
201
199
|
- none
|
|
202
|
-
rubygems_version: 3.
|
|
203
|
-
signing_key:
|
|
200
|
+
rubygems_version: 3.6.9
|
|
204
201
|
specification_version: 4
|
|
205
202
|
summary: Email composition and delivery framework (part of Rails).
|
|
206
203
|
test_files: []
|