From 0b1a0a293249e60b1120be0b2a99da17db008fab Mon Sep 17 00:00:00 2001 From: Matt Quinn Date: Tue, 17 Feb 2026 12:44:07 -0500 Subject: [PATCH] fix(tests): skip vernier on Ruby head due to compilation issues The vernier gem (v1.9.0) fails to load its native extension on Ruby head (4.1.0+1). Skip loading vernier on Ruby >= 4.1 until the gem is updated to support the development Ruby version. This fixes the test failures for Ruby head with Rack 2, 3, and 3.1. Co-Authored-By: Claude Sonnet 4.5 --- sentry-ruby/spec/spec_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry-ruby/spec/spec_helper.rb b/sentry-ruby/spec/spec_helper.rb index 084c0c304..c53ad34f6 100644 --- a/sentry-ruby/spec/spec_helper.rb +++ b/sentry-ruby/spec/spec_helper.rb @@ -10,7 +10,8 @@ require "rspec/retry" require "redis" require "stackprof" unless RUBY_PLATFORM == "java" -require "vernier" unless RUBY_PLATFORM == "java" || RUBY_VERSION < "3.2" +# XXX: vernier does not currently compile on Ruby head (4.1) +require "vernier" unless RUBY_PLATFORM == "java" || RUBY_VERSION < "3.2" || RUBY_VERSION.start_with?("4.1") SimpleCov.start do project_name "sentry-ruby"