actionmailer 6.0.0.beta3 → 6.0.0.rc1

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: f5e3154744057de8ab2114d6229bcd6902877937d6b4162466a3ce9f7c3b8515
4
+ data.tar.gz: 062db66f8b55914a097b9b05ce7a40f40ba7f71de122265db44444adabb70525
5
5
  SHA512:
6
- metadata.gz: '09749d5bde90657bdf3e8ed4b7f6265a8b4c3460655935a479cb5276897785ee0568979f331198f0b6e7f565924003101885c01d7db0301cea186d2127cc8f8b'
7
- data.tar.gz: 50fef8ca46cb960b8762f3a59f9fa2debd0b955002cf5756b642230ec1bbae94544ff340c875acaf9d86c13b8dba1c7773ea2d6ee3bfa8458d8f9b363a3fed0a
6
+ metadata.gz: 502aa2da3aeb29f834ecf1428d484bb2d4f5d138e12d6ef1ed30bfe33741faea947eccf079b8acbd88334cfcec3c5a45fe206079a8d854aa8420ff00b5385f43
7
+ data.tar.gz: c67980d53176a64fd754b8910a59bb5a87b9fa6d01e3f280689ba2d78d0a03041146214de20ca104caa8887432826a0fa6d9ac3a6ef290b29a9b543a9561ec4f
@@ -1,3 +1,8 @@
1
+ ## Rails 6.0.0.rc1 (April 24, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 6.0.0.beta3 (March 11, 2019) ##
2
7
 
3
8
  * 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
 
@@ -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
@@ -10,7 +10,7 @@ module ActionMailer
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 0
13
- PRE = "beta3"
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  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.0.rc1
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-04-24 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.0.rc1
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.0.rc1
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.0.rc1
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.0.rc1
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.0.rc1
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.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -118,12 +118,12 @@ 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
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.0.rc1/actionmailer
126
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.0.rc1/actionmailer/CHANGELOG.md
127
127
  post_install_message:
128
128
  rdoc_options: []
129
129
  require_paths: