From b366384cbd62a08b6532b32d92846490b43aa91b Mon Sep 17 00:00:00 2001 From: Ivo Anjo Date: Tue, 25 Oct 2022 14:34:39 +0100 Subject: [PATCH] Avoid using pry-byebug on legacy rubies We already have something similar on the `Gemfile` for the gem but did not copy it to the integration apps. Bundler on Ruby 2.2 gets confused sometimes and tries to install a more modern `byebug`/`pry-byebug` than it should: --- integration/apps/rack/Gemfile | 3 ++- integration/apps/rack/spec/spec_helper.rb | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/apps/rack/Gemfile b/integration/apps/rack/Gemfile index 40ccfac91d..25150b545d 100644 --- a/integration/apps/rack/Gemfile +++ b/integration/apps/rack/Gemfile @@ -42,7 +42,8 @@ else end # Development -gem 'pry-byebug' +gem 'pry-byebug' if RUBY_VERSION >= '2.3.0' && RUBY_ENGINE != 'truffleruby' && RUBY_VERSION < '3.2.0' +gem 'pry-nav' if RUBY_VERSION < '2.3.0' # gem 'pry-stack_explorer', platform: :ruby # gem 'rbtrace' # gem 'ruby-prof' diff --git a/integration/apps/rack/spec/spec_helper.rb b/integration/apps/rack/spec/spec_helper.rb index a77dd7398c..6935b81f7b 100644 --- a/integration/apps/rack/spec/spec_helper.rb +++ b/integration/apps/rack/spec/spec_helper.rb @@ -1,4 +1,3 @@ -require 'byebug' require 'support/integration_helper' RSpec.configure do |config|