---
title: "This week's Ruby news, issue 328"
publication: "Ruby Weekly"
issue: 328
published_at: "2016-12-15"
canonical_url: "https://rubyweekly.com/issues/328"
---

This week's Ruby news, issue 328

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

Ruby WeeklyIssue 328 — December 15, 2016

Yui Naruse[Ruby 2.4 Release Candidate 1 Released](https://www.ruby-lang.org/en/news/2016/12/12/ruby-2-4-0-rc1-released/)Things are looking good for the traditional Christmas release and 2.4 has quite a few [new developer-facing features.](http://www.blackbytes.info/2016/12/new-ruby-features/)


Ilya Bodrov-Krukowski[Common Rails Security Pitfalls and Their Solutions](https://www.sitepoint.com/common-rails-security-pitfalls-and-their-solutions/)A walkthrough of 10 common security issues when using Rails and how to avoid and manage each one.


Avdi Grimm[How to Make Ruby Code Work on Windows](https://www.rubytapas.com/2016/12/14/ruby-code-on-windows/)Avdi Grimm presents a thorough look at many of the issues facing writing Ruby for Windows, from line endings to forking processes.


SemaphoreSponsored[Seamless Continuous Delivery for Docker](https://semaphoreci.com/product/docker?utm_source=rubyweekly&utm_medium=email&utm_content=20161214&utm_campaign=docker)Looking for the easiest way to ship your dockerized apps to production? Try cloud's fastest CI/CD solution that takes less than a minute to set up and has full layer caching for Docker images. Start a 30-day free trial today.

[![Semaphore\](https://copm.s3.amazonaws.com/72b52417.png)](https://semaphoreci.com/product/docker?utm_source=rubyweekly&utm_medium=email&utm_content=20161214&utm_campaign=docker)


Andrei Beliankou[Ruby Natural Language Processing Resources](https://github.com/arbox/nlp-with-ruby)Links to a variety of libraries, talks, and books around the processing of text in human languages from Ruby.


ruby-lang[Float#round Rounding Behavior To Remain Unchanged in 2.4](https://bugs.ruby-lang.org/issues/12958)The default behavior of Float#round was due to change to ‘round-to-even’ in 2.4, but Matz now says it "should be kept unchanged". See the discussion around why.


Sean Huber[Keeping Data in Sync with ActiveRecord:UpdatedAt](https://tech.lendinghome.com/keeping-data-in-sync-with-activerecord-updatedat-95bd76955a01#.xk3uj9von)ActiveRecord doesn’t _always_ update `updated_at` when updating records. Here’s a gem that updates that behavior to do those updates.


Josh Cheek[Seeing Is Believing: Displays Results of Each Code Line](https://github.com/JoshCheek/seeing_is_believing)Evaluates Ruby code as you write it and shows what every line evaluates to. Can’t imagine it? Check out [this animated GIF.](http://no.gd/seeing.gif)


Jobs

- [(Senior) Full Stack Developer](http://jobs.roadtrippers.com/apply/pChjf0/Full-Stack-Developer?source=RubyWeekly)Roadtrippers is looking for creative problem solvers to help us write code that simplifies travel planning and discovery. Join us to empower the world’s travelers and travel companies! Roadtrippers
- [Looking for a Ruby developer to join our team... (Remote, UK-based)](https://www.yourtradebase.com/jobs?utm_source=rubyweekly&utm_medium=email)You: passionate, experienced, want to do work that makes a difference. Us: would love to speak to you about joining our small team. Working remotely with Ruby, Rails and React in an agile team. YourTradeBase.com
- [Find Your Perfect Fit - Try Hired](http://hired.com/?utm_source=newsletters&utm_medium=petercooperpress&utm_campaign=q4-16-rubyweekly)Sick of pushy recruiters, and dead end interviews? Try Hired to hear from top tier companies, and only talk to relevant companies. Hired

In brief

- [Ruby 2.4 Adds Comparable#clamp method](http://blog.bigbinary.com/2016/12/13/ruby-2-4-adds-comparable-clamp-method.html?utm_source=rubyweekly&utm_medium=email) news 
Used to ‘clamp’ an object within a specified range of values. Abhishek Jain
- [Command Strings vs. Ruby Blocks When Unit Testing Chef](http://davidpell.net/String-Commands-vs.-Ruby-Blocks-When-Unit-Testing-Chef-Guard-Clauses/?utm_source=rubyweekly&utm_medium=email) tutorial David Pell
- [Have You Heard of the Rails Schema Cache?](http://blog.iempire.ru/2016/12/13/schema-cache/?utm_source=rubyweekly&utm_medium=email) tutorial Kir Shatrov
- [A Step-By-Step Guide to Debugging SJR Templates in Rails](http://www.carlosramireziii.com/a-step-by-step-guide-to-debugging-sjr-templates.html?utm_source=rubyweekly&utm_medium=email) tutorial 
SJR = Server Generated JavaScript Response. Complete with PDF cheat sheet. Carlos Ramirez III
- [Build Sleek Rails Components With Plain Old Ruby Objects](https://www.toptal.com/ruby-on-rails/decoupling-rails-components?utm_source=rubyweekly&utm_medium=email) tutorial 
Know why and when to refactoring to Service Objects, Query Objects, and Form Objects. Eqbal Quran
- [If you build Rails apps, you need Honeybadger](https://www.honeybadger.io?utm_source=rubyweekly&utm_medium=email) 
Exception monitoring for Ruby developers. Pinpoint errors to the line of offending code - [get your free trial](https://www.honeybadger.io). HoneybadgerSponsored
- [(m)Ruby on Small Devices](https://www.youtube.com/watch?v=0q2HRwP7Vzo) video 
A look at the embeddable mruby interpreter and how it works. Shashank Daté
- [Yes Rubyists, You Can Write Video Games](https://www.youtube.com/watch?v=bK9RX_CzCeI) video 
In 45 minutes, Cory Chamblin introduces Gosu, a 2D game development library. Cory Chamblin
- [Rails Mailer Previews and Templates](https://www.driftingruby.com/episodes/mail-previews-and-templates?utm_source=rubyweekly&utm_medium=email) video 
Includes using Foundation to make prettier HTML email templates. Drifting Ruby
- [The Ruby Book Club Tackles 'Refactoring Ruby'](http://rubybookclub.com/episodes/2016/12/4/refactoring-ruby-ep-1-foreword-ch-1-pg-7-1?utm_source=rubyweekly&utm_medium=email) podcast Ruby Book Club
- [Ruby 2.4 Performance Looking Good](https://gettalong.org/blog/2016/ruby24-performance-looking-good.html?utm_source=rubyweekly&utm_medium=email) opinion 
A basic benchmark comparing Ruby 2.4 to Ruby 2.3.3. Thomas Leitner
- [The PATCH vs PUT JSON Syntax 'War'](http://www.eq8.eu/blogs/36-patch-vs-put-and-the-patch-json-syntax-war?utm_source=rubyweekly&utm_medium=email) opinion 
We are all PATCHing wrong, but does it matter? Tomas Valent
- [Komodo IDE: The Best IDE for Web and Mobile Developers](http://komodoide.com?utm_source=rubyweekly&utm_medium=email) 
Web & mobile devs get all their favorite frameworks, languages, and tools in one cross-platform, polyglot IDE. ActiveStateSponsored
- [Ansible Playbook for a Rails Stack](https://github.com/aleks/ansible-rails?utm_source=rubyweekly&utm_medium=email) code 
Covers NGINX, Puma, Redis, Sidekiq, etc.
- [Gist to Speed Up Rails 5 Integration Tests 2x](https://gist.github.com/printercu/23bce83879eaaf8161410324ad56b235?utm_source=rubyweekly&utm_medium=email) code 
Stops templates being recompiled on each request in test environment.
- [Using the Money Type in Rails](https://glaucocustodio.github.io/2016/12/13/leveraging-rails-money-type/?utm_source=rubyweekly&utm_medium=email) code Glauco Custódio
- [graphql-ruby: A Ruby Implementation of Facebook's GraphQL](https://github.com/rmosolgo/graphql-ruby?utm_source=rubyweekly&utm_medium=email) code Robert Mosolgo

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)

[Unsubscribe](*|UNSUB|*) | [Change email address](*|UPDATE_PROFILE|*) | [Read this issue on the Web](http://rubyweekly.com/issues/328)

© Cooperpress Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK
[Email policy](https://cooperpress.com/spam.html) [Privacy policy](https://cooperpress.com/privacy.html)
