NEW: added support for newer versions of Ruby (3.x)