From 1e8f77d537c568f6502457efb08081bbbac5f3ed Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:37:12 -0500 Subject: [PATCH] Update derailed_benchmarks.gemspec --- derailed_benchmarks.gemspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/derailed_benchmarks.gemspec b/derailed_benchmarks.gemspec index 3fe185a..92957bb 100644 --- a/derailed_benchmarks.gemspec +++ b/derailed_benchmarks.gemspec @@ -34,7 +34,11 @@ Gem::Specification.new do |gem| else gem.add_dependency "ruby-statistics", ">= 2.1" end - gem.add_dependency "syntax_suggest" + if RUBY_VERSION >= '3.2' + gem.add_dependency "syntax_suggest", ">= 2.0" + else + gem.add_dependency "syntax_suggest", "~> 1.1" + end gem.add_dependency "mini_histogram", ">= 0.3.0" gem.add_dependency "rack-test", ">= 0" gem.add_dependency "base64", ">= 0"