You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...

makandra dev

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

Ruby lets you re-use existing RegExp objects by interpolating it into new patterns: locales_pattern = /de|en|fr|es/i...

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

I encountered a unlucky behavior of byebug 11.1.3 (the most recent version at time of writing) when using it with...

When dealing with external data sources, you may have to deal with improperly encoded strings. While you should prefer deciding...

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:

ruby-lang.org

Ruby 3.0 introduced a breaking change in how it treats keyword arguments. There is an excellent blog post on the...

When you have a hex color code, you can easily convert it into its RGB values using plain Ruby.

makandra dev

When your application is open for public sign up and sends out transactional e-mails to a large number of...

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