From e8ca77f8420b23ed44a54632fff03439e37612e3 Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:27:40 -0500 Subject: [PATCH 1/2] Update derailed_benchmarks.gemspec Syntax_suggest in all ruby versions --- derailed_benchmarks.gemspec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/derailed_benchmarks.gemspec b/derailed_benchmarks.gemspec index 358ac4d..3fe185a 100644 --- a/derailed_benchmarks.gemspec +++ b/derailed_benchmarks.gemspec @@ -34,9 +34,7 @@ Gem::Specification.new do |gem| else gem.add_dependency "ruby-statistics", ">= 2.1" end - if RUBY_VERSION < "3.2" - gem.add_dependency "syntax_suggest", "~> 1.1.0" - end + gem.add_dependency "syntax_suggest" gem.add_dependency "mini_histogram", ">= 0.3.0" gem.add_dependency "rack-test", ">= 0" gem.add_dependency "base64", ">= 0" 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 2/2] 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"