Skip to content

Commit db91a98

Browse files
committed
Fix benchmark LoadError in benchmark scripts
The benchmark default gem became bundled in Ruby v4.0 [1]. It needs to be added to the Gemfile to allow the standalone benchmark scripts to run, but it doesn't need to be added as a dependency in the gemspec. Note that there doesn't appear to be a simple way to run all of the benchmark scripts and indeed some of them don't appear to run successfully even in Ruby v3. [1]: https://rubyreferences.github.io/rubychanges/4.0.html#default-gems-that-became-bundled
1 parent 9172bd4 commit db91a98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
33

44
group :development do
55
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('4.0.0')
6+
gem 'benchmark'
67
gem 'irb'
78
gem 'logger'
89
end

0 commit comments

Comments
 (0)