Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on pry #1794

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ coverage
Gemfile.lock
*.swp
tags
.pryrc
.tags*
.DS_Store
.idea/
Expand Down
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ group :development do
gem 'redcarpet', '~> 3.4'
end
end

group :debugging do
gem 'pry', '~> 0.14.0'
end
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 0 additions & 5 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
5 changes: 0 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions tasks/console.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
desc 'Starts the interactive console'
task :console do
require 'pry'
Pry.start
require 'irb'
ARGV.clear
IRB.start
end