actionmailer 7.1.0 → 7.1.2
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 +10 -0
- data/lib/action_mailer/base.rb +13 -13
- data/lib/action_mailer/gem_version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be248c5b46e2176254f37a44c8d71cbadeb9b39ae6d40d76dcad7c546d05341
|
4
|
+
data.tar.gz: db66e39c13d56ecd70b17055c34e9e5d219b0002a8cc6efaf3d2d3cf0a343118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e0a172a623fd515d426367d7b84a4aa3310fd162af6ce87c983a804841cacd88f8e2afec40b7ec9825d0981064ea555ae64ca45183c58f7073818358fd0ee5
|
7
|
+
data.tar.gz: aeef6c68a56a8456fd9ff6930831acd1e925e169087e20a0caf30fa47b51e25477999134b16e3c2c0919bbf0c9fa501676ac939c2f3faf7a4f5f1ab7e3b1c77c
|
data/CHANGELOG.md
CHANGED
data/lib/action_mailer/base.rb
CHANGED
@@ -14,7 +14,7 @@ module ActionMailer
|
|
14
14
|
#
|
15
15
|
# Action Mailer allows you to send email from your application using a mailer model and views.
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# == Mailer Models
|
18
18
|
#
|
19
19
|
# To use Action Mailer, you need to create a mailer model.
|
20
20
|
#
|
@@ -86,7 +86,7 @@ module ActionMailer
|
|
86
86
|
# format.html { render "some_other_template" }
|
87
87
|
# end
|
88
88
|
#
|
89
|
-
#
|
89
|
+
# == Mailer views
|
90
90
|
#
|
91
91
|
# Like Action Controller, each mailer class has a corresponding view directory in which each
|
92
92
|
# method of the class looks for a template with its name.
|
@@ -114,7 +114,7 @@ module ActionMailer
|
|
114
114
|
# <%= truncate(@note.body, length: 25) %>
|
115
115
|
#
|
116
116
|
#
|
117
|
-
#
|
117
|
+
# == Generating URLs
|
118
118
|
#
|
119
119
|
# URLs can be generated in mailer views using <tt>url_for</tt> or named routes. Unlike controllers from
|
120
120
|
# Action Pack, the mailer instance doesn't have any context about the incoming request, so you'll need
|
@@ -142,7 +142,7 @@ module ActionMailer
|
|
142
142
|
#
|
143
143
|
# By default when <tt>config.force_ssl</tt> is +true+, URLs generated for hosts will use the HTTPS protocol.
|
144
144
|
#
|
145
|
-
#
|
145
|
+
# == Sending mail
|
146
146
|
#
|
147
147
|
# Once a mailer action and template are defined, you can deliver your message or defer its creation and
|
148
148
|
# delivery for later:
|
@@ -167,7 +167,7 @@ module ActionMailer
|
|
167
167
|
# You never instantiate your mailer class. Rather, you just call the method you defined on the class itself.
|
168
168
|
# All instance methods are expected to return a message object to be sent.
|
169
169
|
#
|
170
|
-
#
|
170
|
+
# == Multipart Emails
|
171
171
|
#
|
172
172
|
# Multipart messages can also be used implicitly because Action Mailer will automatically detect and use
|
173
173
|
# multipart templates, where each template is named after the name of the action, followed by the content
|
@@ -188,7 +188,7 @@ module ActionMailer
|
|
188
188
|
# This means that you'll have to manually add each part to the email and set the content type of the email
|
189
189
|
# to <tt>multipart/alternative</tt>.
|
190
190
|
#
|
191
|
-
#
|
191
|
+
# == Attachments
|
192
192
|
#
|
193
193
|
# Sending attachment in emails is easy:
|
194
194
|
#
|
@@ -228,7 +228,7 @@ module ActionMailer
|
|
228
228
|
# end
|
229
229
|
# end
|
230
230
|
#
|
231
|
-
#
|
231
|
+
# == Inline Attachments
|
232
232
|
#
|
233
233
|
# You can also specify that a file should be displayed inline with other HTML. This is useful
|
234
234
|
# if you want to display a corporate logo or a photo.
|
@@ -254,7 +254,7 @@ module ActionMailer
|
|
254
254
|
#
|
255
255
|
# <%= image_tag attachments['photo.png'].url, alt: 'Our Photo', class: 'photo' -%>
|
256
256
|
#
|
257
|
-
#
|
257
|
+
# == Observing and Intercepting Mails
|
258
258
|
#
|
259
259
|
# Action Mailer provides hooks into the Mail observer and interceptor methods. These allow you to
|
260
260
|
# register classes that are called during the mail delivery life cycle.
|
@@ -267,7 +267,7 @@ module ActionMailer
|
|
267
267
|
# the delivery agents. Your class should make any needed modifications directly to the passed
|
268
268
|
# in +Mail::Message+ instance.
|
269
269
|
#
|
270
|
-
#
|
270
|
+
# == Default \Hash
|
271
271
|
#
|
272
272
|
# Action Mailer provides some intelligent defaults for your emails, these are usually specified in a
|
273
273
|
# default method inside the class definition:
|
@@ -316,7 +316,7 @@ module ActionMailer
|
|
316
316
|
#
|
317
317
|
# config.action_mailer.default_options = { from: "no-reply@example.org" }
|
318
318
|
#
|
319
|
-
#
|
319
|
+
# == \Callbacks
|
320
320
|
#
|
321
321
|
# You can specify callbacks using <tt>before_action</tt> and <tt>after_action</tt> for configuring your messages,
|
322
322
|
# and using <tt>before_deliver</tt> and <tt>after_deliver</tt> for wrapping the delivery process.
|
@@ -350,7 +350,7 @@ module ActionMailer
|
|
350
350
|
# using <tt>before_action</tt> rather than <tt>after_action</tt> in your
|
351
351
|
# Action Mailer classes so that headers are parsed properly.
|
352
352
|
#
|
353
|
-
#
|
353
|
+
# == Rescuing Errors
|
354
354
|
#
|
355
355
|
# +rescue+ blocks inside of a mailer method cannot rescue errors that occur
|
356
356
|
# outside of rendering -- for example, record deserialization errors in a
|
@@ -373,7 +373,7 @@ module ActionMailer
|
|
373
373
|
# end
|
374
374
|
# end
|
375
375
|
#
|
376
|
-
#
|
376
|
+
# == Previewing emails
|
377
377
|
#
|
378
378
|
# You can preview your email templates visually by adding a mailer preview file to the
|
379
379
|
# <tt>ActionMailer::Base.preview_paths</tt>. Since most emails do something interesting
|
@@ -410,7 +410,7 @@ module ActionMailer
|
|
410
410
|
# and <tt>register_preview_interceptor</tt> if they should operate on both sending and
|
411
411
|
# previewing emails.
|
412
412
|
#
|
413
|
-
#
|
413
|
+
# == Configuration options
|
414
414
|
#
|
415
415
|
# These options are specified on the class level, like
|
416
416
|
# <tt>ActionMailer::Base.raise_delivery_errors = true</tt>
|
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: 7.1.
|
4
|
+
version: 7.1.2
|
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: 2023-10
|
11
|
+
date: 2023-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.1.
|
19
|
+
version: 7.1.2
|
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: 7.1.
|
26
|
+
version: 7.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 7.1.
|
33
|
+
version: 7.1.2
|
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: 7.1.
|
40
|
+
version: 7.1.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionview
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 7.1.
|
47
|
+
version: 7.1.2
|
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: 7.1.
|
54
|
+
version: 7.1.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activejob
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 7.1.
|
61
|
+
version: 7.1.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 7.1.
|
68
|
+
version: 7.1.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mail
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,10 +182,10 @@ licenses:
|
|
182
182
|
- MIT
|
183
183
|
metadata:
|
184
184
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
185
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
186
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
185
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.2/actionmailer/CHANGELOG.md
|
186
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.2/
|
187
187
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
188
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
188
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.2/actionmailer
|
189
189
|
rubygems_mfa_required: 'true'
|
190
190
|
post_install_message:
|
191
191
|
rdoc_options: []
|