actionmailer 7.1.1 → 7.1.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
- data/lib/action_mailer/railtie.rb +0 -10
- 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: 284891e2f4adce1c3ec311a3348cca632838e1357882c8846d84cb7a9b533a0a
|
4
|
+
data.tar.gz: 3f080027773bce76dd67359fa725c38046305eaddc00269e0a11db034af81ec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd29e9434c2489d3fbfc596fc3c4245a51d87ac967c8b3da109a9cb7058f4d664cda9b4d68a284dd9412f7295d3bdaf791350d1e3d6218ff6b17804d2c22ba2
|
7
|
+
data.tar.gz: b70825c2051ca3a3c49f71cdeabbd403d48b20472cc5b7cdb36082033761f909b0faa5912d18a47a80e1357b296b96003587e198a03ee24bc589b3ef8d73f05f
|
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>
|
@@ -71,16 +71,6 @@ module ActionMailer
|
|
71
71
|
initializer "action_mailer.set_autoload_paths", before: :set_autoload_paths do |app|
|
72
72
|
options = app.config.action_mailer
|
73
73
|
app.config.paths["test/mailers/previews"].concat(options.preview_paths)
|
74
|
-
|
75
|
-
# Preview paths configuration needs a pass.
|
76
|
-
#
|
77
|
-
# config.paths is cached as soon as it is accessed. Therefore, mutating
|
78
|
-
# paths["test/mailers/previews"] does not guarantee config.autoload_paths
|
79
|
-
# is going to include them.
|
80
|
-
#
|
81
|
-
# If config.paths was accessed before, config.autoload_paths is going to
|
82
|
-
# have whatever paths["test/mailers/previews"] had when cached.
|
83
|
-
app.config.autoload_paths.concat(options.preview_paths)
|
84
74
|
end
|
85
75
|
|
86
76
|
initializer "action_mailer.compile_config_methods" do
|
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.3
|
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:
|
11
|
+
date: 2024-01-16 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.3
|
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.3
|
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.3
|
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.3
|
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.3
|
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.3
|
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.3
|
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.3
|
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.3/actionmailer/CHANGELOG.md
|
186
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.3/
|
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.3/actionmailer
|
189
189
|
rubygems_mfa_required: 'true'
|
190
190
|
post_install_message:
|
191
191
|
rdoc_options: []
|