Skip to content

Commit 299e9c1

Browse files
mjqclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 2685355 commit 299e9c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sentry-ruby/spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
require "rspec/retry"
1111
require "redis"
1212
require "stackprof" unless RUBY_PLATFORM == "java"
13-
require "vernier" unless RUBY_PLATFORM == "java" || RUBY_VERSION < "3.2"
13+
# XXX: vernier does not currently compile on Ruby head (4.1)
14+
require "vernier" unless RUBY_PLATFORM == "java" || RUBY_VERSION < "3.2" || RUBY_VERSION >= "4.1"
1415

1516
SimpleCov.start do
1617
project_name "sentry-ruby"

0 commit comments

Comments
 (0)