Ruby on Rails

Web development that doesn't hurt

1b9d75a2f10beeda140e2b3ab4ac7584 Software Engineer
×

Welcome

This is rubyonrails.org's weblog feed.Enjoy it:-)

× Riding Rails
×

Rails 4.0.11.1 and 4.1.7.1 have been released

Hi everyone!

Rails 4.0.11.1 and 4.1.7.1 have been released!

These two releases contain only security fix that was already released as 4.0.12 and 4.1.8.
You can read more about the issue here (CVE-2014-7829).

4.0.12 and 4.1.8 were inadvertently based on their respective stable branches, and so incorporated
additional changes beyond those necessary to resolve the security issue. In keeping with our security
policy, it is our intention to include only the minimum necessary changes in security releases, to
ensure everyone can upgrade without fear of regressions. As those releases included unrelated changes,
we are providing new releases, based on the previous release, which contain only the security fix
itself.

If you have already successfully upgraded to 4.0.12 or 4.1.8, no further action is required.
Otherwise, if you are still on 4.0.11 or 4.1.7, please do upgrade to 4.0.11.1 or 4.1.7.1 at your
earliest convenience.

The 3.2.21 release did incorporate a second change, but that change was intended: by policy, minor
security-relevant bugs (which do not independently warrant a security release) are occasionally
backported to 3-2-stable, and rolled into a subsequent security release.

The commits for 4.0.11.1 can be found here,
and the commits for 4.1.7.1 can be found here.

Here are the checksums for 4.0.11.1:


$ shasum *4.0.11.1*

f35d8d54b15b83b25aa6a46aa57b58cd9888b5cc actionmailer-4.0.11.1.gem
9d656c7959dc913fc208fa7ffdab265b73abb8f1 actionpack-4.0.11.1.gem
bde6aa4985bff22ca7046f5ad855ccacee3e345e activemodel-4.0.11.1.gem
26d91f7d7f5cf828d25503326f6fe598f275cca3 activerecord-4.0.11.1.gem
2040d73aeb8ec84945e5ac5a1e060a703770f0a4 activesupport-4.0.11.1.gem
1dde2b45a0039ccef166030bdbc1948fa899a5e5 rails-4.0.11.1.gem
86cc0c06139bc085e830fbd0994a0bf7480e68dc railties-4.0.11.1.gem

Here are the checksums for 4.1.7.1:


$ shasum *4.1.7.1*

3e0c627e2f35293c7f963586ddedad84fe140c3b actionmailer-4.1.7.1.gem
038d1dd8eab2471f44cf456cbb8f94f4e413e069 actionpack-4.1.7.1.gem
6a6e2a188b58855748e0f400d6c562a779e76130 actionview-4.1.7.1.gem
6dcfeca9cb28490a4d3fde1cfbb9d14850130167 activemodel-4.1.7.1.gem
b1d5b4bab0873e712f270fdb7ad8acb81d487a73 activerecord-4.1.7.1.gem
0af0c9e374f1a83f06db82457c219b29556233ca activesupport-4.1.7.1.gem
1fbef83600552fc18d83e61c39da752c7d6ba07c rails-4.1.7.1.gem
f50d5902047d96b8836c3f6376ed9c212506268b railties-4.1.7.1.gem

<3<3<3<3


2014/11/19 19:16:18 by rafaelfranca

×

Rails 3.2.21, 4.0.12, and 4.1.8 have been released

Hello everyone!!! It's that time again.

I would like to announce that Rails 3.2.21, 4.0.12, and 4.1.8 have been released. These releases contain a security fix where the existence of arbitrary files on the file system can be leaked, but the contents of the file will not be leaked. The issue generally only impacts people who are using Rails to serve static assets, and will generally not impact people who use a proxy to serve static assets. This issue is similar to CVE-2014-7818, but is slightly different. You can read more about the issue here (CVE-2014-7829).

For ease of upgrading, the only changes in these releases are the security fixes.

Here are the checksums for the gems:


[aaron@TC release]$ shasum *3.2.21*

5f59bb7e463fa3a443593bdd650a258b34ae8db6 actionmailer-3.2.21.gem
1f7ffef317f7808aa3f6b3f63f292c136a827b7c actionpack-3.2.21.gem
aaf186bc935b66e52e43a5e5c8b0af37b0444ccc activemodel-3.2.21.gem
9e5645ea4536238a3fec7f04e6f74a22db9057ec activerecord-3.2.21.gem
fe64a4b4d5a0680ce2b05e4fb75d325454671c5f activeresource-3.2.21.gem
0a503dfc64a73980b18d799f9b80f02b3b1645b7 activesupport-3.2.21.gem
b757a3161412742fd9f0323ff7ab6b31212e115c rails-3.2.21.gem
9cb5de52049319e1c837be75deaab0eba3695e42 railties-3.2.21.gem
[aaron@TC release]$ shasum *4.0.12*
c62e361241fd26a7e31ed3a9c87489bc5a86b12f actionmailer-4.0.12.gem
f63c9d0e7a637c114b96cd864c12641e09eed373 actionpack-4.0.12.gem
2e9a64d08b9bcef0953132f1b9d4f295dfa167a4 activemodel-4.0.12.gem
d3e59b3c9a0c5fc9045783905f53e49d4d6bc1ba activerecord-4.0.12.gem
6bf2468d9466b019d2ffaf21e44cb7a4d4ed8dde activesupport-4.0.12.gem
d759db3bb1420c02c97852358e425b4a168198ff rails-4.0.12.gem
729345b543653507dfea3d2e158a870d49260548 railties-4.0.12.gem
[aaron@TC release]$ shasum *4.1.8*
db4fc0a8ac77332b96947480db7ff529c18ead44 actionmailer-4.1.8.gem
24cd5ff7bcc78a2d4997ebe6bc962f09e394f59e actionpack-4.1.8.gem
0c22174fbe03bf461aad27bf8ddebf7ae93988fa actionview-4.1.8.gem
2b2b98b8dfd96012b443a2ddf3cbf4267c378c4d activemodel-4.1.8.gem
f263ff5ee5a4436184390aaf825d5072c71afc4e activerecord-4.1.8.gem
c25e858743372f197ecfdbbbc5b1dbd71934947a activesupport-4.1.8.gem
4b96a78c669b7122f9ad905ee8f36772ac1bd8d9 rails-4.1.8.gem
cbae764aa4a635f37c7bb52c84028dc032e1afea railties-4.1.8.gem
[aaron@TC release]$

Happy RubyConf and have a great day!!! <3


2014/11/17 15:44:42 by tenderlove

×

