Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate...

ruby-doc.org

Ruby has the class Rational which allows you to store exact fractions. Any calculation on these variables will now use...

There is a gem puppet-ghostbuster which can help you find dead code in puppet projects. To use it, (as...

All direct child directories of app are automatically added to the eager- and autoload paths. They do NOT create a...

On the Rails console, assigning an object to a variable can lead to this strange error (without stacktrace): irb > recipient...

In the discussion of the difference between include and extend in Ruby, there is a misconception that extend would add...

Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...

The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining...

We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...

ruby-doc.org

Do you remember finding where a method is defined? I recently learned from a senior colleague that Method objects are...

github.com

The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...

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

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

Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

When RubyMine reports Rubocop returning "exit code -1", upgrading Rubocop can be the fix: gem install rubocop "The logs" can...

newrelic.com

alias_method makes a copy of a method. This works fine until the same method is overridden using prepend. If...

It most cases it's not necessary to add a version constraint next to your gems in the Gemfile. Since...

With this Ruby script you can print all values in a Redis database to your console (derived from this bash...

tl;dr asdf allows you to manage multiple runtime versions with a single CLI tool and is backwards compatible by...

In Ruby on Rails ActiveRecord::Relation#merge overwrites existing conditions on the same column. This may cause the relation to...

If you want to to create maps within SASS/SCSS-files, it normally works like this: $some-map: (key1: value1, key2: value2...