From 4c34f33dc91256f1404a1c4acfc8ea83fe8cc544 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 9 Mar 2018 15:33:59 +0900 Subject: [PATCH] Add pry-byebug gem to Gemfile 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. --- Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index 68761117f888..67535c231499 100644 --- a/Gemfile +++ b/Gemfile @@ -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'