[ANN] Rails 4.2.0.beta4 has been released!

The Rails team has just released Rails 4.2.0.beta4.

In addition to the security fixes in 4.2.0.beta3,
this new release includes a number of bug fixes for issues reported since the
4.2.0.beta2 release.

If all goes according to plan, this should be the last beta release for 4.2.0
before we move into the Release Candidates phase. We would like to thank all
of the early adopters who participated in the beta testing and reported issues,
as well as the 64 contributors who submitted patches to help our team address
these bugs.

Happy upgrading!


2014/10/30 22:00:00 by chancancode

×

Rails 3.2.20, 4.0.11, 4.1.7, and 4.2.0.beta3 have been released

Hello everyone!!! It's that time again.

I would like to announce that Rails 3.2.20, 4.0.11, 4.1.7, and 4.2.0.beta3 have been released. These releases contain a security fix where the existence of arbitrary files on the file system can be leaked, but the contents of the file will not be leaked. The issue generally only impacts people who are using Rails to serve static assets, and will generally not impact people who use a proxy to serve static assets. You can read more about the issue here (CVE-2014-7818). A release of sprockets has also been made to help with this issue. You can read about it here (CVE-2014-7819).

For ease of upgrading, the only changes in these releases are the security fixes.

Here are the checksums for the gems:


[aaron@TC release]$ shasum *3.2.20*

b14ca1ad923e035ab2a7785e657c5653447c3149 actionmailer-3.2.20.gem
d6fea767996a954e4bc95fd0ca101ec912fcb093 actionpack-3.2.20.gem
97f5bb424aee73fbbd319baab3fd35c3f5eeb5f4 activemodel-3.2.20.gem
32d76836675a4c88685c3904271b16d9d2338ce9 activerecord-3.2.20.gem
640d83a96accc24e6afcae3cc5b253e5d355983f activeresource-3.2.20.gem
d1d0a19a589c62278e7d9ac4275d5f8d75df20b3 activesupport-3.2.20.gem
f8b4d3c56d89760c02b37d4c67efd31dedd4df80 rails-3.2.20.gem
41c272d53dd748407210a2270ad17bc7c9f30594 railties-3.2.20.gem
[aaron@TC release]$ shasum *4.0.11*
9718b62f4428a7e4bbf66df4ac57dd82d197905a actionmailer-4.0.11.gem
f1aec3d29e781e3beb685852db00ecf495150077 actionpack-4.0.11.gem
2ba4ceeff0a76df850d6294e2e1da703f3f6e7cb activemodel-4.0.11.gem
714dca99a452adfec76b507241896ffd7978a254 activerecord-4.0.11.gem
2791791c5c1eeefb3eee76712656bf674a20867d activesupport-4.0.11.gem
56bb306d4f0309dcf3a804a97104a3ee26b64b94 rails-4.0.11.gem
243e265c879db8876cce8688374cb7f9bb752d7d railties-4.0.11.gem
[aaron@TC release]$ shasum *4.1.7*
4e4ce2530ff8773af784340e17e925b3b2c8cb20 actionmailer-4.1.7.gem
81628e433ca4335409677a33cfe9b56627f6ae1a actionpack-4.1.7.gem
7dc2626f5bc85379c55e49a712f5c0e060340ca8 actionview-4.1.7.gem
83c8be73d22973c843d43a988b27a449d2ca8a9d activemodel-4.1.7.gem
001156373c248a20c69bcf1451d6f7166dac3ddb activerecord-4.1.7.gem
217f25a911f8e89cd2834849232555cbc47ca850 activesupport-4.1.7.gem
a1d9bb181d718e7f6cf380136425444e627c2345 rails-4.1.7.gem
1b9c8d08afc8fa77786fef13c54d4e6985cdc6d6 railties-4.1.7.gem
[aaron@TC release]$ shasum *4.2.0*
e5d608e8ce32abdd73c73c91fd34cb8f7075a251 actionmailer-4.2.0.beta3.gem
2e2034c285943777ad325c35292e202a46b937c2 actionpack-4.2.0.beta3.gem
a008833cd1045c926fb6f36ee03e3d34499a0aa9 actionview-4.2.0.beta3.gem
02f4438363419c59b33d85b2dda4d4cf741a6098 activejob-4.2.0.beta3.gem
c8a7dc2134c885ad3b23d4c36be95abc1ec1b769 activemodel-4.2.0.beta3.gem
192e33ab3b9d54954ff834ce6ee7f67a9197cb36 activerecord-4.2.0.beta3.gem
00437ab52df0ed0dd9afe571d083c92c3cdbe361 activesupport-4.2.0.beta3.gem
ca81d6ac9fdd658775d32a6dbfe248ee13f5c87b rails-4.2.0.beta3.gem
cc302e363248e4bc2d245201f922c576f9fe6f15 railties-4.2.0.beta3.gem

Have a great day!!! <3


2014/10/30 18:16:55 by tenderlove

×

[ANN] Rails 4.2.0.beta2 has been released!

Happy Monday everyone!

Today the Rails team is happy to announce that we have released Rails
4.2.0.beta2.

Thanks to all the early adopters who have participated in the first round of
beta testing, we have identified a number of bugs, regressions and other
imperfections in the codebase. These problems have since been fixed and included
in this release.

Security Issues

This release also includes two security patches.

Web Console 2.0.0.beta4

Along with the Rails 4.2.0.beta2 release we also released Web Console 2.0.0.beta4
which includes a security fix.

If you are already using Web Console in development we recommend you to upgrade
to this new version of the gem.

Active Job vulnerability

We also fixed an Active Job bug that allowed String arguments to be deserialized
as if they were Global IDs, an object injection security vulnerability.

Breaking Changes

In addition to the security and bug fixes, some of the new APIs have also been
refined after further testing in real-world applications. This resulted in the
following list of breaking changes that are not backwards-compatible with
4.2.0.beta1:

Active Job

The Active Job API has been overhauled:


# The enqueueing method has changed from +enqueue+ to +perform_later+.

#
# In 4.2.0.beta1:
MyJob.enqueue(*args)
#
# In 4.2.0.beta2:
MyJob.perform_later(*args)

# The ways jobs are scheduled has changed.
#
# In 4.2.0.beta1:
MyJob.enqueue_at(Date.tomorrow.noon, record)
MyJob.enqueue_in(1.week, record)
#
# In 4.2.0.beta2:
MyJob.set(wait_until: Date.tomorrow.noon).perform_later(record)
MyJob.set(wait: 1.week).perform_later(record)
#
# You can also specify a queue to enqueue the job onto with this new API:
MyJob.set(queue: :low_priority).perform_later(record)


