What is Ruby doing on Rails?
Hello, you're reading Infinum Ruby Drops, bringing you the latest Ruby and Rails related news straight to your inbox every week.
Diggin’ and Fetchin’ with TruffleRuby
It begins with a clever Ruby trick to extract a value from a deeply nested hash we want to refactor and ends with a prototype changing the language itself.
Read More
Rails 7 is taking up speed. There is no beta out yet, but a lot of features, especially in ActiveRecord are available, if one want’s to wade through the Changelogs.
Versions and have been released to patch CVE-2021-22942 Possible Open Redirect in Host Authorization Middleware.
Monkeypatching can be a great way to improve existing code if used right. Let's find out how.
A guide to built-in configuration for role-based access control (RBAC) in a Ruby application.

Blast from the past

An object that encapsulates access to an external system or resource

There's been many valiant efforts to make Rails on Windows a good experience. However, given that Windows now runs Linux at near-native speeds with an actual shipping Linux Kernel using WSL2, Ruby on Rails folks using Windows should do their work in WSL2.
Beyond Ruby
Our industry has gotten very good at pressing operations engineers to get better at writing code, writing tests, and software engineering in general these past few years. Which is great! But we have not been nearly so good at pushing software engineers to level up their systems skills. Which is unfortunate, because it is just as important.
Gem of the week
We just released console1984 and audits1984. The first gem extends Rails consoles to make them auditable and to protect sensitive accesses. The second one is a simple auditing tool. This constitutes the other essential part of the technology we developed at Basecamp to raise the privacy bar in Rails applications, and I am thrilled to finally open source it.