makandra dev

In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...

makandra dev
github.com

capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...

json is part of the standard library of Ruby and deals with JSON, obviously. As you know, JSON is the...

labs.bishopfox.com

The linked article shows that there are unclear parts in the JSON specification and that different parsers treat them differently...

live.julik.nl

The linked article provides a good overview of the various concurrency primitives in Ruby, and what's changing in Ruby...

makandra dev

I just ran into this deployment error after switching from the asset pipeline to webpack: 01:05 deploy:assets:precompile...

makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...

In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...

The ExceptionNotification has plugins that talk to external APIs rather then just sends emails, like microsoft teams or slack. You...

Ruby offers monkey patching methods in order to change the behavior of a library if there's no better way...

Ruby's String#split returns an array of substrings from the given string. Usually, this is missing the split characters...

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...

In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

Installing old Rubies (<= 2.3) with a standard rbenv + ruby-build is no longer possible on Ubuntu 20.04. This is because...

If you want to get the path of a file relative to another, you can use the expand_path method...

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

rubyjard.org

Ruby Jard provides a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...