---
title: "This week's Ruby news, issue 289"
publication: "Ruby Weekly"
issue: 289
published_at: "2016-03-17"
canonical_url: "https://rubyweekly.com/issues/289"
---

This week's Ruby news, issue 289

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

Ruby WeeklyIssue 289 — March 17, 2016

Jon McCartie[How to Modify Your Ruby App's DNS Lookups](http://blog.mccartie.com/2016/03/14/modify-your-ruby-app%27s-dns-lookup.html)Uses ‘resolv-replace’, part of the stdlib, to replace the typical DNS resolution process in Ruby, letting you override lookups with a custom hosts file.


Jake Yesbeck[Using Arel When ActiveRecord Falls Short](http://jakeyesbeck.com/2016/03/13/the-power-of-arel/)ActiveRecord uses Arel, a relational algebra library, under the hood to put together SQL queries, but you can use it directly for more power.


Lazarus Lazaridis[DuckRails: Quickly and Dynamically Mock API Endpoints](https://github.com/iridakos/duckrails)A Rails app that helps you quickly mock API endpoints and includes a straightforward interface to set them up.


ImgixSponsored[Responsive Images in Your Rails Application in 30 Minutes or Less](https://www.imgix.com/?utm_source=ruby-weekly&utm_medium=email&utm_campaign=2016-03-17-ruby-weekly)With imgix, integrating responsive images into your app could not be easier. imgix resizes, crops, and processes images on demand and has a robust Rails gem to make integration easy. Learn how to start delivering responsive images in less than 30 minutes.

[![Imgix\](https://copm.s3.amazonaws.com/4f6b9d43.png)](https://www.imgix.com/?utm_source=ruby-weekly&utm_medium=email&utm_campaign=2016-03-17-ruby-weekly)


Richardson Dackam[Useful Things to Know About the World of JRuby](https://medium.com/@richardsondx/everything-you-should-know-about-the-obscure-world-of-jruby-jruby-with-ruby-on-rails-c3c90d8fdeec)Looks at JVM options, how garbage collection works, how to deal with memory errors, and tools specific to the JRuby ecosystem.


Peng Lv[vscode-ruby: Extra Ruby Support for Visual Studio Code](https://github.com/rebornix/vscode-ruby)An extension for Microsoft’s free code editor that provides rich Ruby language and debugging support. Still under development.


Harry Lucas[The Template Method Pattern](http://www.betterruby.com/learning-from-a-gang-in-ruby/)A thorough Ruby-oriented introduction to a design pattern that allows a group of interchangeable, similarly structured, multi-step algorithms to be defined.


InfraRuby Vision Limited[InfraRuby 4.0 Released: A Statically Typed Ruby Compiler](http://infraruby.com/blog/infraruby-4.0-released)It requires annotations for field types, method signatures, etc, but supports much of Ruby and boasts high performance.


Jobs

- [Ruby Skills are in demand](http://www.indeed.com/prime?sid=xp_cooperpress&kw=rubyweekly)Indeed Prime is an elite new program from Indeed.com that presents in-demand tech talent like you to top employers. Indeed Prime opens the door to exciting career opportunities with one simple application. Join today. Indeed.com
- [Software Engineer, Billing Payments (London, UK; Remote OK)](https://engineering.alphasights.com/positions/software-engineering-billing&payments-senior?utm_source=rubyweekly&utm_medium=email)You’ll build software that creates our financial infrastructure, aggregates data across our business, and allows us to operate. You’ll code in Ruby and JavaScript with the opportunity to bring in new languages that fit. AlphaSights

In brief

- [ActionController::Parameters#dig Added to Rails 5](https://github.com/rails/rails/commit/5cd2beb0135faf18c978507a4be272dfc1499bb8?utm_source=rubyweekly&utm_medium=email) news 
For Ruby 2.3 users only. Sean Griffin
- [Jump start your next Ruby on Rails project](https://www.happybearsoftware.com/?utm_source=rubyweekly&utm_medium=email) 
Happy Bear Software is a small technical consultancy that builds web applications for startups, established businesses and non-profits. HappybearsoftwareSponsored
- [Creating New Content Types in Rails 4.2](http://blog.arkency.com/2016/03/creating-new-content-types-in-rails-4-dot-2/?utm_source=rubyweekly&utm_medium=email) tutorial 
How to register a new MIME content type and use it. Marcin Grzywaczewski
- [The Simple Yet Powerful Ruby Enumerable Module](http://blog.codeship.com/the-enumerable-module/?utm_source=rubyweekly&utm_medium=email) tutorial 
“The methods I found most useful for transforming data came from one place: the Enumerable module” Leigh Halliday
- [A Look at the Observer Design Pattern](http://www.betterruby.com/gangs-in-ruby-observer/?utm_source=rubyweekly&utm_medium=email) tutorial Harry Lucas
- [Improve the Smell of Your Code with Microrefactorings](http://www.sitepoint.com/improve-the-smell-of-your-code-with-microrefactorings/?utm_source=rubyweekly&utm_medium=email) tutorial Katrina Owen
- [Rebuilding Git in Ruby](https://robots.thoughtbot.com/rebuilding-git-in-ruby?utm_source=rubyweekly&utm_medium=email) tutorial Joël Quenneville
- [Effortless Pagination with React, Relay Connections and graphql-ruby](https://m.alphasights.com/how-to-do-effortless-pagination-with-relay-connections-and-graphql-ruby-a534ffaf5cbf?utm_source=rubyweekly&utm_medium=email) tutorial Jose Raymundo Cruz
- [How to Make Your Next Rails Upgrade Easier](http://thomasleecopeland.com/2016/03/15/make-next-rails-upgrade-easier.html?utm_source=rubyweekly&utm_medium=email) opinion Tom Copeland
- [pseudo-python: A Restricted Python to Idiomatic JS / Ruby / Go / C# Translator](https://github.com/alehander42/pseudo-python?utm_source=rubyweekly&utm_medium=email) tools Alexander Ivanov
- [dpr: The 'Simplest' Ruby HTTP Client](https://github.com/SudhagarS/dpr?utm_source=rubyweekly&utm_medium=email) code 
Monkey patches String so take care. Sudhagar
- [LeSSL: For Obtaining Lets-Encrypt Certificates from Ruby](https://github.com/tobiasfeistmantl/LeSSL?utm_source=rubyweekly&utm_medium=email) code 
A simple gem to authorize for domains and obtain free SSL/TLS certificates from the Let’s Encrypt CA. Tobias Feistmantl
- [dry-validation: A Precise and Magic-Free Ruby Object Validation Library](http://dry-rb.org/gems/dry-validation/?utm_source=rubyweekly&utm_medium=email) code dry-rb
- [StatefulEnum: A State Machine Plugin built on top of ActiveRecord::Enum](https://github.com/amatsuda/stateful_enum?utm_source=rubyweekly&utm_medium=email) code Akira Matsuda
- [TTY::Spinner: A Terminal Spinner for While Performing Tasks](https://github.com/peter-murach/tty-spinner?utm_source=rubyweekly&utm_medium=email) code Piotr Murach
- [Ruby Magic. A new email series that lets you in on Ruby's secrets.](https://appsignal.com/ruby-magic/?utm_source=rubyweekly&utm_medium=email&utm_content=ruby_magic&utm_campaign=289) 
Be a magician. Subscribe to Ruby Magic for free and learn the tricks that make your Ruby even better. Poof! AppSignalSponsored

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

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