Running gem update --system will install the latest version of RubyGems. However the latest version might not be compatible with...

This card is a short summary on different ways of assigning multiple attributes to an instance of a class.

After an upgrade to rails 7 I noticed that async reindexing jobs of Searchkick were failing for Model.reindex(mode: :async...

As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...

Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...

Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...

Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...

tpgi.com

These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...

makandra dev

Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...

I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test

Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]

Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...

If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...

docs.ruby-lang.org

The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

Given you have an array column like this: create_table "users", force: :cascade do |t| t.integer "movie_ids", default: [], array...

You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...

Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

Newest versions of Chromedriver breaks the user agent for device emulation via device name. In previous versions the user agent...