Skip to content

Commit

Permalink
Merge pull request #1794 from troessner/remove-pry-dependency
Browse files Browse the repository at this point in the history
Remove dependency on pry
  • Loading branch information
mvz authored Nov 10, 2024
2 parents 004ed82 + 3864743 commit b6cd6af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 23 deletions.
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

0 comments on commit b6cd6af

Please sign in to comment.