From f61fefd10dac4c189877bb0fc0a245beecf81cca Mon Sep 17 00:00:00 2001 From: duard Date: Wed, 21 Aug 2024 09:09:02 +0200 Subject: [PATCH] Replace statistics require for ruby-statistics as it fails running Rails 7.2 --- derailed_benchmarks.gemspec | 2 +- lib/derailed_benchmarks/stats_from_dir.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/derailed_benchmarks.gemspec b/derailed_benchmarks.gemspec index ba3ebb6..d9231a2 100644 --- a/derailed_benchmarks.gemspec +++ b/derailed_benchmarks.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |gem| gem.add_dependency "rack", ">= 1" gem.add_dependency "rake", "> 10", "< 14" gem.add_dependency "thor", ">= 0.19", "< 2" - gem.add_dependency "ruby-statistics", ">= 2.1" + gem.add_dependency "ruby-statistics", ">= 4.0" gem.add_dependency "mini_histogram", ">= 0.3.0" gem.add_dependency "dead_end", ">= 0" gem.add_dependency "rack-test", ">= 0" diff --git a/lib/derailed_benchmarks/stats_from_dir.rb b/lib/derailed_benchmarks/stats_from_dir.rb index 5c107e3..5900535 100644 --- a/lib/derailed_benchmarks/stats_from_dir.rb +++ b/lib/derailed_benchmarks/stats_from_dir.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'bigdecimal' -require 'statistics' +require 'ruby-statistics' require 'stringio' require 'mini_histogram' require 'mini_histogram/plot'