From acc5b01e21ddc7d5f93b8483ebb4a4ebe1a7c57a Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 29 Apr 2024 10:34:28 +1000 Subject: [PATCH] DEV: Add pry-stack_explorer again (#26763) This was reverted in 26a387c9c63ea86c2620bfaea2ecb3d32a3327cf because the other pry gem changes there broke prod -- it should be safe to just add this dev/test dependency --- Gemfile | 1 + Gemfile.lock | 4 ++++ spec/rails_helper.rb | 1 + 3 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index 86c83728f90..5377f990fa8 100644 --- a/Gemfile +++ b/Gemfile @@ -146,6 +146,7 @@ group :test, :development do gem "shoulda-matchers", require: false gem "rspec-html-matchers" + gem "pry-stack_explorer", require: false gem "byebug", require: ENV["RM_INFO"].nil?, platform: :mri gem "rubocop-discourse", require: false gem "parallel_tests" diff --git a/Gemfile.lock b/Gemfile.lock index 2e5ceb1aec9..f623261fe99 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -308,6 +308,9 @@ GEM pry (>= 0.13, < 0.15) pry-rails (0.3.9) pry (>= 0.10.4) + pry-stack_explorer (0.6.1) + binding_of_caller (~> 1.0) + pry (~> 0.13) public_suffix (5.0.5) puma (6.4.2) nio4r (~> 2.0) @@ -623,6 +626,7 @@ DEPENDENCIES pg pry-byebug pry-rails + pry-stack_explorer puma rack rack-mini-profiler diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 2911632aaea..5db7091bd3f 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -19,6 +19,7 @@ require "rbtrace" if RUBY_ENGINE == "ruby" require "pry" require "pry-byebug" require "pry-rails" +require "pry-stack_explorer" require "fabrication" require "mocha/api" require "certified"