From aa5f22995bb08964c2c3446d0eb5596661898e3e Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Sun, 29 Sep 2024 17:14:49 +0000 Subject: [PATCH] dead_end -> syntax_suggest --- .github/workflows/ci.yml | 2 +- derailed_benchmarks.gemspec | 4 +++- lib/derailed_benchmarks.rb | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b804102..01bdc94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/derailed_benchmarks.gemspec b/derailed_benchmarks.gemspec index 592d7ff..bbd5db8 100644 --- a/derailed_benchmarks.gemspec +++ b/derailed_benchmarks.gemspec @@ -34,8 +34,10 @@ 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 "mini_histogram", ">= 0.3.0" - gem.add_dependency "dead_end", ">= 0" gem.add_dependency "rack-test", ">= 0" gem.add_dependency "base64", ">= 0" gem.add_dependency "mutex_m", ">= 0" diff --git a/lib/derailed_benchmarks.rb b/lib/derailed_benchmarks.rb index 2f1e379..c8d0de1 100644 --- a/lib/derailed_benchmarks.rb +++ b/lib/derailed_benchmarks.rb @@ -4,7 +4,7 @@ require 'bundler' require 'get_process_mem' -require 'dead_end' +require 'syntax_suggest' module DerailedBenchmarks def self.gem_is_bundled?(name)