actionmailer 4.0.0.beta1 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -10
- data/README.rdoc +2 -2
- data/lib/action_mailer/version.rb +7 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa60908ffcb2b97b334a14b0fc8c5fa89e57f600
|
4
|
+
data.tar.gz: aa94fce4e641d6f878651df96a1520f8b1c2704c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7839a2c43c8c17452f57236c0178129662a366d56343500472ffd6e64b7efdccca22e2b26585a71e97593c9e9420060e3928bcb185c13415bf9c287dcc727856
|
7
|
+
data.tar.gz: 11959e9af4a00f3ecaf83ad542c8d2c4515ae4e3cab9e215a6f9432e42eacfa8caf09fadbbe01c19f221d5cd42ff538ec30e6479c3586de2ab70399143aa9688
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## Rails 4.0.0 (unreleased) ##
|
2
|
+
|
3
|
+
|
1
4
|
## Rails 4.0.0.beta1 (February 25, 2013) ##
|
2
5
|
|
3
6
|
* Allow passing interpolations to `#default_i18n_subject`, e.g.:
|
@@ -18,24 +21,24 @@
|
|
18
21
|
*Olek Janiszewski*
|
19
22
|
|
20
23
|
* Eager loading made to use relation's `in_clause_length` instead of host's one.
|
21
|
-
|
24
|
+
Fixes #8474.
|
22
25
|
|
23
26
|
*Boris Staal*
|
24
27
|
|
25
28
|
* Explicit multipart messages no longer set the order of the MIME parts.
|
29
|
+
|
26
30
|
*Nate Berkopec*
|
27
31
|
|
28
|
-
* Do not render views when mail
|
29
|
-
Fix #7761
|
32
|
+
* Do not render views when `mail` isn't called. Fixes #7761.
|
30
33
|
|
31
34
|
*Yves Senn*
|
32
35
|
|
33
|
-
* Allow delivery method options to be set per mail instance
|
36
|
+
* Allow delivery method options to be set per mail instance.
|
34
37
|
|
35
|
-
If your
|
36
|
-
|
38
|
+
If your SMTP delivery settings are dynamic, you can now override settings
|
39
|
+
per mail instance for e.g.
|
37
40
|
|
38
|
-
def my_mailer(user,company)
|
41
|
+
def my_mailer(user, company)
|
39
42
|
mail to: user.email, subject: "Welcome!",
|
40
43
|
delivery_method_options: { user_name: company.smtp_user,
|
41
44
|
password: company.smtp_password }
|
@@ -44,14 +47,16 @@
|
|
44
47
|
This will ensure that your default SMTP settings will be overridden
|
45
48
|
by the company specific ones. You only have to override the settings
|
46
49
|
that are dynamic and leave the static setting in your environment
|
47
|
-
configuration file (e.g. config/environments/production.rb)
|
50
|
+
configuration file (e.g. `config/environments/production.rb`).
|
51
|
+
|
52
|
+
*Aditya Sanghi*
|
48
53
|
|
49
|
-
* Allow to set default Action Mailer options via `config.action_mailer.default_options
|
54
|
+
* Allow to set default Action Mailer options via `config.action_mailer.default_options=`. *Robert Pankowecki*
|
50
55
|
|
51
56
|
* Raise an `ActionView::MissingTemplate` exception when no implicit template could be found. *Damien Mathieu*
|
52
57
|
|
53
58
|
* Allow callbacks to be defined in mailers similar to `ActionController::Base`. You can configure default
|
54
59
|
settings, headers, attachments, delivery settings or change delivery using
|
55
|
-
`before_filter`, `after_filter
|
60
|
+
`before_filter`, `after_filter`, etc. *Justin S. Leitgeb*
|
56
61
|
|
57
62
|
Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/actionmailer/CHANGELOG.md) for previous changes.
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Action Mailer -- Easy email delivery and testing
|
2
2
|
|
3
|
-
Action Mailer is a framework for designing email
|
3
|
+
Action Mailer is a framework for designing email service layers. These layers
|
4
4
|
are used to consolidate code for sending out forgotten passwords, welcome
|
5
5
|
wishes on signup, invoices for billing, and any other use case that requires
|
6
6
|
a written notification to either a person or another system.
|
@@ -78,7 +78,7 @@ Or you can just chain the methods together like:
|
|
78
78
|
|
79
79
|
It is possible to set default values that will be used in every method in your Action Mailer class. To implement this functionality, you just call the public class method <tt>default</tt> which you get for free from ActionMailer::Base. This method accepts a Hash as the parameter. You can use any of the headers e-mail messages has, like <tt>:from</tt> as the key. You can also pass in a string as the key, like "Content-Type", but Action Mailer does this out of the box for you, so you won't need to worry about that. Finally, it is also possible to pass in a Proc that will get evaluated when it is needed.
|
80
80
|
|
81
|
-
Note that every value you set with this method will get
|
81
|
+
Note that every value you set with this method will get overwritten if you use the same key in your mailer method.
|
82
82
|
|
83
83
|
Example:
|
84
84
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module ActionMailer
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
PRE = "beta1"
|
2
|
+
# Returns the version of the currently loaded ActionMailer as a Gem::Version
|
3
|
+
def self.version
|
4
|
+
Gem::Version.new "4.0.0.rc1"
|
5
|
+
end
|
7
6
|
|
8
|
-
|
7
|
+
module VERSION #:nodoc:
|
8
|
+
MAJOR, MINOR, TINY, PRE = ActionMailer.version.segments
|
9
|
+
STRING = ActionMailer.version.to_s
|
9
10
|
end
|
10
11
|
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: 4.0.0.
|
4
|
+
version: 4.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: 2013-
|
11
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.0.
|
19
|
+
version: 4.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: 4.0.0.
|
26
|
+
version: 4.0.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mail
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|