In case you want to use pry with an older version of Ruby, you can try the following configurations.

Ruby and Rails have several methods for creating a new object that looks like another: clone, dup, deep_dup. When...

You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...

You can run bundle install in parallel. This might be helpful for development, where you often install many new gems...

When you have many changes, and you want to spread them across different commits, here is a way to stage...

github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

"Everything in Ruby is an object". This is also true for nested hashes and arrays. If you copy a hash...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Embedding videos on a website is very easy, add a tag to your source code and it just works...

engineering.wework.com

Ruby's Net::HTTP library repeats a failing request once, as long as it deems it idempotent (GET, HEAD etc...

TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...

tenderlovemaking.com

The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...

Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...

If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...

pganalyze.com

It's every developer's nightmare: SQL queries that get large and unwieldy. This can happen fairly quickly with the...

Install the latest bundler version: gem install bundler Fetching bundler-2.3.5.gem Successfully installed bundler-2.3.5 1 gem installed Update the bundler...

For newer Ubuntu versions we currently need to install the patch level version 1.8.7-p375, otherwise the dev dependencies from...

Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...

The Ruby standard lib ships with a YAML Parser called Psych. But serializing and deserializing data seems not as obvious...

Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...