-
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 Truth About Conditional Dependencies in Ruby Gems: They Don’t Work the Way You Think
If you’ve ever tried to add conditional logic to your gem’s dependencies based on Ruby version or platform, you’ve probably been surprised when things didn’t work as expected. Here’s the uncomfortable truth: conditional dependencies in gemspecs are evaluated at build time, not at install time. This single fact undermines most attempts to create “smart” ruby…
-
git command to find when a line mentioning “string” was removed from a file on main
Additions and updates to a line are easy, because you can just git blame on the file in question and find who and/or what is responsible for the latest change. However, it’s hard to git blame a line that was removed, right? git log -S<string> Look for differences that change the number of occurrences of…
