Ruby on Rails

Syndicate content
Updated: 46 min 59 sec ago

This week in Rails: a new beginning

Sat, 01/10/2015 - 02:00

Happy New Year, everyone!

It was only less than a year ago when I sent the first issue of This week in Rails to a total of 14 recipients, discussing some of the latest and greatest additions to the Rails codebase.

43 weeks later, this little hobby project has evolved into a true community effort –- we have assembled an amazing team of editors and other volunteers (join us!), keeping 2000 subscribers in the loop and highlighting some key contributions to our beloved web framework every week.

I am incredibly excited to announce that starting this week, we will be cross- posting the content from the newsletter to the Riding Rails blog. With this, we hope to reach even more members of our wonderful community, increase transparency, involve more of you in the decision-making processes and maybe even inspire some future contributors!

I would like to thank my team at Brewhouse and Goodbits for supporting the project and getting it off the ground, as well as all the volunteers who helped along the way. Of course, huge thank you to all of the Rails contributors who did all the hard work! <3 <3 <3

Without further ado, here is the first 2015 issue of This week in Rails!

Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.

Hi there this is Washington again!

Hope you all had the most gorgeous holidays ever doing things you love the most. The newsletter team is back to work and you should receive your Rails weekly news as usual. Here are some of the latest and greatest improvements, fixes and releases during the break.

Featured Ruby 2.2.0 Released

YAY! December 25th saw another important Ruby release. See the blog post for all the goodies in this new version and keep in mind Rails 5 will target Ruby 2.2+ exclusively. As of this week, Rails' master branch will only work on Ruby 2.2 or above.

Rails 4.0.13 and 4.1.9 have been released!

4.0.13 is last planned release for the 4.0 release series, so you should migrate off it as soon as possible. From here on, the 4.1 (you can thank Rafael) and 4.2 release series will continue to receive regular bug fixes. Consult the maintenance policy for details.

This week's Rails Contributors

Apparently holidays is no excuse for going to the beach all day long and having drinks away from computers. Rails community kept working hard during the break to keep improving the framework we appreciate so much. Thank you all!

New Stuff Halting callback chains by throwing :abort

As of Rails 5 callback chains won't be halted by returning false. Instead you should explicitly throw :abort. This will help keep things consistent among all frameworks included in Rails and avoid accidental halting caused by unexpected false return values.

New date helper

Working with days and weeks just got a bit easier. Keep in mind these new helpers on_weekend?, next_weekday, prev_weekday, next_day, prev_day. Perhaps you had even implemented them before yourself! Good thing Rails will have them out of the box now :)

has_secure_token in Active Record

Rails will ship with a new Active Record macro for generating base 58 tokens out of the box. There's probably a large amount of applications already using this feature. As of the next major release you won't need to add another dependency or implement it yourself.

Fixed More conventional filenames for mailers

Mailer generators now appends the _mailer suffix in the filename just like controller and jobs generators.

Rails 5.0 deprecations clean up

This week Rails got some more love with this major clean up (339 additions and 1,433 deletions) on its master branch. There's still some deprecations left though as the team figures how to best address them.

One More Thing™ Automatic type casting deprecated in Arel

Watch out library authors! Sean Griffin put a lot of effort into improving Arel extensibility. Please get in touch with him if you need APIs to help your use case. (See also these follow-up commits.)

Wrapping up

That's all for This week in Rails. As always, there are more changes than we have room to cover here, but feel free to check them out yourself!

P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don't hesitate to contact Godfrey – there're a lot of ways you could help make this newsletter more awesome!

[ANN] Rails 4.1.9 and 4.0.13 have been released!

Tue, 01/06/2015 - 20:13

Hi everyone,

I am happy to announce that Rails 4.1.9 and 4.0.13 have been released.

This will be also the last release of 4.0 series as announced in a previous blog post.

As per our maintenance policy, the release of Rails 4.2.0 means 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, I agreed to also apply bug fixes to 4-1-stable until the Rails 5 release.

As before, we will announce in a future blog post when we will drop bug fixes support for Rails 4.1.

CHANGES since 4.0.12

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.8

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.13:

