---
title: "This week's Ruby news, issue 249"
publication: "Ruby Weekly"
issue: 249
published_at: "2015-06-04"
canonical_url: "https://rubyweekly.com/issues/249"
---

This week's Ruby news, issue 249

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

Ruby WeeklyIssue 249 — June 4, 2015

SitePoint[Rails Application Templates in the Real World](http://www.sitepoint.com/rails-application-templates-real-world/)Application templates are Ruby files that use a DSL for adding gems/initializers and other features to freshly created Rails projects. Glenn Goodrich shows off some examples.


Avdi Grimm[Benchmarking Ruby Dispatch Strategies](http://devblog.avdi.org/2015/06/03/benchmarking-ruby-dispatch-strategies/)Avdi compares the performance of multiple ways to dispatch calls within an object, from dynamic to hard coded approaches.


Stefan Wintermeyer[Ruby on Rails 4.2 for Autodidacts (Kindle Book)](http://www.amazon.com/gp/product/B00YPU5MGS)A 500 page book available in Kindle format. Usually around $10 but Stefan has made this available free for today only (most likely before midnight Pacific time on June 4th).


DigitalOceanSponsored[Spin up a server or two, on us. Use promo DO10](https://www.digitalocean.com/?utm_medium=paid_newsletters&utm_source=cooperpress&utm_campaign=rubyweekly&utm_content=SpinUp2_DO10_P_hp)DigitalOcean provides simple cloud infrastructure that’s built for developers. You can deploy an SSD cloud server in under a minute and run it for as little as $5/mo (512MB RAM, 20GB SSD, 1CPU, 1TB transfer). Use promo code DO10 for $10 credit.

[![DigitalOcean\](https://copm.s3.amazonaws.com/a5a1e008.jpg)](https://www.digitalocean.com/?utm_medium=paid_newsletters&utm_source=cooperpress&utm_campaign=rubyweekly&utm_content=SpinUp2_DO10_P_hp)


Bert Goethals[Hash and default_proc](http://thingsinabucket.com/2015/05/27/hash_default_proc/)A quick reminder of how using Hash’s ‘default’ mechanism can help produce more lazily evaluated code.


Kickstarter[Gregory Brown's 'Practicing Ruby' Contributors Kickstarter](https://www.kickstarter.com/projects/828998531/practicing-ruby-contributors-fund)If you want to help fund the development of what I'm sure will be ten great in-depth Ruby articles, check this out. Greg's reputation is beyond reproach. Don't believe me? Enjoy some of [these previously published works.](https://practicingruby.com/)


InfraRuby Vision[InfraRuby 3.7: A Statically Typed Ruby for the JVM](http://infraruby.com/blog/infraruby-3-7-released)An intriguing project which compiles specially type annotated Ruby (so don’t expect Rails to run!) to run rapidly under the Java Virtual Machine. [Usage instructions here.](http://infraruby.com/installation)


RubyFlow[RubyFlow: Submit Items to Us via Our Community Linklog](http://www.rubyflow.com/)RubyFlow was created so any Rubyist could easily share their blog posts, libraries, etc. with the community. It gets about 10 posts a day and we use it to find items for _Ruby Weekly_ so consider posting there too :-)


Jobs

- [Apply to the best NYC SF startups in 60 seconds with Underdog.io](https://underdog.io/?utm_source=rubyweekly=6_4_2015_rubyweeklysponsor=handpickforyou)We handpick top startups; they connect directly with you. Join now to find a job you’ll love. Underdog.io
- [Senior Backend Engineer at Drivy (Paris, France)](https://jobs.lever.co/drivy/08071b26-a86d-4e04-8a9d-1163da98bb3d?utm_source=rubyweekly&utm_medium=email)We're building the #1 peer-to-peer car rental service in Europe and we're looking for an experienced Ruby developer to help us tackle some exciting challenges! Drivy
- [Freelance with Companies like Airbnb, IDEO JPMorgan](http://www.toptal.com/developers?utm_source=ruby_weekly&utm_medium=cpm-newsletter&utm_campaign=ruby_weekly_job)Work on special projects with great companies through Toptal. Set your weekly/hourly rate, and work from anywhere in the world as an elite Ruby developer. See if you have what it takes. TopTal

In brief

- [Mongo BSON Injection: Ruby Regexps Strike Again](http://sakurity.com/blog/2015/06/04/mongo_ruby_regexp.html?utm_source=rubyweekly&utm_medium=email) news 
A subtle bug in bson-ruby (as used by several Mongo libraries) which can result in a BSON injection vulnerability. Egor Homakov
- [How to Simplify Active Record Scopes That Reference Other Models](http://aokolish.me/blog/2015/05/26/how-to-simplify-active-record-scopes-that-reference-other-tables/?utm_source=rubyweekly&utm_medium=email) tutorial Alex Okolish
- [Mark Methods Private When You Don’t Test Them](http://blog.codeship.com/mark-methods-private-when-you-dont-test-them/?utm_source=rubyweekly&utm_medium=email) tutorial Pat Shaughnessy
- [Make Your Own Rack Server](http://www.blrice.net/blog/2015/05/31/make-your-own-rack-server/?utm_source=rubyweekly&utm_medium=email) tutorial Brandon Rice
- [Build Custom User Analytics with Parse](http://www.sitepoint.com/build-custom-user-analytics-parse/?utm_source=rubyweekly&utm_medium=email) tutorial SitePoint
- [A Week with A Rails Security Strategy: More Security, New Habits](https://www.airpair.com/ruby-on-rails/posts/a-week-with-a-rails-security-strategy?utm_source=rubyweekly&utm_medium=email) tutorial 
An outline for a week with mini habits that form a Rails ‘security strategy.’ Heiko Webers
- [Capturing stdout & stderr from Shell Commands in Ruby](http://blog.honeybadger.io/capturing-stdout-stderr-from-shell-commands-via-ruby/?utm_source=rubyweekly&utm_medium=email) tutorial Starr Horne
- [Removing N+ SQL Queries for Speed](https://www.rubycasts.io/episodes/removing-n-sql-queries-for-speed?utm_source=rubyweekly&utm_medium=email) video Rubycasts.io
- [Find Bugs Before Your Users Do - A Few Lines of Code is All it Takes](https://raygun.io/ruby-on-rails?utm_source=rubyweekly&utm_medium=email&utm_content=sponsored-link&utm_campaign=jun4) tools 
Real-time error tracking for Ruby on Rails that you can set up in minutes. RaygunSponsored
- [Why I’m Betting On Elixir](https://medium.com/@kenmazaika/why-im-betting-on-elixir-7c8f847b58?utm_source=rubyweekly&utm_medium=email) opinion 
A Rubyist reflects on the Ruby-like Erlang VM based language. Mostly of interest now as Matz has linked to it. Ken Mazaika
- [Don't Use before_action to Load Data](http://craftingruby.com/posts/2015/05/31/dont-use-before-action-to-load-data.html?utm_source=rubyweekly&utm_medium=email) opinion 
DRY vs obviousness Jeroen Weeink
- [The Tumblr Client Wrapper: Embed Multiple Tumblr Posts into Rails Views](https://github.com/richardsondx/tumblr_client_wrapper?utm_source=rubyweekly&utm_medium=email) code 
A Ruby wrapper for the official tumblr-client gem and Tumblr API v2. evenix
- [matchete: A DSL for Method Overloading Based On Pattern Matching](https://github.com/alehander42/matchete?utm_source=rubyweekly&utm_medium=email) code Alexander Ivanov
- [Emailhunter: A Ruby Wrapper Around the Email Hunter API](https://github.com/davidesantangelo/emailhunter?utm_source=rubyweekly&utm_medium=email) code 
Email Hunter is essentially a search engine of email addresses. Davide Santangelo
- [Webinspector: Scrape and 'Inspect' a Web Page](https://github.com/davidesantangelo/webinspector?utm_source=rubyweekly&utm_medium=email) code 
Given a URL, Webinspector can return the page’s title, description, links, images, etc. Davide Santangelo
- [Lapine: A Gem for Speaking to RabbitMQ](https://github.com/wanelo/lapine?utm_source=rubyweekly&utm_medium=email) code Wanelo, Inc
- [Production-ready Redis with top-tier support, analytics, and Resque integration](http://www.redisgreen.net/docs.html?utm_source=rubyweekly&utm_medium=email&utm_campaign=perf1) tools 
Thousands of apps use RedisGreen to get the best support, analytics, performance and uptime for their Redis servers. Find out what a difference a well-managed in-memory datastore makes. RedisGreenSponsored

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

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