---
title: "#389: A Huge Collection of Ruby One Liners"
publication: "Ruby Weekly"
issue: 389
published_at: "2018-03-08"
canonical_url: "https://rubyweekly.com/issues/389"
---

#389: A Huge Collection of Ruby One Liners

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

Ruby WeeklyIssue 389 — March 8, 2018

Eliav Lavi[Timeasure: A New Transparent In-Production Profiler](https://medium.com/rubyinside/how-i-built-timeasure-part-1-motivation-method-wrapping-1304cf841206)Using Ruby’s various Module lifecycle hooks, Timeasure ends up with a nice, clean interface for tracking methods. [Homepage and live demo here](https://timeasure-demo.herokuapp.com/).


Sundeep Agarwal[An Epic Collection of Ruby One Liners](https://github.com/learnbyexample/Command-line-text-processing/blob/master/ruby_one_liners.md)Ruby isn’t just for building webapps, y’know. It’s an amazing swiss army knife for anyone at the command line and these examples could help you out with a lot of menial tasks.


GoCDSponsored[Pro Tip for Your First Pipeline: Managing Build Versions in GoCD](https://www.gocd.org/2018/02/13/managing-build-versions-pipeline/?utm_campaign=cd_hacks&utm_medium=email&utm_source=cooperess_ruby&utm_content=cd_hacks&utm_term=)Managing build versions is one of the key considerations for designing good CD pipelines. This blog uses a simple web service as an example to show you how to do that in GoCD.

[![GoCD\](https://copm.s3.amazonaws.com/5cece923.png)](https://www.gocd.org/2018/02/13/managing-build-versions-pipeline/?utm_campaign=cd_hacks&utm_medium=email&utm_source=cooperess_ruby&utm_content=cd_hacks&utm_term=)


Vishal Telangre[How Ruby 2.5 Prints Backtraces and Error Messages](https://blog.bigbinary.com/2018/03/07/ruby-2-5-prints-backstrace-and-error-message-in-reverse-order.html)You may have noticed error messages in Ruby 2.5 are presented differently to before.. but it’s only if STDERR is a TTY.


Planet Argon[Take the 2018 Rails Hosting Survey](http://rails-hosting.com/)The 5th time Planet Argon has run this popular survey. Consider taking it as the results, such as [these from 2016](http://rails-hosting.com/2016/index.html), always make for interesting reading.


Chris Frank[Rack::Reducer: Map URL Params to Functions That Filter Data](https://github.com/chrisfrank/rack-reducer)Handles sanitizing and filtering on your behalf.


Jesus Castello[Using Genetic Algorithms in Ruby](https://blog.codeship.com/using-genetic-algorithms-in-ruby/)A _very_ basic intro to solving optimization problems using concepts like survival of the fittest and adaptation with genetic algorithms.


Jobs

- [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-q3-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-q3-18). X-Team
- [Full-Stack Rails Engineer (San Francisco)](https://boards.greenhouse.io/instacart/jobs/271424?gh_src=scon4swi1#.WpfSnxPFIWo)Join Instacart's world-class engineering team (just 150 people). Help us scale across North America. Enjoy lots of autonomy. Instacart
- [Looking For Your Next Ruby Job?](https://underdog.io/?utm_medium=advertisement&utm_source=rubyweekly&utm_campaign=homepage2018-mar-8&utm_content=new-job)Try Underdog.io, where hundreds of the best tech companies go to meet top Ruby engineers. Companies email you directly as soon as next Monday. Underdog.io

In brief

- [Ruby Up From 12th to 9th in the Latest TIOBE Index](http://www.tiobe.com/tiobe-index/?utm_source=rubyweekly&utm_medium=email) news TIOBE
- [12 Ruby Conferences You Should Attend in Spring 2018](https://rubygarage.org/blog/international-ruby-conferences-spring-2018?utm_source=rubyweekly&utm_medium=email) news
- [Learn How to Easily Build and Deploy Ruby Apps on Azure](https://azure.microsoft.com/develop/ruby/?utm_source=rubyweekly&utm_medium=email) MicrosoftSponsored
- [Ruby Memory Usage Vocabulary Explained](http://daydreamsinruby.com/ruby-memory-usage-terms-explained/?utm_source=rubyweekly&utm_medium=email) tutorial Allison McMillan
- [A Bare Bones Rails Action Cable Tutorial](http://smallcity.ca/2018/03/01/bare-bones-rails-action-cable-tutorial.html?utm_source=rubyweekly&utm_medium=email) tutorial 
A minimal amount of code to make an Action Cable chat server. Sean Lerner
- [Implementing a Basic Debug Mode for Your Ruby CLI](http://nts.strzibny.name/implementing-a-basic-debug-mode-for-your-ruby-cli/?utm_source=rubyweekly&utm_medium=email) tutorial 
Tips for making your command-line program more debug-friendly. Josef Strzibny
- [Solving CAPTCHAs with TensorFlow and Ruby](https://medium.com/@Arafat./solving-captchas-with-tensorflow-and-ruby-bc704c6ab92c?utm_source=rubyweekly&utm_medium=email) tutorial 
Only read this if you are a human. Arafat Khan
- [Considerations When Upgrading a Rails App from 4.2 to 5.0](https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-4-2-to-5-0.html?utm_source=rubyweekly&utm_medium=email) tutorial Mauro Otonelli
- [Uploading Files with ActiveStorage in Rails 5.2](https://gorails.com/episodes/file-uploading-with-activestorage-rails-5-2?utm_source=rubyweekly&utm_medium=email) video GoRails
- [Encrypted Credentials in Rails 5.2](https://www.driftingruby.com/episodes/encrypted-credentials-in-rails-5-2?utm_source=rubyweekly&utm_medium=email) video 
The video also extends the new credentials functionality to handle environments. Drifting Ruby
- [Discussing React on Rails with Justin Gordon and Rob Wise](https://devchat.tv/ruby-rogues/rr-352-react-rails-webpacker-justin-gordon-rob-wise?utm_source=rubyweekly&utm_medium=email) podcast Ruby Rogues
- [Why Ryan Bigg Likes Hanami](https://ryanbigg.com/2018/03/my-thoughts-on-hanami?utm_source=rubyweekly&utm_medium=email) opinion 
A prolific Rails developer explains why he’d probably use Hanami over Rails. Ryan Bigg
- [A Tiny Microbenchmark Showing Ruby 2.6's Speed](https://gist.github.com/k0kubun/7a1145f8391fbc3c076052d6f40d9e8e?utm_source=rubyweekly&utm_medium=email) opinion 
Interesting but hopefully we’ll see more thorough benchmarks soon. Takashi Kokubun
- [Monitor and Tune Ruby Application Performance with Datadog](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS) tools 
Visualize application traces, set sophisticated alerts, and resolve performance issues. [Start a free trial](https://www.datadoghq.com/dg/apm/ruby-tracing/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyS). DatadogSponsored
- [Licensed: Cache and Verify the Licenses of Dependencies](https://github.com/github/licensed?utm_source=rubyweekly&utm_medium=email) tools 
Currently being used at GitHub itself. GitHub
- [Server Timing Response Headers for Rails](https://github.com/scoutapp/ruby_server_timing?utm_source=rubyweekly&utm_medium=email) tools 
Bring Rails performance metrics to the DevTools in Chrome 65+. Derek Haynes
- [Speed Up Rails CI Builds 5x - Try Semaphore Boosters](https://semaphoreci.com/landers/boosters-rails?utm_source=rubyweekly&utm_medium=email&utm_campaign=rubyweekly-boosters-20180308) tools SemaphoreSponsored
- [semantic_logger: A 'Next Generation' Logging System](https://github.com/rocketjob/semantic_logger?utm_source=rubyweekly&utm_medium=email) code 
Boasting claims of low latency and high throughput, semantic_logger supports several backends out-of-the-box. rocketjob
- [Invisible Captcha: Unobtrusive Spam Protection for Rails](https://github.com/markets/invisible_captcha?utm_source=rubyweekly&utm_medium=email) code 
Using honeypot principles. Marc Anguera Insa
- [Flipper: Fast and Simple 'Feature Flipping' for Ruby](https://github.com/jnunemaker/flipper?utm_source=rubyweekly&utm_medium=email) code 
Golden oldie but a new release is out. John Nunemaker

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

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