Action Mailer

The Action Mailer API has also undergone some changes:


# Two new methods +#deliver_now+ and +#deliver_now!+ were introduced for

# clarity. +#deliver+ and +#deliver!+ have been deprecated and applications are
# encouraged to use the +#deliver_*+ instead.
#
# In 4.2.0.beta1:
Notifier.welcome(User.first).deliver!
#
# In 4.2.0.beta2:
Notifier.welcome(User.first).deliver_now!

# The options for +#deliver_later+ and +#deliver_later!+ has changed to match
# those on Active Job.
#
# In 4.2.0.beta1:
Notifier.welcome(User.first).deliver_later!(in: 1.hour)
Notifier.welcome(User.first).deliver_later!(at: 10.hours.from_now)
#
# In 4.2.0.beta2:
Notifier.welcome(User.first).deliver_later!(wait: 1.hour)
Notifier.welcome(User.first).deliver_later!(wait_until: 10.hours.from_now)


Action Controller render behavior change

Historically, calling render "foo/bar" in a controller action is equivalent
to calling render file: "foo/bar". Since beta 2, this has been changed to mean
render template: "foo/bar" instead. This is due to a number of potential
security issues with the old default behavior. If you need to render a file,
please change your code to use the explicit form (render file: "foo/bar")
instead.

Full list of changes

As always, you can browse the Rails source code repository on GitHub to view the
full list of changes
that were included in this release.

Acknowledgement

The Rails team would like to thank the 66 people who contributed patches to make
this release possible!


2014/09/29 19:00:00 by chancancode

×

[ANN] Rails 4.1.6 and 4.0.10 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.6 and 4.0.10 have been released.

We are planning to produce one more bug fix release in the 4.0 series, targeted for early December.
In keeping with our maintenance policy, after the upcoming release of 4.2.0, the 4.0 series will be
retired. It will not receive further updates for either bug fixes or security issues. All users are
urged to migrate to 4.1 as soon as possible.

CHANGES since 4.0.9

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.10:


$ shasum *4.0.10*

4bd4b8a2be1a2a649f46e37b6dff3a2d8f86fd7d actionmailer-4.0.10.gem
45d76f39092149e46c31f9226dae71b3faa52012 actionpack-4.0.10.gem
08150685a471db48b240618b378ff22e3a9b7811 activemodel-4.0.10.gem
ed3f6b184b4b62b501e0d7876d8e2f946fe0ed31 activerecord-4.0.10.gem
7c886c946e835cbbfb09dc4b4daf7f1bf05db952 activesupport-4.0.10.gem
a2b8e24d83d5395f9532fcdbfa5c441d3f86e060 rails-4.0.10.gem
533c0589dadb4fc3bd5723bb9944464b545a88f3 railties-4.0.10.gem

Here are the checksums for 4.1.6:


$ shasum *4.1.6*

d6ab3d0aecb1cf97bd5a1050356b3151e4e8ef42 actionmailer-4.1.6.gem
ba7233c749a2229e11ef02acea2d114719ceac71 actionpack-4.1.6.gem
ed67c703dfb7d95e391da21f4f2aab52ae7bbfe4 actionview-4.1.6.gem
1a9ca827740d5e3e254b26886b19ea9094b407c5 activemodel-4.1.6.gem
69d77feb4ce141551875e2a4167d0f5529bd0526 activerecord-4.1.6.gem
dc838a42455b674b95c15bf7433552ffdf777a4f activesupport-4.1.6.gem
8f2ebf38a0a8d70d8f19916e0b51ece8a954ff8d rails-4.1.6.gem
c9b10576113567011d37fa28aa4e5ca99b2e4fd9 railties-4.1.6.gem

I'd like to thank you all, every contributor who helped with this release.


2014/09/12 18:40:03 by rafaelfranca

×

[ANN] Rails 4.1.6.rc2 and 4.0.10.rc2 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.6.rc2 and 4.0.10.rc2 have been released.

If no regressions are found expect the final release this Thursday, on September 11, 2014.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.0.9

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.10.rc2:


$ shasum *4.0.10.rc2*

16be6057a1af45d0eaf9e5bb95f0980f0498ed38 actionmailer-4.0.10.rc2.gem
b736f6ec57f14a08611bf94e9170a102bbcd235e actionpack-4.0.10.rc2.gem
7508c684dcfa38fca79640f7196fd437c6945be7 activemodel-4.0.10.rc2.gem
aef89eeadb957dac5ec21cce6e640f13fad301f0 activerecord-4.0.10.rc2.gem
1b6d2dfd4d69605d58de34eaa68bf9c98fedb581 activesupport-4.0.10.rc2.gem
7e3de742b723def7e0026b89e8c744822f66fe23 rails-4.0.10.rc2.gem
bb4f5083436987907c38dc019261b3477386b4b9 railties-4.0.10.rc2.gem

Here are the checksums for 4.1.6.rc2:


$ shasum *4.1.6.rc2*

8fbbefa7a1f87569b54b6b0444ccb42b112b8b4e actionmailer-4.1.6.rc2.gem
81c84fed39c32a013da3da7181eb81b41084c62f actionpack-4.1.6.rc2.gem
e750e2a53c16b3312a049c044c9f7d5e7ed1f228 actionview-4.1.6.rc2.gem
8f034fa15a6c364d818e28a0bdd5bc4bcc691025 activemodel-4.1.6.rc2.gem
8259ec18fbaaec162c4eaf344f2a4507322e049b activerecord-4.1.6.rc2.gem
c220cbad51271b9a2c4e2ef390a0060e66127323 activesupport-4.1.6.rc2.gem
1578350d0c58c5c5ce3e771541336c76728b9c34 rails-4.1.6.rc2.gem
d70a87ccb0d002b4c44cade8ce30a8ae6394313e railties-4.1.6.rc2.gem

I'd like to thank you all, every contributor who helped with this release.


2014/09/08 18:35:03 by rafaelfranca

×

Senny and Godfrey to Rails core, Yehuda to alumni

The Rails core team has just accepted Yves "Senny" Senn and Godfrey Chan into its ranks.

Yves had his first patch committed to Rails back in 2011 and has since racked up 1256 commits of improvements to the framework. He's a developer with 4teamwork from Bern, Switzerland, and we couldn't be happier to recognize his great work by admission to Rails core!

Godfrey Chan has been on a tear this year to help making everything Rails better. A lot of work and commits and reviews have come from Chan to ensure Rails 4.2 is the best it can be. He had his first commit in 2012, and has since racked up another 255. Welcome as well!

