makandra dev

You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...

There is a way to use multiple databases in Rails. You may have asked yourself how you're able to...

The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...

When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...

This card explains how to generate an entity relationship diagram for your Rails application. We also show how to limit...

Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...

makandra dev

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

We use foreman to start all necessary processes for an application, which are declared in a Procfile. This is very...

Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...

Learn to create test data effectively using factories. Decouple tests by having each test start with an empty database...

makandra dev
github.com

Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...

umaar.com

Similar to the Webpack Bundle Analyzer, Chrome's new Lighthouse feature … … shows a visualisation of your JavaScript bundles. It's...

From Exploring ES6: Module imports are hoisted (internally moved to the beginning of the current scope). Therefore, it doesn’t...

Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...

This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.

makandra dev

The gem better_errors offers a detailed error page with an interactive REPL for better debugging. I had the issue...

The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are...

The rubygems binary gem allows to extract a local gem with gem unpack GEMNAME. For more details see the official...

Our gem spreewald supports a few helpers for development. In case you notice errors in your Cucumber tests, you might...

When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.

If you have a flaky command you can use the nick-invision/retry to re-try a failing command, optionally...

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...