From c9423c67848e07652b211dcfa64f7d054ab6f253 Mon Sep 17 00:00:00 2001 From: Paolo Date: Thu, 15 Aug 2024 11:05:28 +0100 Subject: [PATCH 1/2] update requirement in `lib/derailed_benchamrks/stats_from_dir.rb` as mentioned in the issue https://github.com/zombocom/derailed_benchmarks/issues/237 the `ruby-statistics` gem updated their namespce of their gem from `statistics` to `ruby-statiscs` https://github.com/estebanz01/ruby-statistics/commit/baadc9fd3bd90c9ed14e2bba48b8eb806bfe1ff2 and https://github.com/estebanz01/ruby-statistics/commit/00312b9a329c742c2b851a182d3ab35bb86fe535 this commit is addressing the change --- lib/derailed_benchmarks/stats_from_dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' From c72d2ad4432c04b9e33dc74a625e46506b7c2b8a Mon Sep 17 00:00:00 2001 From: Paolo Fabbri Date: Mon, 16 Sep 2024 20:37:25 +0200 Subject: [PATCH 2/2] upgrade ruby-statistics version --- derailed_benchmarks.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"