Finally, Yehuda Katz is retiring from active core participation and will join the hallowed halls of the Rails alumni. We thank him dearly for all he has done to improve Rails and Ruby. It's been a pleasure to argue with him endlessly over things big and small, and doubt that's going to stop just because he's now alumni.

Thanks to Yves, Godfrey, and Yehuda, and to everyone else working on improving Rails, for their service. The community is grateful!


2014/09/03 18:30:00 by dhh

×

Rails 4.2.0 beta1: Active Job, Deliver Later, Adequate Record, Web Console

We're putting the final touches on the first major new release of Rails in its second decade of life. While most software would be in a retirement home after a decade of operation, Rails has never been more fit, and this release is packed with goodies that'll make your work even easier, your apps even faster, and the whole experience even better.

Active Job, ActionMailer #deliver_later

The headline feature for Rails 4.2 is the brand new Active Job framework, and its integrations. Active Job is an adapter layer on top of queuing systems like Resque, Delayed Job, Sidekiq, and more. You can write your jobs to Active Job, and they'll run on all these queues with no changes.

With an always-configured queue in place (though the default is just an inline runner), we can build on top of that where it makes sense. And the first place it makes sense is to send Action Mailer emails asynchronously. So we're introducing the #deliver_later method, which will do just that: Add your email to be sent as a job to a queue, so you don't bog down the controller or model. Voila!

The cherry on top is our new GlobalID library. It makes it easy to pass Active Record objects to jobs by serializing them in a generic form. This means you no longer have to manually pack and unpack your Active Records by passing ids. Just give the job the straight AR object, and it'll serialize it using GlobalID, and deserialize it at run time. So much easier!

Special thanks go out to Cristian Bica and Abdelkader Boudih for their outstanding work bringing this trinity of improvements to Rails!

Adequate Record

Aaron Patterson is always hunting for performance bounties in Rails, and with an improvement project called Adequate Record for Active Record, he's come up good. A lot of common queries are now no less than twice as fast in Rails 4.2! This is a great step forward for performance. While computers are constantly getting cheaper and performance is improving, nobody ever said "hey, get that free speed out of my framework". So there you go: Some free speed, buddy!

Web Console

Out of the wonderful Google Summer of Code for Rails campaign comes Web Console. It's an IRB console available in the browser. In development mode, you can go to /console and do your work right there.

Now that's neat, but what's insanely useful is that this console is automatically available on all exception pages! So when something is bust, you'll now instantly be able to inspect the state of affairs. It even allows you to jump between the different points in the backtrace, and you'll be able to inspect things right at that point.

It's a wonderful improvement to the debugging workflow. Thanks to Genadi Samokovarov and Ryan Dao for their work on this project.

Everything else

