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

github.com

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

Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...

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

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...

Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...

To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...

We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

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...

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...

When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

api.rubyonrails.org

ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...

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

makandra dev

There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...

There was an issue with makandra_sidekiq < 0.2 concerning the stopping of Sidekiq. Sidekiq < 6 has two finishing timeouts: one...

Most of the time it is a tedious task to apply a code style guide to an existing code...