Tag: ruby

  • Ruby Gem Dependency Constraints: Stop Making This Harder Than It Needs To Be

    The Ruby community has a collective anxiety disorder about gem versioning. Half the ecosystem pins everything to exact versions out of paranoia, the other half uses >= and hopes for the best, and meanwhile we’re all stuck resolving dependency conflicts that shouldn’t exist. Here’s what actually works, based on where your code lives in the…

  • The Ruby Ecosystem in 2025

    A realistic assessment of Ruby tools and frameworks that stood the test of time Twenty years after Ruby on Rails burst onto the scene with David Heinemeier Hansson’s famous “Build a blog in 15 minutes” screencast, the Ruby ecosystem has matured, consolidated, and—contrary to the perennial “Ruby is dead” proclamations—quietly thrived in its particular niches.…

  • Execute code if a script directly called

    I often want to run some arbitrary code if I run a script directly. The primary example that comes to mind these days is: Strangely enough, despite primarily using Ruby on a daily basis, I haven’t really thought about how this test looks in Ruby: Bash seemed a little more obvious, but apparently there’s a…