Skip to content

Commit

Permalink
Start Rails 5 development 🎉
Browse files Browse the repository at this point in the history
We will support only Ruby >= 2.1.

But right now we don't accept pull requests with syntax changes to drop
support to Ruby 1.9.
  • Loading branch information
rafaelfranca committed Nov 28, 2014
1 parent ee614af commit f25ad07
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 2,746 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Expand Up @@ -16,18 +16,12 @@ env:
- "GEM=ar:postgresql"
- "GEM=aj:integration"
rvm:
- 1.9.3
- 2.0.0
- 2.1
- ruby-head
- rbx-2
- jruby
matrix:
allow_failures:
- rvm: 1.9.3
env: "GEM=ar:mysql"
- rvm: 2.0.0
env: "GEM=ar:mysql"
- rvm: ruby-head
env: "GEM=ar:mysql"
- rvm: rbx-2
Expand Down
2 changes: 1 addition & 1 deletion RAILS_VERSION
@@ -1 +1 @@
4.2.0.beta4
5.0.0.alpha
64 changes: 1 addition & 63 deletions actionmailer/CHANGELOG.md
@@ -1,63 +1 @@
* `MailerGenerator` now generates layouts by default. The HTML mailer layout
now includes `<html>` and `<body>` tags which improve the spam rating in
some spam detection engines. Mailers now inherit from `ApplicationMailer`
which sets the default layout.

*Andy Jeffries*

* `link_to` and `url_for` now generate URLs by default in templates.
Passing `only_path: false` is no longer needed.

Fixes #16497 and #16589.

*Xavier Noria*, *Richard Schneeman*

* Attachments can now be added while rendering the mail template.

Fixes #16974.

*Christian Felder*

* Add `#deliver_later` and `#deliver_now` methods and deprecate `#deliver` in
favor of `#deliver_now`. `#deliver_later` will enqueue a job to render and
deliver the mail instead of delivering it immediately. The job is enqueued
using the new Active Job framework in Rails and will use the queue that you
have configured in Rails.

*DHH*, *Abdelkader Boudih*, *Cristian Bica*

* `ActionMailer::Previews` are now class methods instead of instance methods.

*Cristian Bica*

* Deprecate `*_path` helpers in email views. They generated broken links in
email views and were not the intention of most developers. The `*_url`
helper is recommended instead.

*Richard Schneeman*

* Raise an exception when attachments are added after `mail` is called.
This is a safeguard to prevent invalid emails.

Fixes #16163.

*Yves Senn*

* Add `config.action_mailer.show_previews` configuration option.

This configuration option can be used to enable the mail preview in
environments other than development (such as staging).

Defaults to `true` in development and `false` elsewhere.

*Leonard Garvey*

* Allow preview interceptors to be registered through
`config.action_mailer.preview_interceptors`.

See #15739.

*Yves Senn*

Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionmailer/CHANGELOG.md)
for previous changes.
Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/actionmailer/CHANGELOG.md) for previous changes.
6 changes: 3 additions & 3 deletions actionmailer/lib/action_mailer/gem_version.rb
Expand Up @@ -5,10 +5,10 @@ def self.gem_version
end

module VERSION
MAJOR = 4
MINOR = 2
MAJOR = 5
MINOR = 0
TINY = 0
PRE = "beta4"
PRE = "alpha"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down

0 comments on commit f25ad07

Please sign in to comment.