Some quick highlights from the rest of all the wonder that is Rails 4.2:


  • Template digests are now automatically included when calculating etags for caching. So caches are bust when the template changes.

  • respond_with has moved out and into its own proper home with the responders gem.

  • Support for real foreign keys! add_foreign_key/remove_foreign_key are now available in migrations.

  • A ton of bug fixes and minor improvements to Active Record.

  • Added config.x.whatever.you_want = true for custom configuration of your app in config/environments/*, config/application.rb, and initializers.

  • Added Rails::Application.config_for(:some_yaml) to load YAML configurations store in config/ easily.

We're working on a set of preliminary release notes too.

Maintenance consequences and Rails 5.0!

As per our maintenance policy, the release of Rails 4.2 will mean that bug fixes will only apply to 4-2-stable, regular security issues to 4.2.x, 4.1.x, and severe security issues to 4.2.x, 4.1.x, and 3.2.x. In addition to these already stated commitments, the honorable Rafael França has agreed to also apply bug fixes to 4-1-stable. So everyone still on 4.1 and unable to move quickly can thank Rafael!

Rails 4.2 will also mark the last big release in the 4.x series. After release, we're going to work towards the big Rails 5.0! This means rails/master will have that target as soon as the release candidates for 4.2 start, and 4-2-stable is created.

Rails 5.0 is in most likelihood going to target Ruby 2.2. There's a bunch of optimizations coming in Ruby 2.2 that are going to be very nice, but most importantly for Rails, symbols are going to be garbage collected. This means we can shed a lot of weight related to juggling strings when we accept input from the outside world. It also means that we can convert fully to keyword arguments and all the other good stuff from the latest Ruby.

The release target for Rails 5.0 is currently spring/summer of 2015. So there's a while yet, but we're putting this out there for people to know, so gem maintainers and other Ruby implementations can know where we're going.

Please help us make Rails 4.2 solid!

We rely on the feedback from everyone in the community to flush out bugs and upgrade issues ahead of a big release like this. So please give Rails 4.2 a try on your app, and if you're starting a new app today, you should probably use the beta1 for that, if you're just the least bit savvy with Rails.

Issues can be recorded on the Github issues tracker.

Already, 476 people have contributed to this new release of Rails. Please do become one of them!


2014/08/20 03:30:00 by dhh

×

[ANN] Rails 4.1.6.rc1 and 4.0.10.rc1 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.6.rc1 and 4.0.10.rc1 have been released.

If no regressions are found expect the final release this Friday, on August 22, 2014.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.0.9

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.10.rc1:


$ shasum *4.0.10.rc1*

fa4efa72a6b89c6dcf55280f6bbfab00564982e8 actionmailer-4.0.10.rc1.gem
bfbb408c6c2ab89eafda1b84a33f83a9f58eda8c actionpack-4.0.10.rc1.gem
f1bedb27e877ca6493541a69491910ce70a34ed0 activemodel-4.0.10.rc1.gem
f211a80fc134f38f4eb2d503b3ca7e92a83eabed activerecord-4.0.10.rc1.gem
e751d258407d02c3f8790775ffa99f0895c56704 activesupport-4.0.10.rc1.gem
34b8908b2738e78917a434b45ae9fe82b4908425 rails-4.0.10.rc1.gem
a2d4ee8203ce07785b15b367ffe31f9ea96268a7 railties-4.0.10.rc1.gem

Here are the checksums for 4.1.6.rc1:


$ shasum *4.1.6.rc1*

3589d4ea69a04f87ea5335994a43f8d814c6c8df actionmailer-4.1.6.rc1.gem
b51d28e356c58d08d2f65a3a4912a2911b9d4ffe actionpack-4.1.6.rc1.gem
f2a8ba7e7ca8fa9e74688cbca3af1e8d48b23de7 actionview-4.1.6.rc1.gem
9a2778d02bd596d629eca6265f0a6d7cecb7d2ef activemodel-4.1.6.rc1.gem
681023c5764cb1336b6d74bf2ff76efd9c1386b7 activerecord-4.1.6.rc1.gem
85c4e30b5b0eba99c9d43049206591250aed2072 activesupport-4.1.6.rc1.gem
fd10c0533065471768d8fe4b7e7ba81738c607dd rails-4.1.6.rc1.gem
ec05790e0d256a474f0eaf3ae61e9556e71f1b18 railties-4.1.6.rc1.gem

I'd like to thank you all, every contributor who helped with this release.


2014/08/19 21:05:03 by rafaelfranca

×

Rails 4.0.9 and 4.1.5 have been released!

Hi everyone!

Rails 4.0.9 and 4.1.5 have been released!

These two releases contain a security fix, so please upgrade as soon
as possible! In order to make upgrading as smooth as possible, we've only
included commits directly related to each security issue.

The security fix for 4.0.9 and 4.1.5 is:

the commits for 4.0.9 can be found here,
and the commits for 4.1.5 can be found here.

Here are the checksums for 4.0.9:


$ shasum *4.0.9*

2034a17791be885e8e4e6211c26447614c830e62 actionmailer-4.0.9.gem
00b13c7dfe94af6ede24c6c1652ff4bc2aee9ef8 actionpack-4.0.9.gem
0a16de437de79128846d5a5fc73a0a0d6ebe369e activemodel-4.0.9.gem
3d1884dff4fa64267d7c840dbaaac3eafc6fc0a9 activerecord-4.0.9.gem
eb27657cf79c4c13f7b4c4f7aa69a8a171f4e68c activesupport-4.0.9.gem
2bdba9c61f8860d1883ed5803591dc603b7312fb rails-4.0.9.gem
f90c7f3104d9d63992d53331990e33c1d832e7c0 railties-4.0.9.gem

Here are the checksums for 4.1.5:


$ shasum *4.1.5*

798edeca54bb9ca1ba91b7669fccb4d2bb41f404 actionmailer-4.1.5.gem
2354a982938658cfafd6097a406ac43facb80c70 actionpack-4.1.5.gem
eb71ffc6ea7537d6066483b6ff5d1edf51f0c344 actionview-4.1.5.gem
15a24e5a1e9191541cc7b24bc1f74e3a0293cf97 activemodel-4.1.5.gem
27cd6cc6a3b52eb5966171e5959b0505f411e8ce activerecord-4.1.5.gem
44a53eac3e7851c2311cce42f63c966ea05b5552 activesupport-4.1.5.gem
7fa52337ec2b659abfb5b5678125ba0d3b5cbce7 rails-4.1.5.gem
6ffdb1e19734460ded12f9a66f8390ea071f6727 railties-4.1.5.gem

<3<3<3<3


2014/08/18 17:16:03 by rafaelfranca

×

Rails 4.0.8 and 4.1.4 have been released!

Hi everyone!

Rails 4.0.8 and 4.1.4 have been released!

The security patches introduced a regression on the PostgreSQL Range feature.
This regression was only introduced to Rails 4.x. Rails 3.2 users are not impacted.

the commits for 4.0.8 can be found here,
and the commits for 4.1.4 can be found here.

Here are the checksums for 4.0.8:


$ shasum *4.0.8*

1214de9fa493f5a23c87f7a7c2f1af84f67b60b6 actionmailer-4.0.8.gem
342aa07585b9b4b32ba37c8baf6fe93c53619ad6 actionpack-4.0.8.gem
b40e3b1bbd744b868f74c26e1088d73c9e7d7297 activemodel-4.0.8.gem
b1e28bdad10f21ed8af8b3b8b5e70f0110d19dff activerecord-4.0.8.gem
1d3d2a767478aee5be22db197b2ec06cdaede10a activesupport-4.0.8.gem
dbfa6c723191bf61d1c2d3f9809259f419956a74 rails-4.0.8.gem
f22a0677d9151d1f31d109b1c0687b53e06a94f7 railties-4.0.8.gem

Here are the checksums for 4.1.4:


$ shasum *4.1.4*

5e6426134003a55e0f43ff371521f6d66c8881b7 actionmailer-4.1.4.gem
79e84be29d961ef2c175cb5258b1d8c78ad6460f actionpack-4.1.4.gem
8ba89c7399b81e2727402806176de0db397732eb actionview-4.1.4.gem
9edc0b4e5c709ad11517a9f40ba50ee93e97e59b activemodel-4.1.4.gem
23851340221e38717a7159ebcd2eb398e8ebeacd activerecord-4.1.4.gem
388bd214252b34d22ec8bd1ca2445d7b53cd39bb activesupport-4.1.4.gem
0e050607bb8581dc756c5184a5920de9708398f1 rails-4.1.4.gem
e1a75ea7161db14c953fce1e399c4e20b2eaa364 railties-4.1.4.gem

<3<3<3<3


2014/07/02 19:55:03 by rafaelfranca

×

Rails 3.2.19, 4.0.7 and 4.1.3 have been released!

Hi everyone!

Rails 3.2.19, 4.0.7 and 4.1.3 have been released!

These three releases contain important security fixes, so please upgrade as soon
as possible! In order to make upgrading as smooth as possible, we've only
included commits directly related to each security issue.

The security fix for 3.2.19 is:

The security fix for 4.0.7 and 4.1.3 is:

The commits for 3.2.19 can be found here,
the commits for 4.0.7 can be found here,
and the commits for 4.1.3 can be found here.

Here are the checksums for 3.2.19:


$ shasum *3.2.19*

18420c276ad514b31e393a8a3e54717e66d1b671 actionmailer-3.2.19.gem
44285b467d5c89d6fcc7ccb0d75e18371373a097 actionpack-3.2.19.gem
44ee59f4024aeaac88cb558e337c67968be96531 activemodel-3.2.19.gem
88a7417694abfbb4e8e9eafd4bdcc1d09d609a76 activerecord-3.2.19.gem
32399ca83e5a4241bd14bd16c3042b1a0bd40277 activeresource-3.2.19.gem
6d392def38721f93fa9b4511d53aeaa44eb0fb47 activesupport-3.2.19.gem
486b22ec6e8ec0a20b4c3e3b4d4c0c12fc762c8d rails-3.2.19.gem
fc104dc2bbd549e6d5cc9b40e95e321d19bb9d86 railties-3.2.19.gem

Here are the checksums for 4.0.7:


$ shasum *4.0.7*

92398e29b1b39578eb0814fce6ab5eb0b4aa4080 actionmailer-4.0.7.gem
6da21c3793a9d83a8d2c88f9718e3e0679aaf316 actionpack-4.0.7.gem
a7885a5b2a3ae24389bd4037350a49ec6a4baec7 activemodel-4.0.7.gem
126ce8ddd290458577f878152faea8b4a65b14b5 activerecord-4.0.7.gem
efbc0b6ef05b6235955c1d890b7c53ea019d2499 activesupport-4.0.7.gem
9589f7f5141ec688ed1f8e7ac8f7429b06d098ef rails-4.0.7.gem
e4078a44393d0af71e9ecb2c69ad57654f34db8f railties-4.0.7.gem

Here are the checksums for 4.1.3:


$ shasum *4.1.3*

23b3bdabaa0932ea0b85e36eeb7a05141a26d523 actionmailer-4.1.3.gem
16555cb09c737f7ed371f7b6bab3ecf3f0e3bfe2 actionpack-4.1.3.gem
699eabc22ac45ca264d31556892d9034c3b4da53 actionview-4.1.3.gem
5a2b351d1c570f746f6df606d5281e92758329ea activemodel-4.1.3.gem
4db00d654d9006bb569f6c9842eb4ea3d84d4546 activerecord-4.1.3.gem
453dae978b865f6589bf61973f93ed5166cbc5fc activesupport-4.1.3.gem
7e9d4371abb345ac2a0f2765cc514657a115540a rails-4.1.3.gem
3999875c0d656b60a309dbfeb897310f4ee2879b railties-4.1.3.gem

<3<3<3<3


2014/07/02 17:13:03 by rafaelfranca

×

[ANN] Rails 4.1.2 and 4.0.6 have been released!

Hi everyone,

Rails 4.1.2 and Rails 4.0.6 are finally out. Rails 4.1.2 is the first bug fix release for
the 4.1 series. Rails 4.0.6 includes a lot of bug fixes to make the upgrade path
from Rails 3 easier.

CHANGES since 4.0.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.1

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.6:


$ shasum *4.0.6*

a343354aa1e0938ecce8665ef4aeee05a5f46a2c actionmailer-4.0.6.gem
31c869fad7d3996e57fcb54c02db00af7a3a0d13 actionpack-4.0.6.gem
c98040fd624b3946fa53cfa5015178108fd95ada activemodel-4.0.6.gem
c7d2863923b2b98b4f81e79121a5f4227a95407f activerecord-4.0.6.gem
2b9ef712c1edb0b6b52891984bcf41daa85487e8 activesupport-4.0.6.gem
d99210557ce76138c4493cd6fc0428b9fd9535e0 rails-4.0.6.gem
6d4c0c37cfce73052607f02c1121770267449c0d railties-4.0.6.gem

Here are the checksums for 4.1.2:


$ shasum *4.1.2*

df160752af2f6aa27926ae8874402bef9090082b actionmailer-4.1.2.gem
7982759fca5f229b9fa655f9eef569a792af36f9 actionpack-4.1.2.gem
1858c063242b5fad0c780599c72a1c8751a87bef actionview-4.1.2.gem
ddadace54c147ba25983352a3fccefbe89a1cc0e activemodel-4.1.2.gem
b0d1cfecb597b4240d0586869d7bfc943d8c1532 activerecord-4.1.2.gem
a3597126199cbfad360f8c47adcd0a41c47e532e activesupport-4.1.2.gem
b8246aa396172b409656cd198cc6b1f3a13f7f25 rails-4.1.2.gem
19bfbf57636a2c81e606fe284adcf74767c4bc52 railties-4.1.2.gem

I'd like to thank you all, every contributor who helped with this release.


2014/06/26 16:57:05 by rafaelfranca

×

[ANN] Rails 4.1.2.rc3 and 4.0.6.rc3 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.2.rc3 and 4.0.6.rc3 have been released.

We fixed two regressions on Active Record component.

If no more new regressions are found expect the final release this Thursday, on Jun 26, 2014.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.0.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.1

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.6.rc3:


$ shasum *4.0.6.rc3*

af0d0aab4192f9d37ae238085cd9b410015a1b08 actionmailer-4.0.6.rc3.gem
6911962ef02985ed42fb8829fc4c2c11d0cb7563 actionpack-4.0.6.rc3.gem
e6d6ede05f749122875e171183e7f619af742d53 activemodel-4.0.6.rc3.gem
e4e206c07f42e52785d2964ff90d79c62818ed46 activerecord-4.0.6.rc3.gem
69ede48c8330b294a9eb3ed4c597624842b170ca activesupport-4.0.6.rc3.gem
2793dd17405af95695c9988fddcbc5c2a2429aca rails-4.0.6.rc3.gem
369a895d38d264b01f7cd370e7a9edba8cc7f71b railties-4.0.6.rc3.gem

Here are the checksums for 4.1.2.rc3:


$ shasum *4.1.2.rc3*

4693dd6351e942abadd5c91b20a329ecfcb48374 actionmailer-4.1.2.rc3.gem
a4d75f35b9d8ccc6d80fb797ce94866cf3491ae7 actionpack-4.1.2.rc3.gem
ee9cd1b5cd319c41fdf7a067fd49e042853c6465 actionview-4.1.2.rc3.gem
e2c715ab894261187f1bfe3ce1845bab846ec905 activemodel-4.1.2.rc3.gem
902e4d82d03d460ab4aa3cbcdbaeb5d11135500e activerecord-4.1.2.rc3.gem
1c086568424a2e511cd2ba3c97c42963c9a474eb activesupport-4.1.2.rc3.gem
bfb012898f5f4af3f7da0a33929cd9f7ae888902 rails-4.1.2.rc3.gem
5b0c6c33db6aaf8fb7ad940e88c87c345949c84b railties-4.1.2.rc3.gem

I'd like to thank you all, every contributor who helped with this release.


2014/06/23 17:35:03 by rafaelfranca

×

[ANN] Rails 4.1.2.rc2 and 4.0.6.rc2 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.2.rc2 and 4.0.6.rc2 have been released.

We had a regression with the protected_attributes gem, so if you are using it in your Rails
application make sure you are using protected_attributes 1.0.8 to get it working with these Rails
versions.

If no new regressions are found expect the final release this Thursday, on Jun 19, 2014.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.0.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.1

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.6.rc2:


$ shasum *4.0.6.rc2*

4f92e40428cf3513823b16fb674cc59367c30e13 actionmailer-4.0.6.rc2.gem
87449d571f13806399bf26aa1fe666787a197af2 actionpack-4.0.6.rc2.gem
b8b9927eb65b43c10d0b7d79a4942925105c7dbb activemodel-4.0.6.rc2.gem
3c37325ff3f763dce52554046ff07bacbfbb1dd6 activerecord-4.0.6.rc2.gem
f3572822ab03eeee772d849cb9201d29464e0bbb activesupport-4.0.6.rc2.gem
020211149871991b45926e23a72c483826e14904 rails-4.0.6.rc2.gem
a86b1e31db544c762ebe1005db0e783ad6de604b railties-4.0.6.rc2.gem

Here are the checksums for 4.1.2.rc2:


$ shasum *4.1.2.rc2*

a34885dfbadd9bb8aeb8047428f04f5680ef40ef actionmailer-4.1.2.rc2.gem
4800e2ddac6c248817a2bedf2c8b35bd1dab7edd actionpack-4.1.2.rc2.gem
777e2030dde924fb0a851f6227ee2224a9479735 actionview-4.1.2.rc2.gem
80597481e829dad1e8c7a9a331f3d1d64b7ac97d activemodel-4.1.2.rc2.gem
5636ec01c68be14d3fb111a2a0c97ad7954929e5 activerecord-4.1.2.rc2.gem
cd64099318e90c72c8588f86c2355aef32580ab6 activesupport-4.1.2.rc2.gem
0f1a970cb66799374db8cbb68f536a515e6d87c0 rails-4.1.2.rc2.gem
86662065b041095ad318256f3a8cda2986849f4c railties-4.1.2.rc2.gem

I'd like to thank you all, every contributor who helped with this release.


2014/06/16 17:07:03 by rafaelfranca

×

[ANN] Rails 4.1.2.rc1 and 4.0.6.rc1 have been released!

Hi everyone,

I am happy to announce that Rails 4.1.2.rc1 is the first bug fix release for the 4.1 series.
Also, we are releasing a new bug fix release for the 4.0 series, as 4.0.6.rc1.

If no regressions are found expect the final release this Friday, on May 30, 2014.
If you find one, please open an Issue on GitHub and mention me (@rafaelfranca) on it,
so that we can fix it before the final release.

CHANGES since 4.0.5

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.1.1

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.0.6.rc1:


$ shasum *4.0.6.rc1*

bfaa81992f296ef78ca9fc3bb91f0774d791a2f1 actionmailer-4.0.6.rc1.gem
f5bda30b6b4055fead69615cb1002e0a7d0b3ea8 actionpack-4.0.6.rc1.gem
8ebc8ee9fc2397938779145fd72a4b3bdf1403f0 activemodel-4.0.6.rc1.gem
3c7020e743f0ae31a50ec66ca539d1edec6f056a activerecord-4.0.6.rc1.gem
d2fd5241f4725e5c8cea638e2a5e9f9fbff653b7 activesupport-4.0.6.rc1.gem
b44d1a9fc30939c5d83e1f09fba0c0f6cb7f675a rails-4.0.6.rc1.gem
dbe182d875924600750972e9c0a5025ee2921e55 railties-4.0.6.rc1.gem

Here are the checksums for 4.1.2.rc1:


$ shasum *4.1.2.rc1*

7eb15b9912f8f6948be4091a165417552930950c actionmailer-4.1.2.rc1.gem
4dde8326e5fdf09a682966d048855d6adb9c49cc actionpack-4.1.2.rc1.gem
86c81d9dc97b7e23a8ff39826ee7d92d3b0bc78c actionview-4.1.2.rc1.gem
df193047dc7daabfea8e0a59326ba35ffa7bdd9a activemodel-4.1.2.rc1.gem
231e81b5baa8eec3a5f7d9b1eb476951f5af619b activerecord-4.1.2.rc1.gem
ab905ad3df3b4e76622dc209e3f4804612ccf0b7 activesupport-4.1.2.rc1.gem
3f550100c230a76da51b844f88b606eee8e19594 rails-4.1.2.rc1.gem
d2fd2645af58591f09c9a0af6ca61b6005fd8854 railties-4.1.2.rc1.gem

I'd like to thank you all, every contributor who helped with this release.


2014/05/27 16:17:03 by rafaelfranca

×

Meet our Google Summer of Code students and mentors!

Google has announced the list of projects that were accepted into the Google Summer of Code (GSoC) 2014 program.
I'm extremely excited and proud to announce that Rails has been granted eight project slots this year.
Here's what our students will be working on this summer and the mentors that they are working with:

Unifying controller and integration tests

Alan Guo Xiang Tan will be working on unifying controller and integration tests.
This would help to improve the performance of integration tests and encourage more full-sprecturm testing.

Joining him on this effort will be Rails committers Matthew Draper
and Yves Senn.

Long-running Ruby and Rails benchmark

Bert Chang will be creating a set of long-running benchmarks for Ruby and Rails.
This will help both projects continuously monitor how their commits are impacting real-world performance, which
will help discover and respond to regressions much earlier in the development cycle.

He will be mentored by Damien Mathieu, a longtime Rails contributor.

Form models

Petros Markou will be exploring different API designs to help reduce coupling
between the view and model layer.

Carlos Antonio da Silva, a member of the Rails core team, will be
assisting him along this journey.

Improving compatibility with other Ruby implementations

Robin Dupret will be getting the Rails test suite passing on alternative Ruby
implementations, such as JRuby and Rubinius. This work will help improve the compatibility of Rails on
these platforms.

Ben Browning (JRuby and Rails contributor),
Vipul A M (Ruby and Rails contributor) and
Federico Builes (Rubinius and Rubyspec contributor) will be joining forces to
help Robin with his project.

A web-console in your error page

Last year, Genadi Samokovarov developed a web-based console in his GSoC project.
This year, Ryan Dao will continue that effort and integrate the web-console project
into the error page you see in development mode.

Fittingly, Genadi himself will be mentoring the project along with core team
member Guillermo Iguaran.

Refactor URL generation and recognition code

Ujjwal Thaakar will be improving Rails' internals by refactoring parts of the routing
code that are no longer necessary thanks to Journey.

He will be mentored by Andrew White, another member of the Rails core team.

Security upgrades

Xuchu Zhang will be picking up the task of improving Rails' security defaults and other
related features. This effort would help ensure that Rails remains secure out-of-the-box. Plans include implementing
support for the latest security features in modern browsers and auto-expiring cookie jars.

Godfrey Chan, a Rails committer,
and Rafael Mendonça França, a core team member, will be mentoring Xuchu for this
project.

Randomizing the Rails test suite

Last but not least, Zuhao Wan will be eliminating any leakage of global states in our test
suite so that it can be run in randomized order without errors.

Rails committer Yves Senn will be assisting him on this project.

Towards a bright future

I don't know about you, but after seeing this list of amazing projects, I am genuinely getting very excited about the
bright future for Rails. By the end of this summer, not only would we gain a few great new features, but we are also
helping to nurture some new contributors in Rails and the wider OSS community, how great is that!

Finally, we'd like to thank every single student and mentor who participated in the Google Summer of Code selection
process. There were many great proposals and we're really excited to be able to work on so many of them this year.

<3 <3 <3 <3 <3

P.S. If you enjoyed this post, you should also check out GSoC's sister project – the Rails Girls Summer of Code
initiative, where another seven (Update: 15!) awesome teams will be working on some equally impressive projects in our
ecosystem. Did I mention how incredibly excited I am about this summer?


2014/05/23 18:30:00 by Godfrey Chan

×

Rails 3.2.18, 4.0.5 and 4.1.1 have been released!

Hi everyone!

Rails 3.2.18, 4.0.5 and 4.1.1 have been released!

These three releases contain important security fix, so please upgrade as soon
as possible! In order to make upgrading as smooth as possible, we've only
included commits directly related to each security issue.

The security fixes is:

The commits for 3.2.18 can be found here,
the commits for 4.0.5 can be found here,
and the commits for 4.1.1 can be found here.

Here are the checksums for 3.2.18:


$ shasum *3.2.18*

971d49dac1d0d2576e9bd01b9a96c393098a96c5 actionmailer-3.2.18.gem
4c99239a646f8c662559f9fc4924c20a0f29eae7 actionpack-3.2.18.gem
51f280b8c606a3c7cd503933cabff7b0c6172d1b activemodel-3.2.18.gem
b99c31493ddaf0af4c0007b526dd5213222c2bd9 activerecord-3.2.18.gem
a9d35d1c837047ee328d0f16f420cd2c60a612c9 activeresource-3.2.18.gem
1526e35aaa02ffb526f5cda77425fecdfd449f56 activesupport-3.2.18.gem
8ad5bf5ab760112100e29d8515d7c5181f8dbae0 rails-3.2.18.gem
97e6e478dbebff9cf31c301381b8527f2a523ee5 railties-3.2.18.gem

Here are the checksums for 4.0.5:


$ shasum *4.0.5*

80be4d61b42fc532d87ba8816f521b7413a52ce2 actionmailer-4.0.5.gem
b830f763f6b621cb066002eef02f8ada4826baa2 actionpack-4.0.5.gem
b1aefc15e8b506a53975705840e0445065e14822 activemodel-4.0.5.gem
f263e52056be02628308ccb1980903f3f5fb7668 activerecord-4.0.5.gem
3fba584240a62ad0267f77abbcbd849f138f724b activesupport-4.0.5.gem
166a8ee2064d34fefcda0a383672e83818e5961f rails-4.0.5.gem
fefa3c5e348b05027f4181e5e6d39f14599f1724 railties-4.0.5.gem

Here are the checksums for 4.1.1:


$ shasum *4.1.1*

796ec07e257a98f31eeea38def505cbf3f1e2747 actionmailer-4.1.1.gem
25e4ad2bc143df849941ba54bb47b1d2dca55c2c actionpack-4.1.1.gem
61a9662e06b32f29d89278105e87c230377a6dfd actionview-4.1.1.gem
672d510e216019776b66f1e07e7faf4ac5bb21f5 activemodel-4.1.1.gem
63100443a3416cdde474cca56967bd55029ac507 activerecord-4.1.1.gem
937c7faa903e678e55536c18ee1ea9bafe08b8af activesupport-4.1.1.gem
558547922545bf8f7c1c2d3bc845b2a66f9d826a rails-4.1.1.gem
c5c5763e164eb9fb5e3a93fc25df436c379b0d54 railties-4.1.1.gem

Happy Tuesday! <3<3<3<3


2014/05/06 17:17:03 by rafaelfranca

×

Rails 4.1.0: Spring, Variants, Enums, Mailer previews, secrets.yml

Rails 4.1.0 might carry a minor version bump, but there's nothing minor about the bag of goodies it carries. It simply means that upgrading from 4.0.x should be a relatively mild affair as most of the changes are additions or improvements, not backwards-incompatible changes. Let's go over some of those new goodies.

Spring is our new application preloader. It makes running tests, rake, and generators much faster on large applications. You could think of what we had before as the CGI-mode of the command-line. Every time you ran rake, your entire application would be loaded from scratch, only to be thrown out as soon as the command finished. With Spring, your application is a persistent process that can be reused across commands, so only the first run is slow. And we automatically detect code changes, and reload just those parts. It makes a big difference!

Variants allows you to have different templates and action responses for the same mime type (say, HTML). This is a magic bullet for any Rails app that's serving mobile clients. You can now have individual templates for the desktop, tablet, and phone views while sharing all the same controller logic. This is the secret sauce behind Basecamp's hybrid native/HTML strategy for mobile apps: One Rails app serving desktop browsers, mobile browsers, native mobile apps. The reuse benefits are immense and the productivity boost staggering. Really.

Enums wraps the pattern of having a status field constrained to just a few options. It's just enough syntactic sugar to make tinyint-backed status fields taste delicious while still reaping the optimization benefit of avoiding repeated status strings. Poor man's state machine? Nah, Just Enough for Most of the Time.

Mailer previews make it dead simple to visually iterate over your Action Mailer views with test data, so you can get the same work flow as you have for any other view in your app. Make a change, reload to see it. Easy as pie. And certainly a lot better than either starting with static files that then have to be converted to mailer templates, or trying to copy'n'paste the HTML out of the log files to view them in a browser (come on, you've been there!).

Finally, we've committed to moving production passwords out of your application repository with two changes. The first is secrets.yml, which gives you one place and one convenient interface to access secrets that have been set either via ENV variables or deployment scripts. By default it's used for the secret token guarding cookie integrity, but you can use it for whatever else you need in your app. Second is that we've added support for database URLs in database.yml, and that we by default will be referring to ENV-backed URLs in the generated files. Hurray security!

Now that's just a quick look in the goodie bag. If you want the play-by-play, you can have a look through the 5,200 commits we've done between 4-0-stable and v4.1.0. That's right, five thousand. Witness the firepower of this armed and fully operational community!

You can also digest the changes, and see some real code, by diving into Yves' and Godfrey's splendid work on the release notes for 4.1 as a guide and the feature walk-through.

The gems are now on RubyGems, so gem install rails will get you the latest. Or you can use the v4.1.0 tag.

Enjoy and we hope to see you at RailsConf in two weeks!


2014/04/08 20:15:00 by dhh