Skip to content

Commit b8ad411

Browse files
committed
Merge branch 'master' into inflector-with-lru-cache
2 parents 3360157 + 3064d64 commit b8ad411

File tree

104 files changed

+698
-4946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+698
-4946
lines changed

RAILS_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0.beta1
1+
4.1.0.beta

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ We encourage you to contribute to Ruby on Rails! Please check out the
7070

7171
## Code Status
7272

73-
* [![Build Status](https://secure.travis-ci.org/rails/rails.png)](http://travis-ci.org/rails/rails)
73+
* [![Build Status](https://api.travis-ci.org/rails/rails.png)](https://travis-ci.org/rails/rails)
7474
* [![Dependencies](https://gemnasium.com/rails/rails.png?travis)](https://gemnasium.com/rails/rails)
7575

7676
## License

actionmailer/CHANGELOG.md

Lines changed: 2 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,3 @@
1-
## Rails 4.0.0 (unreleased) ##
1+
* No changes.
22

3-
4-
## Rails 4.0.0.beta1 (February 25, 2013) ##
5-
6-
* Allow passing interpolations to `#default_i18n_subject`, e.g.:
7-
8-
# config/locales/en.yml
9-
en:
10-
user_mailer:
11-
welcome:
12-
subject: 'Hello, %{username}'
13-
14-
# app/mailers/user_mailer.rb
15-
class UserMailer < ActionMailer::Base
16-
def welcome(user)
17-
mail(subject: default_i18n_subject(username: user.name))
18-
end
19-
end
20-
21-
*Olek Janiszewski*
22-
23-
* Eager loading made to use relation's `in_clause_length` instead of host's one.
24-
Fixes #8474.
25-
26-
*Boris Staal*
27-
28-
* Explicit multipart messages no longer set the order of the MIME parts.
29-
30-
*Nate Berkopec*
31-
32-
* Do not render views when `mail` isn't called. Fixes #7761.
33-
34-
*Yves Senn*
35-
36-
* Allow delivery method options to be set per mail instance.
37-
38-
If your SMTP delivery settings are dynamic, you can now override settings
39-
per mail instance for e.g.
40-
41-
def my_mailer(user, company)
42-
mail to: user.email, subject: "Welcome!",
43-
delivery_method_options: { user_name: company.smtp_user,
44-
password: company.smtp_password }
45-
end
46-
47-
This will ensure that your default SMTP settings will be overridden
48-
by the company specific ones. You only have to override the settings
49-
that are dynamic and leave the static setting in your environment
50-
configuration file (e.g. `config/environments/production.rb`).
51-
52-
*Aditya Sanghi*
53-
54-
* Allow to set default Action Mailer options via `config.action_mailer.default_options=`. *Robert Pankowecki*
55-
56-
* Raise an `ActionView::MissingTemplate` exception when no implicit template could be found. *Damien Mathieu*
57-
58-
* Allow callbacks to be defined in mailers similar to `ActionController::Base`. You can configure default
59-
settings, headers, attachments, delivery settings or change delivery using
60-
`before_filter`, `after_filter`, etc. *Justin S. Leitgeb*
61-
62-
Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/actionmailer/CHANGELOG.md) for previous changes.
3+
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionmailer/CHANGELOG.md) for previous changes.

actionmailer/README.rdoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ simply call the method and optionally call +deliver+ on the return value.
6767

6868
Calling the method returns a Mail Message object:
6969

70-
message = Notifier.welcome # => Returns a Mail::Message object
71-
message.deliver # => delivers the email
70+
message = Notifier.welcome("david@loudthinking.com") # => Returns a Mail::Message object
71+
message.deliver # => delivers the email
7272

7373
Or you can just chain the methods together like:
7474

75-
Notifier.welcome.deliver # Creates the email and sends it immediately
75+
Notifier.welcome("david@loudthinking.com").deliver # Creates the email and sends it immediately
7676

7777
== Setting defaults
7878

@@ -119,8 +119,7 @@ trivial case like this:
119119
rails runner 'Mailman.receive(STDIN.read)'
120120

121121
However, invoking Rails in the runner for each mail to be received is very resource intensive. A single
122-
instance of Rails should be run within a daemon, if it is going to be utilized to process more than just
123-
a limited number of email.
122+
instance of Rails should be run within a daemon, if it is going to process more than just a limited amount of email.
124123

125124
== Configuration
126125

actionmailer/lib/action_mailer/base.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ module ActionMailer
334334
# and starts to use it.
335335
# * <tt>:openssl_verify_mode</tt> - When using TLS, you can set how OpenSSL checks the certificate. This is
336336
# really useful if you need to validate a self-signed and/or a wildcard certificate. You can use the name
337-
# of an OpenSSL verify constant ('none', 'peer', 'client_once','fail_if_no_peer_cert') or directly the
338-
# constant (OpenSSL::SSL::VERIFY_NONE, OpenSSL::SSL::VERIFY_PEER,...).
337+
# of an OpenSSL verify constant ('none', 'peer', 'client_once', 'fail_if_no_peer_cert') or directly the
338+
# constant (OpenSSL::SSL::VERIFY_NONE, OpenSSL::SSL::VERIFY_PEER, ...).
339339
#
340340
# * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
341341
# * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
@@ -596,9 +596,9 @@ def attachments
596596
# class method:
597597
#
598598
# class Notifier < ActionMailer::Base
599-
# self.default from: 'no-reply@test.lindsaar.net',
600-
# bcc: 'email_logger@test.lindsaar.net',
601-
# reply_to: 'bounces@test.lindsaar.net'
599+
# default from: 'no-reply@test.lindsaar.net',
600+
# bcc: 'email_logger@test.lindsaar.net',
601+
# reply_to: 'bounces@test.lindsaar.net'
602602
# end
603603
#
604604
# If you need other headers not listed above, you can either pass them in

actionmailer/lib/action_mailer/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module ActionMailer
22
# Returns the version of the currently loaded ActionMailer as a Gem::Version
33
def self.version
4-
Gem::Version.new "4.0.0.beta1"
4+
Gem::Version.new "4.1.0.beta"
55
end
66

77
module VERSION #:nodoc:

0 commit comments

Comments
 (0)