actionmailer 7.0.10 → 7.1.0.beta1
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.
Potentially problematic release.
This version of actionmailer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +85 -147
- data/MIT-LICENSE +1 -1
- data/README.rdoc +2 -2
- data/lib/action_mailer/base.rb +57 -46
- data/lib/action_mailer/callbacks.rb +31 -0
- data/lib/action_mailer/delivery_methods.rb +5 -3
- data/lib/action_mailer/deprecator.rb +7 -0
- data/lib/action_mailer/gem_version.rb +4 -4
- data/lib/action_mailer/inline_preview_interceptor.rb +2 -0
- data/lib/action_mailer/log_subscriber.rb +4 -0
- data/lib/action_mailer/mail_delivery_job.rb +7 -2
- data/lib/action_mailer/mail_helper.rb +5 -11
- data/lib/action_mailer/message_delivery.rb +20 -12
- data/lib/action_mailer/parameterized.rb +7 -1
- data/lib/action_mailer/preview.rb +32 -8
- data/lib/action_mailer/queued_delivery.rb +12 -0
- data/lib/action_mailer/railtie.rb +21 -16
- data/lib/action_mailer/rescuable.rb +2 -0
- data/lib/action_mailer/test_case.rb +9 -4
- data/lib/action_mailer/test_helper.rb +134 -11
- data/lib/action_mailer/version.rb +1 -1
- data/lib/action_mailer.rb +10 -2
- data/lib/rails/generators/mailer/USAGE +12 -8
- metadata +24 -18
data/lib/action_mailer.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright (c)
|
|
4
|
+
# Copyright (c) David Heinemeier Hansson
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining
|
|
7
7
|
# a copy of this software and associated documentation files (the
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
require "abstract_controller"
|
|
27
27
|
require "action_mailer/version"
|
|
28
|
+
require "action_mailer/deprecator"
|
|
28
29
|
|
|
29
30
|
# Common Active Support usage in Action Mailer
|
|
30
31
|
require "active_support"
|
|
@@ -34,6 +35,7 @@ require "active_support/core_ext/module/attr_internal"
|
|
|
34
35
|
require "active_support/core_ext/string/inflections"
|
|
35
36
|
require "active_support/lazy_load_hooks"
|
|
36
37
|
|
|
38
|
+
# :include: actionmailer/README.rdoc
|
|
37
39
|
module ActionMailer
|
|
38
40
|
extend ::ActiveSupport::Autoload
|
|
39
41
|
|
|
@@ -42,6 +44,7 @@ module ActionMailer
|
|
|
42
44
|
end
|
|
43
45
|
|
|
44
46
|
autoload :Base
|
|
47
|
+
autoload :Callbacks
|
|
45
48
|
autoload :DeliveryMethods
|
|
46
49
|
autoload :InlinePreviewInterceptor
|
|
47
50
|
autoload :MailHelper
|
|
@@ -52,12 +55,17 @@ module ActionMailer
|
|
|
52
55
|
autoload :TestHelper
|
|
53
56
|
autoload :MessageDelivery
|
|
54
57
|
autoload :MailDeliveryJob
|
|
58
|
+
autoload :QueuedDelivery
|
|
55
59
|
|
|
56
60
|
def self.eager_load!
|
|
57
61
|
super
|
|
58
62
|
|
|
59
63
|
require "mail"
|
|
60
64
|
Mail.eager_autoload!
|
|
65
|
+
|
|
66
|
+
Base.descendants.each do |mailer|
|
|
67
|
+
mailer.eager_load! unless mailer.abstract?
|
|
68
|
+
end
|
|
61
69
|
end
|
|
62
70
|
end
|
|
63
71
|
|
|
@@ -65,6 +73,6 @@ autoload :Mime, "action_dispatch/http/mime_type"
|
|
|
65
73
|
|
|
66
74
|
ActiveSupport.on_load(:action_view) do
|
|
67
75
|
ActionView::Base.default_formats ||= Mime::SET.symbols
|
|
68
|
-
ActionView::Template
|
|
76
|
+
ActionView::Template.mime_types_implementation = Mime
|
|
69
77
|
ActionView::LookupContext::DetailsKey.clear
|
|
70
78
|
end
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
Description:
|
|
2
|
-
============
|
|
3
2
|
Generates a new mailer and its views. Passes the mailer name, either
|
|
4
3
|
CamelCased or under_scored, and an optional list of emails as arguments.
|
|
5
4
|
|
|
6
5
|
This generates a mailer class in app/mailers and invokes your template
|
|
7
6
|
engine and test framework generators.
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Examples:
|
|
9
|
+
`bin/rails generate mailer sign_up`
|
|
10
|
+
|
|
11
|
+
creates a sign up mailer class, views, and test:
|
|
12
|
+
Mailer: app/mailers/sign_up_mailer.rb
|
|
13
|
+
Views: app/views/sign_up_mailer/signup.text.erb [...]
|
|
14
|
+
Test: test/mailers/sign_up_mailer_test.rb
|
|
15
|
+
|
|
16
|
+
`bin/rails generate mailer notifications sign_up forgot_password invoice`
|
|
17
|
+
|
|
18
|
+
creates a notifications mailer with sign_up, forgot_password, and invoice actions.
|
|
19
|
+
|
|
12
20
|
|
|
13
|
-
creates a Notifications mailer class, views, and test:
|
|
14
|
-
Mailer: app/mailers/notifications_mailer.rb
|
|
15
|
-
Views: app/views/notifications_mailer/signup.text.erb [...]
|
|
16
|
-
Test: test/mailers/notifications_mailer_test.rb
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionmailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.1.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: activesupport
|
|
@@ -15,56 +16,56 @@ dependencies:
|
|
|
15
16
|
requirements:
|
|
16
17
|
- - '='
|
|
17
18
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 7.0.
|
|
19
|
+
version: 7.1.0.beta1
|
|
19
20
|
type: :runtime
|
|
20
21
|
prerelease: false
|
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
23
|
requirements:
|
|
23
24
|
- - '='
|
|
24
25
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 7.0.
|
|
26
|
+
version: 7.1.0.beta1
|
|
26
27
|
- !ruby/object:Gem::Dependency
|
|
27
28
|
name: actionpack
|
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
31
|
- - '='
|
|
31
32
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 7.0.
|
|
33
|
+
version: 7.1.0.beta1
|
|
33
34
|
type: :runtime
|
|
34
35
|
prerelease: false
|
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
37
|
requirements:
|
|
37
38
|
- - '='
|
|
38
39
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 7.0.
|
|
40
|
+
version: 7.1.0.beta1
|
|
40
41
|
- !ruby/object:Gem::Dependency
|
|
41
42
|
name: actionview
|
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
|
43
44
|
requirements:
|
|
44
45
|
- - '='
|
|
45
46
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 7.0.
|
|
47
|
+
version: 7.1.0.beta1
|
|
47
48
|
type: :runtime
|
|
48
49
|
prerelease: false
|
|
49
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
51
|
requirements:
|
|
51
52
|
- - '='
|
|
52
53
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 7.0.
|
|
54
|
+
version: 7.1.0.beta1
|
|
54
55
|
- !ruby/object:Gem::Dependency
|
|
55
56
|
name: activejob
|
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
|
57
58
|
requirements:
|
|
58
59
|
- - '='
|
|
59
60
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 7.0.
|
|
61
|
+
version: 7.1.0.beta1
|
|
61
62
|
type: :runtime
|
|
62
63
|
prerelease: false
|
|
63
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
65
|
requirements:
|
|
65
66
|
- - '='
|
|
66
67
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 7.0.
|
|
68
|
+
version: 7.1.0.beta1
|
|
68
69
|
- !ruby/object:Gem::Dependency
|
|
69
70
|
name: mail
|
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -133,14 +134,14 @@ dependencies:
|
|
|
133
134
|
requirements:
|
|
134
135
|
- - "~>"
|
|
135
136
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: '2.
|
|
137
|
+
version: '2.2'
|
|
137
138
|
type: :runtime
|
|
138
139
|
prerelease: false
|
|
139
140
|
version_requirements: !ruby/object:Gem::Requirement
|
|
140
141
|
requirements:
|
|
141
142
|
- - "~>"
|
|
142
143
|
- !ruby/object:Gem::Version
|
|
143
|
-
version: '2.
|
|
144
|
+
version: '2.2'
|
|
144
145
|
description: Email on Rails. Compose, deliver, and test emails using the familiar
|
|
145
146
|
controller/view pattern. First-class support for multipart email and attachments.
|
|
146
147
|
email: david@loudthinking.com
|
|
@@ -153,8 +154,10 @@ files:
|
|
|
153
154
|
- README.rdoc
|
|
154
155
|
- lib/action_mailer.rb
|
|
155
156
|
- lib/action_mailer/base.rb
|
|
157
|
+
- lib/action_mailer/callbacks.rb
|
|
156
158
|
- lib/action_mailer/collector.rb
|
|
157
159
|
- lib/action_mailer/delivery_methods.rb
|
|
160
|
+
- lib/action_mailer/deprecator.rb
|
|
158
161
|
- lib/action_mailer/gem_version.rb
|
|
159
162
|
- lib/action_mailer/inline_preview_interceptor.rb
|
|
160
163
|
- lib/action_mailer/log_subscriber.rb
|
|
@@ -163,6 +166,7 @@ files:
|
|
|
163
166
|
- lib/action_mailer/message_delivery.rb
|
|
164
167
|
- lib/action_mailer/parameterized.rb
|
|
165
168
|
- lib/action_mailer/preview.rb
|
|
169
|
+
- lib/action_mailer/queued_delivery.rb
|
|
166
170
|
- lib/action_mailer/railtie.rb
|
|
167
171
|
- lib/action_mailer/rescuable.rb
|
|
168
172
|
- lib/action_mailer/test_case.rb
|
|
@@ -177,11 +181,12 @@ licenses:
|
|
|
177
181
|
- MIT
|
|
178
182
|
metadata:
|
|
179
183
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
180
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
|
181
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
|
184
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.0.beta1/actionmailer/CHANGELOG.md
|
|
185
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.0.beta1/
|
|
182
186
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
183
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
|
187
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.0.beta1/actionmailer
|
|
184
188
|
rubygems_mfa_required: 'true'
|
|
189
|
+
post_install_message:
|
|
185
190
|
rdoc_options: []
|
|
186
191
|
require_paths:
|
|
187
192
|
- lib
|
|
@@ -192,12 +197,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
192
197
|
version: 2.7.0
|
|
193
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
199
|
requirements:
|
|
195
|
-
- - "
|
|
200
|
+
- - ">"
|
|
196
201
|
- !ruby/object:Gem::Version
|
|
197
|
-
version:
|
|
202
|
+
version: 1.3.1
|
|
198
203
|
requirements:
|
|
199
204
|
- none
|
|
200
|
-
rubygems_version: 3.
|
|
205
|
+
rubygems_version: 3.4.18
|
|
206
|
+
signing_key:
|
|
201
207
|
specification_version: 4
|
|
202
208
|
summary: Email composition and delivery framework (part of Rails).
|
|
203
209
|
test_files: []
|