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

We recently noticed issues with Chrome 75+ when having the w3c option enabled within the Selenium webdriver. It looks like...

makandra dev

You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...

makandra dev

When a Ruby version gem has a letter in its version number, it is considered a pre-release:

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...