From 94a41222caa503b1048feb96adc678cc90fc84df Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Sun, 29 Sep 2024 13:56:06 -0400 Subject: [PATCH] dead_end -> syntax_suggest (#243) --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 1 + derailed_benchmarks.gemspec | 4 +++- lib/derailed_benchmarks.rb | 2 +- 4 files changed, 6 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/CHANGELOG.md b/CHANGELOG.md index 37b174d..e9409f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Support ruby-statistics 4.x (https://github.com/zombocom/derailed_benchmarks/pull/238, https://github.com/zombocom/derailed_benchmarks/pull/239) - Repair tests, support ruby-statistics in ruby < 3.0 (https://github.com/zombocom/derailed_benchmarks/pull/241) - Test Rails 7.1 and 7.2 (https://github.com/zombocom/derailed_benchmarks/pull/242) +- Switch from dead_end to syntax_suggest (https://github.com/zombocom/derailed_benchmarks/pull/243) ## 2.1.2 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)