|
Happy Wednesday! Here is issue #175 of our newsletter, bringing you news and the best tools for your current or future Rails projects… 1. 🚨 Would you spot l18n in your lockfile diff? One RubyGems.org account published fifteen typosquats that ran code from extconf.rb during bundle install, and OSV's malware records for ten of them arrived 102 days after they were found. Francois uses a harmless demo app to show what a typosquat looks like in a Gemfile.lock diff and why code review misses it. Read on to see how attacker code runs before your tests start, and why Bundler's no_build_extension breaks a default Rails app. 2. 🎨 Still compiling your Rails CSS with Sprockets? Rishi walks through replacing Sprockets with Propshaft and cssbundling-rails in a Rails 7.2 app, from converting a 3. 🗂️ Where does your Hanami business logic live? Brooke Kuhlmann proposes an app/aspects directory as a single top-level namespace for your business logic, so you don't add a new app sub-directory for every domain concept. Kuhlmann says it works with any web application framework, not only Hanami. Read it for a firmware Creator command that returns a Dry Monads result, a Functionable module that parses CSV, JSON, text and XML into a common format, and a Data object that maps HTTP headers to attributes. Upcoming Events & Learning 📆 Philly.rb meetup on Tuesday, December 15 (5:30-8:00 PM, Indy Hall), Drew Bragg builds an AI agent live in Ruby, starting from 15 lines and ending at about 400. An agent turns out to be an API call, a conversation history, a system prompt, and some tools in a loop. 4. 🚀 Want to try Hanami 3.1 before it ships? Tim Riley announces the Hanami 3.1 release candidate, which the team calls feature-complete and is asking the community to test. It replaces Guard with in-place code reloading, swaps better_errors for a new Hanami-native error page, and makes view exposures lazy. Open it for the commands to spin up a fresh 3.1 app, the Guardfile cleanup when upgrading from 3.0, and where to send your feedback. 5. 💎 RuboCop now builds its AST straight from Prism. So why isn't it 10x faster? In RuboCop 1.93 and RuboCop AST 1.54, Bozhidar Batsov says the translation layer is gone for target Rubies 3.3+ with Prism 2, and measures the new engine at about 10% faster parsing, with parser-related work only about a tenth of a full run on his machine. Read it for why the parser gem stays for older target Rubies, his table of the 500 most downloaded gems' minimum Ruby versions (only 14 ask for 3.3 or newer), and the profiling numbers behind the modest speedup. 6. 🤖 Is anything checking that your coding agent follows your AGENTS.md? Reshabh K Sharma counted about 1.4 million AGENTS.md files in public GitHub repos, roughly 70 times the number in August 2025, and argues that nothing in the agent checks that the rules written in them are kept. Read it for how the count was made with GitHub code search, how many of the 100 most-starred repositories have an instruction file, and what share of the commits to those files carry an AI author or co-author line. Check out our other articles on: Ruby | Rails | Compatibility | Upgrades | Tech Bookmark, share, or save them for later. We hope these links are helpful. 😉 Best, The FastRuby.io Team
|