$ shasum *4.0.13* 75f128ffb5813f6ec895a2f6c000a18531232bfb actionmailer-4.0.13.gem 7356b2d90904ea3e5854a5fd5c969ff5521ee6bf actionpack-4.0.13.gem 019bc6e77c2c430e52d93642bee8ad137ec288d8 activemodel-4.0.13.gem fb367963994f153f68b904b8508b215b60a6a0ca activerecord-4.0.13.gem 55cbd61d330d29fac50249d5ab9964e34a102f44 activesupport-4.0.13.gem e4d679c792f0a2faafe69fd87217320bc318fc03 rails-4.0.13.gem 856d1f60df48479c4faba3de6d3ffcfadeee2f6b railties-4.0.13.gem

Here are the checksums for 4.1.9:

$ shasum *4.1.9* 7d4a8ce21aa0429ec5fc05c64e2f64fa769a1c4a actionmailer-4.1.9.gem 37b3990b77669877ab675124662ca5c0e880e556 actionpack-4.1.9.gem baf6c54a9f411e9399dc7f9ad99aaa892a43293a actionview-4.1.9.gem cd9c214923ea0094fb65825b1866c3bc5b80fbdb activemodel-4.1.9.gem 330a753ec001e38834406c464e306c3c43e276b5 activerecord-4.1.9.gem 66904e1371b047348d0247c43b9f1c3c596671bf activesupport-4.1.9.gem 12a8b208566f4c822cc9199f51f60fd8baf010bc rails-4.1.9.gem 2c494849ac54b8b3238d23fe62c81da37ca08e1b railties-4.1.9.gem

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

[ANN] Rails 4.1.9.rc1 and 4.0.13.rc1 have been released!

Fri, 01/02/2015 - 00:56

Hi everyone,

I am happy to announce that Rails 4.1.9.rc1 and 4.0.13.rc1 have been released.

This is the first release of the year and it includes a lot of bug fixes. This will be also the last release of 4.0 series as announced in a previous blog post.

As per our maintenance policy, the release of Rails 4.2.0 means 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, I agreed to also apply bug fixes to 4-1-stable until the Rails 5 release.

As before, we will announce in a future blog post when we will drop bug fixes support for Rails 4.1.

If no regressions are found expect the final release this Tuesday, on January 6, 2015. 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.12

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.8

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.13.rc1:

$ shasum *4.0.13.rc1* bf4ddb5aa6eefc6e2495a1364974a5b396d94596 actionmailer-4.0.13.rc1.gem 2bf785e91159bba8fe324e2f48a72277f2b3cf33 actionpack-4.0.13.rc1.gem f9d92979e211ce7fa71252cf1b6b4ac94c7f0b91 activemodel-4.0.13.rc1.gem d5147f64e08a3f5aed4c22ff1ebf640ca6fc0ae3 activerecord-4.0.13.rc1.gem e6f1421262fd1064e973f3d2628c6129b4c20d17 activesupport-4.0.13.rc1.gem f7416fc8485bb8a622fb50e0dd2c3fa5ca4215fa rails-4.0.13.rc1.gem 8a0690bab5e43712e8e982fe02bf76ea989f9356 railties-4.0.13.rc1.gem

Here are the checksums for 4.1.9.rc1:

$ shasum *4.1.9.rc1* 8afbb9c71a8f6e0dff26daacde407fe35aac8375 actionmailer-4.1.9.rc1.gem a5fd439bc41844a3c02671d7425bfa71d96cfbf1 actionpack-4.1.9.rc1.gem a77aaa2f936445211e7455b3228a9bfe8f27a4ac actionview-4.1.9.rc1.gem 65a7acbf9ef9b47392a48ab4c9ace44f12ea1f60 activemodel-4.1.9.rc1.gem eb66d5c52f0740114de46e1a1b76a0079c723d1f activerecord-4.1.9.rc1.gem e758d54d7fabc7d23ff995646096f40d28df42a9 activesupport-4.1.9.rc1.gem 479a31dd8d9eea3de6f444139eaefc830c6db170 rails-4.1.9.rc1.gem dae65c526ec8ee3abab9a9e8807ad7b210b7941d railties-4.1.9.rc1.gem

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

Happy new year!