Skip to content

Commit

Permalink
Add pry-byebug gem to Gemfile
Browse files Browse the repository at this point in the history
I occasionally want to use pry-byebug when debugging.
This PR adds pry-byebug to Gemfile.
https://github.com/deivid-rodriguez/pry-byebug

pry-byebug (3.6.0) requires MRI 2.2.0 or higher.
https://github.com/deivid-rodriguez/pry-byebug#requirements

So this implementation will switch installation by conditional branch.
We can remove this conditional branch in the future when RuboCop drops
supporting Ruby 2.1.
  • Loading branch information
koic authored and bbatsov committed Mar 12, 2018
1 parent edf6aca commit 4c34f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ gemspec

gem 'bump', require: false
gem 'pry'
# pry-byebug requires MRI 2.2.0 or higher.
gem 'pry-byebug' if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.2.0'
gem 'rake', '~> 12.0'
gem 'rspec', '~> 3.7'
gem 'rubocop-rspec', '~> 1.22.0'
Expand Down

0 comments on commit 4c34f33

Please sign in to comment.