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

On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...

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

Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.

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

makandra dev
medium.com

In Ruby on Rails, all the routes of a given application can be found within the config/routes.rb file.

When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...

makandra dev

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

developer.squareup.com

We're pleased to announce Ruby 3’s new language for type signatures, RBS. One of the long-stated goals...

island94.org

GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...

github.com

These warnings are printed when the etc Gem is installed, while etc is also included in Ruby. Fix with:

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...

In a web application you sometimes have tasks that can not be processed during a request but need to go...

github.com

An unresponsive service can be worse than a down one. It can tie up your entire system if not handled...

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...