---
title: "Rails 5.2 RC2, and benchmarking Ruby 2.6 Preview 1"
publication: "Ruby Weekly"
issue: 391
published_at: "2018-03-22"
canonical_url: "https://rubyweekly.com/issues/391"
---

Rails 5.2 RC2, and benchmarking Ruby 2.6 Preview 1

This week's Ruby and Rails news[Read this e-mail on the Web](http://rubyweekly.com/issues/391)

Ruby WeeklyIssue 391 — March 22, 2018

David Heinemeier Hansson[Rails 5.2.0 RC2: The (Hopefully) Last RC Before RailsConf](http://weblog.rubyonrails.org/2018/3/20/Rails-5-2-RC2/)Rails 5.2 has an impressive feature list, including [Active Storage](https://github.com/rails/rails/blob/d3893ec38ec61282c2598b01a298124356d6b35a/activestorage/README.md), [credentials](https://github.com/rails/rails/pull/30067), [HTTP/2 Early Hints](http://eileencodes.com/posts/http2-early-hints/), and more. 5.2 is already in production at Basecamp and Shopify so don’t be worried to try it out.


Noah Gibbs[Benchmarking Ruby 2.6 Preview 1](http://engineering.appfolio.com/appfolio-engineering/2018/3/6/ruby-26-preview-1-timing-jit)Full performance gains rarely materialize in pre-releases and JIT proves not to be a winner on a large, real-world Rails app _so far_ but things are looking promising for the future.


CircleCISponsored[Preserve Build Integrity & Prevent Problems with Deterministic Builds](https://circleci.com/blog/preserve-build-integrity-prevent-problems-deterministic-builds/?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=march18&utm_content=ruby-weekly)The most common thing a customer will say in a support ticket is that their builds are suddenly failing even though “nothing has changed” on their end. This is almost never true.

[![CircleCI\](https://copm.s3.amazonaws.com/3d352716.png)](https://circleci.com/blog/preserve-build-integrity-prevent-problems-deterministic-builds/?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=march18&utm_content=ruby-weekly)


Sam Saffron[Managing DB Schema Changes Without Downtime](https://samsaffron.com/archive/2018/03/22/managing-db-schema-changes-without-downtime)A look at how [Discourse](https://www.discourse.org/), the forum host, handles changes to its Rails-oriented database schema in production.


Nando Vieira[Browser: A Browser Detection Library](https://github.com/fnando/browser)A handy API for browser detection from within Ruby. Pass in a user agent string and query it in various ways (e.g. `browser.webkit?` or `browser.device.name`). Includes ActionController integration, as well as optional Rack middleware for agent-based redirections.


David Heinemeier Hansson[How DHH Refactors a Feature in a Large Rails App](https://www.youtube.com/watch?v=Yd3j3ZEx6DU)The latest in DHH’s _On Writing Software Well_ video series covers how you might more elegantly restructure a new feature that’s been added to an existing Rails app. _14 minutes._


Chris Oliver[Rails Jumpstart: A Quick Way to Start New Rails Apps](https://github.com/excid3/jumpstart)A Rails template that adds [an admin UI](https://github.com/thoughtbot/administrate), auth, Bootstrap 4, and more to new Rails apps.


Jobs

- [Sr Ruby Engineer (Microservices, Architecture, Mentoring)](https://zenmate-jobs.personio.de/job/19096?_pc=22496)Make the internet a secure and private place for more than 42M users with our VPN solution and improve UX on web with upcoming products. ZenMate
- [Security Focused Cloud Application Developer](https://jobs.cisco.com/jobs/ProjectDetail/Ruby-Rails-Security-Developer/1222456?utm_source=rubyweekly&utm_medium=email)Mid/senior level Ruby developer with security knowledge wanted to help develop a cloud security vulnerability testing platform. Cisco
- [Looking For Your Next Ruby Job?](https://underdog.io/?utm_medium=advertisement&utm_source=rubyweekly&utm_campaign=homepage2018-mar-22&utm_content=new-job)Try Underdog.io, where hundreds of the best tech companies go to meet top ruby engineers. Companies email you directly as soon as next Monday. Underdog.io

In brief

- [RailsConf 2018 Schedule is Live](http://railsconf.org/schedule?utm_source=rubyweekly&utm_medium=email) news 
Scaling, JavaScript, and maintaining apps are popular themes. RailsConf 2018
- [Running End-to-End Tests on Kubernetes](https://www.gocd.org/2018/02/27/running-end-to-end-tests-kubernetes/?utm_campaign=e2e_k8s&utm_medium=newsletter_ad&utm_source=cooperess_ruby&utm_content=e2e_k8s&utm_term=) 
This blog talks about how one team solved real world CI/CD problems using Kubernetes and GoCD. GoCDSponsored
- [Vue.js as a Front-End for Rails](https://blog.codeship.com/vuejs-as-a-frontend-for-rails/?utm_source=rubyweekly&utm_medium=email) tutorial Daniel P. Clark
- [4 Ways to Speed Up and Refactor Your RSpec Tests](http://pdabrowski.com/blog/ruby-on-rails/testing/4-ways-to-refactor-and-speed-up-tests/?utm_source=rubyweekly&utm_medium=email) tutorial Paweł Dąbrowski
- [Check Your Database Indexes for ActiveRecord Scopes](https://andycroll.com/ruby/check-your-database-indexes-for-activerecord-scopes/?utm_source=rubyweekly&utm_medium=email) tutorial 
Having the _right_ indexes on your database will always yield performance improvements. Andy Croll
- [JSONify your Ruby Translations](https://dejimata.com/2018/3/20/jsonify-your-ruby-translations?utm_source=rubyweekly&utm_medium=email) tutorial 
Using the Mobility gem and JSONB to store all the locales and translations for a model alongside each model. Chris Salzberg
- [Better Passwords in Ruby Apps with the Pwned Passwords API](https://www.twilio.com/blog/2018/03/better-passwords-in-ruby-applications-pwned-passwords-api.html?utm_source=rubyweekly&utm_medium=email) tutorial Phil Nash
- [Quick Tip: Inspecting Ruby Gems](https://glaucocustodio.github.io/2018/03/16/inspecting-ruby-gems/?utm_source=rubyweekly&utm_medium=email) tutorial 
A couple of ways to load a gem from a local directory so you can test changes and/or debug. Glauco Custódio
- [How to Test Logs using RSpec Expectations and StringIO](https://medium.freecodecamp.org/how-to-test-logs-using-rspec-expectations-and-stringio-in-ruby-c3f879445eeb?utm_source=rubyweekly&utm_medium=email) tutorial Ryan Davidson
- [Quick Tip: Convert An ActiveRecord Object Into a Fixture](http://blog.mechanicles.com/2018/03/19/convert-an-active-record-object-into-the-fixture.html?utm_source=rubyweekly&utm_medium=email) tutorial Santosh Wadghule
- [Compare Your App to the Industry with Rails Testing Grader](http://rails.testinggrader.com/?utm_source=rubyweekly&utm_medium=email&utm_campaign=rubyweekly-grader-20180322) SemaphoreSponsored
- [From Rails to Clojure, to Java, then Back to Rails](https://engineering-management.space/post/from-rails-to-clojure-to-java-to-rails/?utm_source=rubyweekly&utm_medium=email) story 
One developer’s tale of moving between stacks. Pedro Pereira Santos
- [Three Things That Make Your RSpec Tests Worse](http://pdabrowski.com/blog/ruby-on-rails/testing/3-things-that-slow-down-and-make-your-rspec-tests-worse/?utm_source=rubyweekly&utm_medium=email) opinion Paweł Dąbrowski
- [Setting Up a Rails App for CodeBuild, CodeDeploy, & CodePipeline](http://blog.scoutapp.com/articles/2018/03/15/setting-up-a-rails-app-for-codebuild-codedeploy-and-codepipeline-on-aws?utm_source=rubyweekly&utm_medium=email) video 
How three AWS services can build, deploy, and perform CI for a Rails app. Derek Haynes
- [Upgrading Kickstarter to Rails 5 with Logan McDonald](http://5by5.tv/rubyonrails/241?utm_source=rubyweekly&utm_medium=email) podcast 
A podcast chat covering things that could help if you’re on Rails 4 and need to upgrade. _30 minutes_. Ruby on Rails Podcast
- [Linux Cloud Hosting Starting at 1GB of RAM for $5/mo](http://welcome.linode.com/ruby-weekly/?utm_source=cooperpress&utm_medium=sponsored&utm_term=ruby&utm_campaign=ruby-weekly-brief) Linode Cloud HostingSponsored
- [Qyu: A Distributed Task Execution System for Complex Workflows](http://blog.findhotel.net/2018/03/qyu-a-distributed-task-execution-system-for-complex-workflows/?utm_source=rubyweekly&utm_medium=email) code Mohamed Osama
- [Rails-DB-Interactive: Interactive Database Diagrams for Rails](https://github.com/iorme1/Rails-DB-Interactive?utm_source=rubyweekly&utm_medium=email) code Isaac Orme

Curated by [Peter Cooper](https://twitter.com/peterc) and [Glenn Goodrich](https://twitter.com/ruprict), and published by [Cooperpress](https://cooperpress.com/).
Send feedback by simply replying to this mail.
Want to sponsor an issue? See our [media kit.](https://cooperpress.com/mediakit)
Want to post a job? Email us or [use our self-serve system.](https://booking.cooperpress.com/jobs)

[Stop getting Ruby Weekly](*|UNSUB|*) | [Change email address](*|UPDATE_PROFILE|*) | [Read this issue on the Web](http://rubyweekly.com/issues/391)

© Cooperpress Ltd, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
[Email policy](https://cooperpress.com/spam.html) [Privacy policy](https://cooperpress.com/privacy.html)
