Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.
As you might recall, we have been assembling a team of editors for this newsletter. I am very excited to introduce our first editor Kasper Timm Hansen who has helped prepare today's newsletter for you!
(If that's something you might be interested in doing, let me know!)
Active Job is coming in Rails 4.2. That smooth wrapper around common queuing libraries just won't gel unless you've got a way to test it. While you've been able to test your jobs, you haven't been able to read about it in the testing guides. Fret no more, there's a new section covering asserting your jobs are on queue and that they do what you expect.
PostgreSQL party people: in Rails 4.2, Active Record will require at least version 0.15 of the pg gem. This has better concurrency on MRI. You want this performance in your concurrent MRI app, yes? Add the requirement to your Gemfile too.
For historical reasons, rake test only ran a subset of the test cases in the test folder. To actually run all tests, you'd need to use rake test:all. In Rails 4.2 there can be only one. So rake test now runs every test.
In between Rails 4.2 beta 2 and 4 a regression that slowed speed of test runs slipped in. Luckily, this contributor has a tender passion for sweet cachin'. The fix: cache the table for your visitors, dingus!
With more real-world apps taking part in the beta testing, the Rails team has been able to identify and address some performance regressions.
This commit addressed a problem in Active Record with time conversion.