Skip to content

Add benchmark gem to dependencies#73

Open
rmehner wants to merge 1 commit into
aderyabin:masterfrom
rmehner:patch-1
Open

Add benchmark gem to dependencies#73
rmehner wants to merge 1 commit into
aderyabin:masterfrom
rmehner:patch-1

Conversation

@rmehner
Copy link
Copy Markdown

@rmehner rmehner commented Oct 16, 2025

Starting with Ruby 3.5, benchmark will no longer be part of the Ruby Standard Lib. Running this with Ruby 3.4.7 will already give you deprecation warnings:

ruby/3.4.7/lib/ruby/gems/3.4.0/gems/sniffer-0.5.0/lib/sniffer/adapters/net_http_adapter.rb:4: warning: ruby/3.4.7/lib/ruby/3.4.0/benchmark.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add benchmark to your Gemfile or gemspec to silence this warning.
Also please contact the author of sniffer-0.5.0 to request adding benchmark into its gemspec.

This will fix it :)

Starting with Ruby 3.5, benchmark will no longer be part of the Ruby Standard Lib. Running this with Ruby 3.4.7 will already give you deprecation warnings:

```
ruby/3.4.7/lib/ruby/gems/3.4.0/gems/sniffer-0.5.0/lib/sniffer/adapters/net_http_adapter.rb:4: warning: ruby/3.4.7/lib/ruby/3.4.0/benchmark.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add benchmark to your Gemfile or gemspec to silence this warning.
Also please contact the author of sniffer-0.5.0 to request adding benchmark into its gemspec.
```

This will fix it :)
@gjtorikian
Copy link
Copy Markdown

@aderyabin Dec 25 is coming; any chance for this to be merged + released? 🙏

@rmehner
Copy link
Copy Markdown
Author

rmehner commented Mar 3, 2026

Ruby 3.5 ain't a thing, however 4.0 is and the gem in its current version breaks.

@aderyabin anything we can do to get this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants