Skip to content

Commit 32ad407

Browse files
committed
Ignore vernier on ruby 4.1.0
1 parent 620047f commit 32ad407

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sentry-ruby/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ gem "puma"
2121

2222
gem "timecop"
2323
gem "stackprof" unless RUBY_PLATFORM == "java"
24-
gem "vernier", platforms: :ruby if RUBY_VERSION >= "3.2.1"
24+
gem "vernier", platforms: :ruby if RUBY_VERSION >= "3.2.1" && RUBY_VERSION < "4.1.0"
2525

2626
gem "graphql", ">= 2.2.6"
2727

sentry-ruby/spec/sentry/vernier/profiler_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "sentry/vernier/profiler"
44

5-
RSpec.describe Sentry::Vernier::Profiler, when: { ruby_version?: [:>=, "3.3"], ruby_engine?: "ruby" } do
5+
RSpec.describe Sentry::Vernier::Profiler, when: :vernier_installed? do
66
subject(:profiler) { described_class.new(Sentry.configuration) }
77

88
before do

sentry-ruby/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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+
require "vernier" unless RUBY_PLATFORM == "java" || RUBY_VERSION < "3.2" || RUBY_VERSION >= "4.1.0"
1414

1515
SimpleCov.start do
1616
project_name "sentry-ruby"

0 commit comments

Comments
 (0)