actionmailer 6.0.0.beta3 → 6.0.2.rc2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e5d07d9ee3f318af4a4829cf4431bf6cca8f8ce76916d2ceaad435eca335c7a
4
- data.tar.gz: 7ae7c5e4f893e668f7068675cf0a6a002a615255a8375ccfa019b24a8de89c12
3
+ metadata.gz: 1eccd23773deaf8e6e0e55deee50fe801adc0321e1cdc535a1b5cd173cc0cfaa
4
+ data.tar.gz: 66a79bff21ba9efd460b5cefd0fa3ebd04b8d7c6b3f0196c7e294629320ab1f7
5
5
  SHA512:
6
- metadata.gz: '09749d5bde90657bdf3e8ed4b7f6265a8b4c3460655935a479cb5276897785ee0568979f331198f0b6e7f565924003101885c01d7db0301cea186d2127cc8f8b'
7
- data.tar.gz: 50fef8ca46cb960b8762f3a59f9fa2debd0b955002cf5756b642230ec1bbae94544ff340c875acaf9d86c13b8dba1c7773ea2d6ee3bfa8458d8f9b363a3fed0a
6
+ metadata.gz: a7d3ba3c67cfed55e0843719ff403ad9ab7bc2a251d925ae61570e9d6f8e2d9e020492005b518b5111d2d14967e2b3a1f4819e3c1a6fcc56e3c765d373707fea
7
+ data.tar.gz: 192dbc36c241d4015d077b950a542fcdbedcf624d2ff83ac7c6371231ff0b7730a0dd5adbff798f5617bdc385abc1dc00de9167422fc38d912d5362635e8aade
@@ -1,3 +1,30 @@
1
+ ## Rails 6.0.2.rc2 (December 09, 2019) ##
2
+
3
+ * Fix ActionMailer assertions don't work for parameterized mail with legacy delivery job.
4
+
5
+ *bogdanvlviv*
6
+
7
+
8
+ ## Rails 6.0.1 (November 5, 2019) ##
9
+
10
+ * No changes.
11
+
12
+
13
+ ## Rails 6.0.0 (August 16, 2019) ##
14
+
15
+ * No changes.
16
+
17
+
18
+ ## Rails 6.0.0.rc2 (July 22, 2019) ##
19
+
20
+ * No changes.
21
+
22
+
23
+ ## Rails 6.0.0.rc1 (April 24, 2019) ##
24
+
25
+ * No changes.
26
+
27
+
1
28
  ## Rails 6.0.0.beta3 (March 11, 2019) ##
2
29
 
3
30
  * No changes.
@@ -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
- * http://api.rubyonrails.org
133
+ * https://api.rubyonrails.org
132
134
 
133
135
  Bug reports for the Ruby on Rails project can be filed here:
134
136
 
@@ -408,7 +408,7 @@ module ActionMailer
408
408
  # really useful if you need to validate a self-signed and/or a wildcard certificate. You can use the name
409
409
  # of an OpenSSL verify constant (<tt>'none'</tt> or <tt>'peer'</tt>) or directly the constant
410
410
  # (<tt>OpenSSL::SSL::VERIFY_NONE</tt> or <tt>OpenSSL::SSL::VERIFY_PEER</tt>).
411
- # <tt>:ssl/:tls</tt> Enables the SMTP connection to use SMTP/TLS (SMTPS: SMTP over direct TLS connection)
411
+ # * <tt>:ssl/:tls</tt> Enables the SMTP connection to use SMTP/TLS (SMTPS: SMTP over direct TLS connection)
412
412
  #
413
413
  # * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
414
414
  # * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
@@ -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, &Proc.new)
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
- self.formats = [template.format]
976
+ format = template.format || self.formats.first
977
977
  {
978
- body: render(template: template),
979
- content_type: template.type.to_s
978
+ body: render(template: template, formats: [format]),
979
+ content_type: Mime[format].to_s
980
980
  }
981
981
  end
982
982
  end
@@ -9,8 +9,8 @@ module ActionMailer
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 0
13
- PRE = "beta3"
12
+ TINY = 2
13
+ PRE = "rc2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -156,7 +156,8 @@ module ActionMailer
156
156
  def delivery_job_filter(job)
157
157
  job_class = job.is_a?(Hash) ? job.fetch(:job) : job.class
158
158
 
159
- Base.descendants.map(&:delivery_job).include?(job_class)
159
+ Base.descendants.map(&:delivery_job).include?(job_class) ||
160
+ ActionMailer::Parameterized::DeliveryJob == job_class
160
161
  end
161
162
  end
162
163
  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.beta3
4
+ version: 6.0.2.rc2
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-03-13 00:00:00.000000000 Z
11
+ date: 2019-12-09 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.beta3
19
+ version: 6.0.2.rc2
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.beta3
26
+ version: 6.0.2.rc2
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.beta3
33
+ version: 6.0.2.rc2
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.beta3
40
+ version: 6.0.2.rc2
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.beta3
47
+ version: 6.0.2.rc2
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.beta3
54
+ version: 6.0.2.rc2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -118,12 +118,15 @@ 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: http://rubyonrails.org
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.beta3/actionmailer
126
- changelog_uri: https://github.com/rails/rails/blob/v6.0.0.beta3/actionmailer/CHANGELOG.md
125
+ bug_tracker_uri: https://github.com/rails/rails/issues
126
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc2/actionmailer/CHANGELOG.md
127
+ documentation_uri: https://api.rubyonrails.org/v6.0.2.rc2/
128
+ mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
129
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc2/actionmailer
127
130
  post_install_message:
128
131
  rdoc_options: []
129
132
  require_paths:
@@ -140,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
143
  version: 1.3.1
141
144
  requirements:
142
145
  - none
143
- rubygems_version: 3.0.1
146
+ rubygems_version: 3.0.3
144
147
  signing_key:
145
148
  specification_version: 4
146
149
  summary: Email composition and delivery framework (part of Rails).