---
title: "#379: Ten New Features in Ruby v2.5"
publication: "Ruby Weekly"
issue: 379
published_at: "2017-12-14"
canonical_url: "https://rubyweekly.com/issues/379"
---

#379: Ten New Features in Ruby v2.5

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

Ruby WeeklyIssue 379 — December 14, 2017

Tom Lord[10 (More) New Features in Ruby v2.5](https://tom-lord.github.io/10-More-New-Features-In-Ruby-2.5/)Ruby 2.5’s release is scheduled for December 25th, as is traditional in the Ruby community. Here are some features you may not have known about yet.


Vijay Kumar Agrawal[Ruby 2.5's New 'yield_self' Method](http://blog.bigbinary.com/2017/12/12/ruby-2-5-added-yield_self.html)`yield_self` passes the receiver to the given block. Here’s a look at how it works.


StreamSponsored[Build a Social Network with Ruby](https://getstream.io/build/social-networks/ruby/?utm_campaign=Online%20Advertising&utm_source=Ruby%20Weekly&utm_medium=Ruby%20Weekly%20Newsletter)Stream API + Ruby are the go-to solution for developers building social feeds. Speed up your development.

[![Stream\](https://copm.s3.amazonaws.com/18d7b120.png)](https://getstream.io/build/social-networks/ruby/?utm_campaign=Online%20Advertising&utm_source=Ruby%20Weekly&utm_medium=Ruby%20Weekly%20Newsletter)


Dustin Zeisler[ActiveMocker: Generate Stub Classes From ActiveRecord Models](https://github.com/zeisler/active_mocker)Handy for generating mocks from ActiveRecord models for unit tests that run fast without loading Rails or a database.


Caleb Thompson[Running Jekyll on Heroku](https://blog.heroku.com/jekyll-on-heroku)A start-to-finish guide to using the static site generator to create sites to be served from Heroku.


Katy Farmer[Getting Started with Metrics in Rails](https://www.influxdata.com/blog/metrics-for-true-beginners/)A walk through the process of introducing metrics tools to a Rails app and visualizing the results.


Tom Black[Reimagining 2D Graphics and Game Development with Ruby](http://www.blacktm.com/rubyconf/)A video (but with extensive slides and notes you can read instead, if you prefer) on a relatively uncommon use for Ruby.


Jobs

- [Full Stack Rails Engineer (Remote in US, Canada, Brazil)](https://internal.interviewed.com/jobs/full-stack-engineer-hdaw?source=rubyweekly)Help us make the hiring process better for 100m+ job seekers across the globe. Work on product, scalability or internal tools. Interviewed (acquired by Indeed)
- [Ruby on Rails Integrations Engineer (Remote: Anywhere US or Europe)](https://www.elastic.co/about/careers/engineering/jobs/954448?utm_source=rubyweekly&utm_medium=email)Elastic is seeking an open source enthusiast to help develop and maintain the integration between the Ruby on Rails platform and the Elastic stack. Elastic (Formerly Elasticsearch)

In brief

- [JRuby 9.1.15.0 Released](http://jruby.org/2017/12/07/jruby-9-1-15-0.html?utm_source=rubyweekly&utm_medium=email) news
- [Ruby on Ice Conference Coming in January 2018 (Germany)](https://rubyonice.com/2018?utm_source=rubyweekly&utm_medium=email) news Ruby On Ice
- [Smarter Rails Services with Active Model Modules](https://dev.to/sophiedebenedetto/smarter-rails-services-with-active-model-modules-17o?utm_source=rubyweekly&utm_medium=email) tutorial Sophie DeBenedetto
- [Parsing RSS, Atom, and Other Web Feeds with FeedParser](https://planetruby.github.io/advent2017/08-feedparser?utm_source=rubyweekly&utm_medium=email) tutorial Ruby Advent Calendar
- [Detailed Custom Dockerfile Example for Ruby](https://circleci.com/docs/2.0/custom-images/#detailed-custom-dockerfile-example-for-ruby?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=december&utm_content=ruby-weekly) tutorial CircleCISponsored
- [Modern Frontends in Rails: Building Components](https://evilmartians.com/chronicles/evil-front-part-2?utm_source=rubyweekly&utm_medium=email) tutorial Evil Martians
- [Running Jekyll with Docker and OpenShift](https://www.redpill-linpro.com/sysadvent/2017/12/10/jekyll-openshift.html?utm_source=rubyweekly&utm_medium=email) tutorial Lars Olafsen
- [Subscribing to RabbitMQ using Rails on Heroku](https://blog.showoff.ie/subscribing-to-rabbitmq-using-rails-on-heroku-336afb14d72d?utm_source=rubyweekly&utm_medium=email) tutorial Michael Dever
- [Adventures in Automated Code Replacement](http://ideia.me/adventures-on-automated-code-replacement?utm_source=rubyweekly&utm_medium=email) tutorial 
Using [fast](https://github.com/jonatas/fast) to search through the Abstract Syntax Tree and rewrite code based on matches. Jônatas Davi Paganini
- [Object-Oriented Design Patterns in Life](http://www.sihui.io/design-patterns/?utm_source=rubyweekly&utm_medium=email) tutorial 
An in-progress series explaining design patterns with real-world concepts. Sihui Huang
- [A Real Use of Ruby Singleton Classes](https://www.puzzle.ch/blog/articles/2017/12/11/the-real-use-of-ruby-singleton-classes?utm_source=rubyweekly&utm_medium=email) tutorial 
A review of Ruby’s inheritance structure and singleton classes. Puzzle ITC
- [Rails App Silently Crashes on Ruby 2.4](https://www.engineyard.com/blog/rails-app-silently-crashes-on-ruby-2.4?utm_source=rubyweekly&utm_medium=email) 
This is a story of a bug I found and the fix up to date on Ruby 2.4 changes. Engine YardSponsored
- [Refactoring Towards Immutable Objects in Ruby](http://dustinzeisler.com/refactoring/2017/12/11/refactor-towards-immutable-objects-ruby.html?utm_source=rubyweekly&utm_medium=email) video Dustin Zeisler
- [Discussing Strings and Encodings in Ruby with Aaron Lasseigne](https://devchat.tv/ruby-rogues/rr-340-strings-encodings-ruby-aaron-lasseigne?utm_source=rubyweekly&utm_medium=email) podcast Ruby Rogues
- [24/7 Operations Support Built for ROR](https://reinteractive.com/enquiries/new?code=ops_care&sid=136) 
Keep your team busy building your app, not solving ops headaches. Unlimited deploys, immediate roll-back and more. OpsCare by reinteractiveSponsored
- [LightIO: A New Experimental Ruby Networking Library](https://github.com/jjyr/lightio?utm_source=rubyweekly&utm_medium=email) code 
.. that combines Ruby fibers and a fast IO event loop.
- [pretty-diffs: Enable Fancy Colored Diffs in Your Minitest Assertions](https://github.com/angelkar/pretty-diffs?utm_source=rubyweekly&utm_medium=email) code Angelos Karagkiozidis
- [logs: Rails Engine for Viewing Paginated Logs From A Browser](https://github.com/kirillshevch/logs?utm_source=rubyweekly&utm_medium=email) code Kirill Shevchenko
- [ActiveRecord::MTI: Support for Postgres's Native Inherited Tables](https://github.com/TwilightCoders/active_record-mti?utm_source=rubyweekly&utm_medium=email) code Twilight Coders

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/379)

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