actionmailer 5.1.4 → 5.1.5.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 +5 -5
- data/CHANGELOG.md +8 -0
- data/lib/action_mailer/base.rb +11 -1
- data/lib/action_mailer/gem_version.rb +2 -2
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0e771bf4f77e5b3d50458a61bdb22c27895440ab288b9c040a0e4cc3e2753d59
|
4
|
+
data.tar.gz: 3f3f5afa0d8b871eda09075ef31e5be5702a4108744028de18024e368068fb2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d66910fe1e0bfb26e7f98f767ccf9539e49a32a957976e7a42cb9d5146fa6365307a95b2ac243228889c771a39934fa4dbfea070d9ab7d7c841bdc927cd04fc
|
7
|
+
data.tar.gz: d1df44a8fce81867b83a6d56ae67f3f4e15650b001d8e75a90f27515842f33ce421fa38fb8bd0b9d85d1062b7d03123e07d94a0e82688186b073423702b1016d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## Rails 5.1.5.rc1 (February 01, 2018) ##
|
2
|
+
|
3
|
+
* Bring back proc with arity of 1 in `ActionMailer::Base.default` proc
|
4
|
+
since it was supported in Rails 5.0 but not deprecated.
|
5
|
+
|
6
|
+
*Jimmy Bourassa*
|
7
|
+
|
8
|
+
|
1
9
|
## Rails 5.1.4 (September 07, 2017) ##
|
2
10
|
|
3
11
|
* No changes.
|
data/lib/action_mailer/base.rb
CHANGED
@@ -891,7 +891,7 @@ module ActionMailer
|
|
891
891
|
default_values = self.class.default.map do |key, value|
|
892
892
|
[
|
893
893
|
key,
|
894
|
-
|
894
|
+
compute_default(value)
|
895
895
|
]
|
896
896
|
end.to_h
|
897
897
|
|
@@ -900,6 +900,16 @@ module ActionMailer
|
|
900
900
|
headers_with_defaults
|
901
901
|
end
|
902
902
|
|
903
|
+
def compute_default(value)
|
904
|
+
return value unless value.is_a?(Proc)
|
905
|
+
|
906
|
+
if value.arity == 1
|
907
|
+
instance_exec(self, &value)
|
908
|
+
else
|
909
|
+
instance_exec(&value)
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
903
913
|
def assign_headers_to_message(message, headers)
|
904
914
|
assignable = headers.except(:parts_order, :content_type, :body, :template_name,
|
905
915
|
:template_path, :delivery_method, :delivery_method_options)
|
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: 5.1.
|
4
|
+
version: 5.1.5.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:
|
11
|
+
date: 2018-02-01 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: 5.1.
|
19
|
+
version: 5.1.5.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: 5.1.
|
26
|
+
version: 5.1.5.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: 5.1.
|
33
|
+
version: 5.1.5.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: 5.1.
|
40
|
+
version: 5.1.5.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: 5.1.
|
47
|
+
version: 5.1.5.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: 5.1.
|
54
|
+
version: 5.1.5.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mail
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,7 +120,9 @@ files:
|
|
120
120
|
homepage: http://rubyonrails.org
|
121
121
|
licenses:
|
122
122
|
- MIT
|
123
|
-
metadata:
|
123
|
+
metadata:
|
124
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.1.5.rc1/actionmailer
|
125
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.1.5.rc1/actionmailer/CHANGELOG.md
|
124
126
|
post_install_message:
|
125
127
|
rdoc_options: []
|
126
128
|
require_paths:
|
@@ -132,13 +134,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
134
|
version: 2.2.2
|
133
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
136
|
requirements:
|
135
|
-
- - "
|
137
|
+
- - ">"
|
136
138
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
139
|
+
version: 1.3.1
|
138
140
|
requirements:
|
139
141
|
- none
|
140
142
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.7.3
|
142
144
|
signing_key:
|
143
145
|
specification_version: 4
|
144
146
|
summary: Email composition, delivery, and receiving framework (part of Rails).
|