Closed ioquatix closed 3 years ago
Failure/Error: require 'benchmark/ips' LoadError: cannot load such file -- benchmark/ips/noop_suite # /Users/samuel/.gem/ruby/3.0.0/gems/benchmark-ips-2.9.0/lib/benchmark/ips.rb:8:in `require' # /Users/samuel/.gem/ruby/3.0.0/gems/benchmark-ips-2.9.0/lib/benchmark/ips.rb:8:in `<top (required)>' # ./spec/db/benchmark_spec.rb:23:in `require' # ./spec/db/benchmark_spec.rb:23:in `<top (required)>'
I'm not sure what's going on, but the latest release seems broken.
I'd suggest you change to use require_relative everywhere too: https://github.com/evanphx/benchmark-ips/blob/dea7eb1df656f40c2455a4d69ede8601ba82bf5f/lib/benchmark/ips.rb#L8
require_relative
gem "benchmark-ips", "~> 2.8.0"
fixes the issue for me.
https://github.com/evanphx/benchmark-ips/pull/115
2.9.1 is out with the fix, sorry about that!
Thanks!
I'm not sure what's going on, but the latest release seems broken.
I'd suggest you change to use
require_relative
everywhere too: https://github.com/evanphx/benchmark-ips/blob/dea7eb1df656f40c2455a4d69ede8601ba82bf5f/lib/benchmark/ips.rb#L8fixes the issue for me.