This week in Rails: new release candidates, concurrent migrations and more!
Posted by huoxito, November 6, 2015 @ 11:24 pm in News
####
Hi there everyone o/
Washington here putting together another weekly Rails issue for the most awesome community.
Featured
Rails 4.2.5.rc2 and Rails 4.1.14.rc2 are out
Please take a minute or two to update your project Gemfile and run the build on the RCs. Spotting regressions now means they’re fixed in another RC rather than a new point release some month(s) away.
This Week’s Rails Contributors
As of 17h15min, UTC -3, 28 contributors made their commits to Rails master. Some of those for the very first time. Welcome!
Make migrations concurrent safe (using advisory locks)
MySQL and Postgres Active Record adapters were enhanced to avoid confusing behaviour or exceptions when running migrations on multi-instance clusters. See the issue as well for more details.
New Stuff
Add enabled flag to public_file_server
settings
Good old serve_static_files
is being deprecated as of Rails 5 in favor of public_file_server.enabled
so we have all static asset options under the same public_file_server
key.
Improved
Deprecate exception#original_exception in favor of exception#cause
Exception wrapping implementation got a bit simpler this week by using Ruby’s built in Exception#cause, available since version 2.1.
Require only necessary concurrent-ruby classes
Another concurrent-ruby bump and related load time improvements.
Don’t allow arbitrary data in :back
urls
This was reported quite a while ago, but now someone stepped up to the plate and followed it through. Rails got a bit safer again, thanks to the community. ❤️
Allow passing an env to config_for
Sanity checking configuration files in other environments just got easier as well.
Wrapping Up
That’s all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself.
Until next time!