---
title: "#361: A Crash Course in Analyzing Memory Usage in Ruby"
publication: "Ruby Weekly"
issue: 361
published_at: "2017-08-10"
canonical_url: "https://rubyweekly.com/issues/361"
---

#361: A Crash Course in Analyzing Memory Usage in Ruby

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

Ruby WeeklyIssue 361 — August 10, 2017

Dependabot[Fixing Bundler's Dependency Resolution Algorithm](https://dependabot.com/blog/improving-dependency-resolution-in-bundler)A bug leads to a journey into the resolution logic of Bundler (and a fix that speeds things up immensely).


Thoughtbot[A Crash Course in Analyzing Memory Usage in Ruby](https://robots.thoughtbot.com/a-crash-course-in-analyzing-memory-usage-in-ruby)How to use simple tools to measure the allocated and long-term memory usage of your apps.


CodeshipSponsored[Using Docker and Codeship for Ruby Development](https://resources.codeship.com/ebooks/docker-and-codeship-for-continuous-integration-ruby-aw?utm_source=email-sponsorship&utm_medium=cpc-ruby-weekly-primary&utm_campaign=cooper-ebook-ruby-docker-codeship)Check out this free eBook by Codeship Dev Evangelist Kelly Andrews and learn how to use Docker and Codeship to develop and test a Ruby app.

[![Codeship\](https://copm.s3.amazonaws.com/0d4a3326.png)](https://resources.codeship.com/ebooks/docker-and-codeship-for-continuous-integration-ruby-aw?utm_source=email-sponsorship&utm_medium=cpc-ruby-weekly-primary&utm_campaign=cooper-ebook-ruby-docker-codeship)


Alex Taylor[Looking Into CSRF Protection in Rails](https://medium.com/@mctaylorpants/a-deep-dive-into-csrf-protection-in-rails-19fa0a42c0ef)Understanding the concepts and implementation of CSRF in Rails by walking through the code.


Daniel P. Clark[Advanced Enumeration with Ruby](https://blog.codeship.com/advanced-enumeration-with-ruby/)The methods available on [enumerable](https://ruby-doc.org/core-2.4.1/Enumerable.html) objects in Ruby make it easy to do powerful transformations on your data.


Fabio Akita[Why It's Just Lazy to Bad-Mouth Rails](http://www.akitaonrails.com/2017/08/03/why-is-it-just-lazy-to-bad-mouth-ruby-on-rails)A new onslaught of "Rails is Dead" posts is addressed in this post about the history of Rails and why its future is just fine.


Chris Jeon[Effectively Managing Localization Files in Rails](https://thisbitofcode.com/managing-localization-rails/)Tips on setting up the process and tools for keeping your i18n translation files healthy.


Jobs

- [Senior Backend Engineer at Stash (New York City)](https://www.stashinvest.com/careers?gh_jid=745125&gh_src=abrgws1)We're looking for a Senior Backend Software Engineer with a passion for building reliable, scalable, and performant software. Stash
- [Developer - Web Technologies](https://www.raizlabs.com/careers/?utm_source=rubyweekly&utm_medium=email)Broaden your impact and hone your craft; build apps from scratch for expert clients. Pick your tools: Ruby, JavaScript, Elixir… Raizlabs

In brief

- [Rails 5.1.3 Released](http://weblog.rubyonrails.org/2017/8/3/Rails-5-1-3-released/?utm_source=rubyweekly&utm_medium=email) news Official Rails Blog
- [Is your Rails app fast?](https://rorvswild.com?utm_source=rubyweekly&utm_medium=email) 
Speed is the most important feature. Find out bottlenecks in your code with RoRvsWild. RorVsWildSponsored
- [Modeling has_many Relationships with AWS DynamoDB](https://blog.codeship.com/modeling-has_many-relationships-with-dynamodb/?utm_source=rubyweekly&utm_medium=email) tutorial Parth Modi
- [Using Gemstash for Private Gem Hosting](https://blog.showoff.ie/using-gemstash-for-private-gem-hosting-8b6170da766c?utm_source=rubyweekly&utm_medium=email) tutorial 
Installing Gemstash on EC2 and allowing access to push and fetch gems for your team. Showoff
- [Tips on Treating Flakiness in your Rails Test Suite](http://semaphoreci.com/blog/2017/08/03/tips-on-treating-flakiness-in-your-test-suite.html?utm_source=rubyweekly&utm_medium=email) tutorial 
Includes factories, timestamps, external services, and Ajax. Semaphore CI
- [Faster Rails: Eliminating N+1 Queries](https://semaphoreci.com/blog/2017/08/09/faster-rails-eliminating-n-plus-one-queries.html?utm_source=rubyweekly&utm_medium=email) tutorial Igor Šarčević
- [Quick Tip: The --profile Hammer and RSpec](https://schwad.github.io/ruby/rails/testing/2017/07/31/the-profile-hammer-and-rspec.html?utm_source=rubyweekly&utm_medium=email) tutorial Nick Schwaderer
- [Create a State Machine with AASM, Sequel, SQLite, Rake, and RSpec](https://www.nopio.com/blog/ruby-state-machine-aasm-tutorial/?utm_source=rubyweekly&utm_medium=email) tutorial 
Learn how to connect AASM (a state machine for Ruby) with Sequel and how to create a micro Ruby application using Rake, DotEnv, SQLite and RSpec. Nopio
- [Using Ruby and Amazon SQS FIFO Queues](http://www.pablocantero.com/blog/2017/08/06/using-ruby-and-amazon-sqs-fifo-queues/?utm_source=rubyweekly&utm_medium=email) tutorial 
How to use Ruby and the Shoryuken gem to ensure the order of messages for an SQS queue. Pablo Cantero
- [Using dry-container to Implement Inversion Of Control for Hanami::Events](http://rubyblog.pro/2017/08/inversion-of-control-wtih-dry-container-for-hanami-events?utm_source=rubyweekly&utm_medium=email) tutorial Sergii Makagon
- [Defining 'Super Secret' Hard-to-Call Methods](http://www.rubypigeon.com/posts/super-secret-methods/?utm_source=rubyweekly&utm_medium=email) tutorial Tom Dalling
- [4 Ways to Secure Your Auth System in Rails](https://blog.codeship.com/4-ways-to-secure-your-authentication-system-in-rails/?utm_source=rubyweekly&utm_medium=email) tutorial Sid Krishnan
- [Bundler and Private Dependencies](https://depfu.io/blog/2017/08/02/bundler-and-private-dependencies?utm_source=rubyweekly&utm_medium=email) tutorial 
A look at the many ways you can tell Bundler how to access private dependencies. Florian Munz
- [Case Study: How TravelPerk Decreased Their Build Times With Codeship](https://codeship.com/customers/travelperk?utm_source=kubernetes17&utm_medium=rubyweeklybriefsecondary) CodeshipSponsored
- [What I Learned to Love About Ruby When I Switched to Python](https://www.youtube.com/watch?v=GC-XIchAcqM) video Lauren Ellsworth
- [A Collection of Ruby One-Liners](http://benoithamelin.tumblr.com/ruby1line/?utm_source=rubyweekly&utm_medium=email) code Benoit Hamelin
- [graphql-guard: Simple Authorization Gem for GraphQL](https://github.com/exAspArk/graphql-guard?utm_source=rubyweekly&utm_medium=email) code exAspArk
- [Reduce time spent debugging by 90%](https://rollbar.com/rubyweekly?utm_source=rubyweekly&utm_medium=email) 
Instantly know what's broken and why. Rollbar is monitoring, alerting, and analytics for production errors. Try it. ROLLBARSponsored

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

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