Add pattern matching support to Gem::Version by baweaver · Pull Request #9060 · ruby/rubygems
What was the end-user or developer problem that led to this PR? Ruby 2.7+ introduced pattern matching, but Gem::Version does not support it. This makes version-based conditional logic more verbose ...