---
title: "Rails 5.2, Hanami 1.2, and migrating from Heroku to Dokku"
publication: "Ruby Weekly"
issue: 394
published_at: "2018-04-12"
canonical_url: "https://rubyweekly.com/issues/394"
---

This week's Ruby news, issue 394       

#394 — April 12, 2018 

[Read on the Web](https://rubyweekly.com/issues/394)   

Ruby Weekly  

[Rails 5.2 Released](http://weblog.rubyonrails.org/2018/4/9/Rails-5-2-0-final/) — The somewhat impressive list of features includes Active Storage, Redis Cache Store, HTTP/2 Early Hints, CSP, and Credentials. It works well with [Webpacker](https://github.com/rails/webpacker) 3.0 for your webpack JavaScript bundling needs too. 

David Heinemeier Hansson   

[Measuring Branch and Method Coverage in Ruby 2.5](https://blog.bigbinary.com/2018/04/11/ruby-2-5-supports-measuring-branch-and-method-coverages.html) — [Coverage](https://ruby-doc.org/stdlib-2.5.0/libdoc/coverage/rdoc/Coverage.html), part of the standard library, can be used to measure line, branch _and_ method coverage of code. 

Vishal Telangre   [![\](https://copm.s3.amazonaws.com/f12a548c.png)](https://start.sentry.io/for/ruby?utm_source=advertisement&utm_medium=display&utm_content=rubyweekly&utm_campaign=sponsorship) 

[Fix Production Bugs in Seconds with Sentry](https://start.sentry.io/for/ruby?utm_source=advertisement&utm_medium=display&utm_content=rubyweekly&utm_campaign=sponsorship) — You’re relying on users to report bugs? Use Sentry to fix production issues in real time, right in your existing workflow. Cut time to resolution from 5 hours to 5 minutes. Sentry is 100% open source and loved by 500K developers. [Sign up for free](https://start.sentry.io/for/ruby?utm_source=advertisement&utm_medium=display&utm_content=rubyweekly&utm_campaign=sponsorship). 

Sentry sponsor   

[A Dive into Ruby CVE-2017-17405: Identifying a Vulnerability in Ruby's FTP Implementation](https://blog.heroku.com/identifying-ruby-ftp-cve) — The story and process used by Heroku to find if a new exploit exists in the latest Ruby. The bad news is, it did. The good news is, it’s fixed. 

Etienne Stalmans   

[How to Migrate a Rails App from Heroku to Dokku](https://pawelurbanek.com/rails-heroku-dokku-migration) — [Dokku](https://github.com/dokku/dokku) is a self-hosted Docker-powered platform that’s compatible with Heroku in many ways. Complete with support for Postgres, Sidekiq, and Redis. 

Paweł Urbanek   

[Ruby 2.6 and Why Ahead of Time Compilation Isn't Ready Yet](http://engineering.appfolio.com/appfolio-engineering/2018/4/3/ruby-26-and-ahead-of-time-compilation) — Looking at the “test-only” JIT options at Ruby 2.6 and why JIT is a non-starter (right now) for Rails apps. 

Noah Gibbs   

[Profiling Ruby's Memory Allocation with TCmalloc](http://www.rubyguides.com/2018/04/ruby-tcmalloc-profiling/) — TCmalloc is part of Google’s [gperftools](https://github.com/gperftools/gperftools) suite that Ruby can use and with which you can see how Ruby allocates memory. 

Jesus Castello   

[Hanami 1.2.0 Released](http://hanamirb.org/blog/2018/04/11/announcing-hanami-120.html) — Hanami is a popular alternative webapp framework for Ruby optimized for performance and memory use. This key release adds support for HTTP/2 Early Hints, Unobtrusive JavaScript (UJS), and more. 

Luca Guidi  

💻 Jobs  

[Come Work Together with & Empower Creative People at BackerKit](https://www.backerkit.com/careers) — BackerKit is the industry-leading platform for creators. We're building a bunch of neat stuff, come join us. 

BackerKit   

[Ruby on Rails Developer at X-Team (Remote)](https://x-team.com/remote-ruby-on-rails-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=ruby-weekly-q4-18) — We help our developers keep learning and growing every day. Unleash your potential. Work from anywhere. [Join X-Team](https://x-team.com/remote-ruby-on-rails-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=ruby-weekly-q4-18). 

x-team   

[Ruby Expert? Sign Up for Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-19705) — Developers with four-years experience average five or more interviews during their first week on Vettery. 

Vettery  

📖 Articles & Opinion  

[Interactive Debug Sessions in RSpec with Capybara](https://medium.com/@tjdracz/interactive-debug-sessions-in-rspec-with-capybara-6c4dec2619d3) 

Tom Dracz   

[Add SMS Notifications to Your Rails App Using Twilio](https://www.twilio.com/blog/2018/04/sms-notifications-ruby-on-rails.html) 

Yechiel Kalmenson   

[Adding Bash Completion to 'db:migrate:down'](https://thomasleecopeland.com/2018/04/05/migration-completion.html) 

Tom Copeland   

[5 Commercial Use Cases Continue to Prove the Value of Rails](https://www.engineyard.com/blog/these-5-examples-continue-to-prove-the-value-of-ruby-on-rails) — Next time someone tells you Rails is dead, ask them to Hulu and chill. 

Engine Yard   

[Do You Really Need WebSockets?](https://blog.stanko.io/do-you-really-need-websockets-343aed40aa9b) — Alternatives include Server-Sent Events and long polling. 

Stanko Krtalić Rusendić   

[eBook: Efficient Project Management for Small Engineering Teams](https://resources.codeship.com/ebooks/small-engineering-teams-efficient-project-management-aw?utm_source=email-sponsorship&utm_medium=cpc-ruby-weekly-secondary&utm_campaign=small-engineering-teams) 

Codeship sponsor   

▶[Discussing Ruby 3 with Takashi Kokubun](https://devchat.tv/ruby-rogues/rr-357-ruby-3-with-takashi-kokubun) 

Ruby Rogues  

🔧 Code, Tools & Demos  

[sidekiq_profiling_middleware: A Tool for Profiling Sidekiq](https://medium.com/@callumj/introducing-sidekiq-profiling-middleware-a-tool-for-profiling-sidekiq-e00d6fc7cede) 

Callum Jones   

[qo: Pattern Matching and Fluent Querying in Ruby](https://github.com/baweaver/qo) — An experimental pattern matching idea. 

Brandon Weaver   

[Monitoring and Distributed Tracing for Ruby Apps](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS) — Get full-stack monitoring and alerting for Ruby apps and 200+ infrastructure integrations. [Try Datadog free](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS). 

Datadog sponsor   

[The Ultimate Guide to Ruby Timeouts: Timeouts for Popular Ruby Gems](https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts) — A list of example timeout code for popular database configuration, adapters, middleware and web servers, and various other gems. 

Andrew Kane   

[mysql2: A Modern, Simple and Fast MySQL Library](https://github.com/brianmario/mysql2) — The recently released 0.5 is Ruby 2.0+ and MySQL 5.5+ only. 

Brian Lopez   

[facebook_data_analyzer: Analyze Facebook's Copy of Your Data](https://github.com/Lackoftactics/facebook_data_analyzer) 

Przemyslaw Mroczek         

Curated by [Cooperpress](https://cooperpress.com/) 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
