From 38647437cbb6c6aeb35512434aa7afa65213dfa4 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sat, 9 Nov 2024 11:30:37 +0100 Subject: [PATCH] Remove dependency on pry Straight irb is now good enough for debugging. --- .gitignore | 1 - Gemfile | 4 ---- README.md | 9 +++------ features/support/env.rb | 5 ----- spec/spec_helper.rb | 5 ----- tasks/console.rake | 5 +++-- 6 files changed, 6 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 1cd053c86..7327c16b3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ coverage Gemfile.lock *.swp tags -.pryrc .tags* .DS_Store .idea/ diff --git a/Gemfile b/Gemfile index f635d78ef..df62eaca7 100644 --- a/Gemfile +++ b/Gemfile @@ -24,7 +24,3 @@ group :development do gem 'redcarpet', '~> 3.4' end end - -group :debugging do - gem 'pry', '~> 0.14.0' -end diff --git a/README.md b/README.md index 98b129def..080d05a4f 100644 --- a/README.md +++ b/README.md @@ -514,18 +514,15 @@ Another useful Rake task is the `console` task. This will throw you right into a ``` bundle exec rake console -[3] pry(main)> require_relative 'lib/reek/examiner' -=> true -[4] pry(main)> Reek::Examiner +irb(main):001> Reek::Examiner => Reek::Examiner ``` -You can also use Pry while running the tests by adding the following at the +You can also use IRB while running the tests by adding the following at the point where you want to start debugging: ```ruby -require 'pry' -binding.pry +binding.irb ``` Have a look at our [Developer API](docs/API.md) for more inspiration. diff --git a/features/support/env.rb b/features/support/env.rb index 34aa07c07..5a43718be 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -2,11 +2,6 @@ require_relative '../../lib/reek/cli/application' require 'aruba/cucumber' -begin - require 'pry-byebug' -rescue LoadError # rubocop:disable Lint/SuppressedException -end - # # Provides runner methods used in the cucumber steps. # diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5ac9dd714..6bf065846 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,11 +8,6 @@ require_relative '../samples/paths' -begin - Reek::CLI::Silencer.without_warnings { require 'pry-byebug' } -rescue LoadError # rubocop:disable Lint/SuppressedException -end - # Simple helpers for our specs. module Helpers def test_configuration_for(config) diff --git a/tasks/console.rake b/tasks/console.rake index 0033e93c2..d5ed5184f 100644 --- a/tasks/console.rake +++ b/tasks/console.rake @@ -1,5 +1,6 @@ desc 'Starts the interactive console' task :console do - require 'pry' - Pry.start + require 'irb' + ARGV.clear + IRB.start end