From ad1eb5a47fc0ecf7c9c365e6f4e16709ef80fabf Mon Sep 17 00:00:00 2001 From: Max Melentiev Date: Sun, 12 May 2024 21:41:03 +0100 Subject: [PATCH] Use debug gem instead of pry (#234) --- Gemfile | 3 +-- bin/console | 7 +++++-- gemfiles/rails_51.gemfile | 6 +++--- gemfiles/rails_52.gemfile | 6 +++--- gemfiles/rails_60.gemfile | 6 +++--- gemfiles/rails_61.gemfile | 6 +++--- gemfiles/rails_70.gemfile | 6 +++--- gemfiles/rails_71.gemfile | 6 +++--- spec/spec_helper.rb | 2 +- 9 files changed, 25 insertions(+), 23 deletions(-) diff --git a/Gemfile b/Gemfile index b83e6bd..5e8caa5 100644 --- a/Gemfile +++ b/Gemfile @@ -6,8 +6,7 @@ gemspec group :development do gem 'appraisal', '~> 2.2' - gem 'pry', '~> 0.14.1' - gem 'pry-byebug', '~> 3.10.1' + gem 'debug', '~> 1.9.2' gem 'sdoc', '~> 2.0.3' gem 'telegram-bot-types', '~> 0.6.3' diff --git a/bin/console b/bin/console index 7d15701..4fa52bd 100755 --- a/bin/console +++ b/bin/console @@ -4,5 +4,8 @@ require 'bundler/setup' require 'telegram/bot' -require 'pry' -Pry.start +require 'irb' +require 'irb/completion' + +IRB.setup(nil) +IRB::Irb.new.run(IRB.conf) diff --git a/gemfiles/rails_51.gemfile b/gemfiles/rails_51.gemfile index e3292cb..2ce28b6 100644 --- a/gemfiles/rails_51.gemfile +++ b/gemfiles/rails_51.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 5.1.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/gemfiles/rails_52.gemfile b/gemfiles/rails_52.gemfile index a174335..f1d1843 100644 --- a/gemfiles/rails_52.gemfile +++ b/gemfiles/rails_52.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 5.2.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/gemfiles/rails_60.gemfile b/gemfiles/rails_60.gemfile index c593cde..65b3746 100644 --- a/gemfiles/rails_60.gemfile +++ b/gemfiles/rails_60.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 6.0.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/gemfiles/rails_61.gemfile b/gemfiles/rails_61.gemfile index ac9af36..cc1df5e 100644 --- a/gemfiles/rails_61.gemfile +++ b/gemfiles/rails_61.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 6.1.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/gemfiles/rails_70.gemfile b/gemfiles/rails_70.gemfile index f9aead7..67628d7 100644 --- a/gemfiles/rails_70.gemfile +++ b/gemfiles/rails_70.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 7.0.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/gemfiles/rails_71.gemfile b/gemfiles/rails_71.gemfile index bd9e185..88c1c4b 100644 --- a/gemfiles/rails_71.gemfile +++ b/gemfiles/rails_71.gemfile @@ -7,14 +7,14 @@ gem "railties", "~> 7.1.0" group :development do gem "appraisal", "~> 2.2" - gem "pry", "~> 0.14.1" - gem "pry-byebug", "~> 3.10.1" + gem "debug", "~> 1.9.2" gem "sdoc", "~> 2.0.3" gem "telegram-bot-types", "~> 0.6.3" gem "rspec", "~> 3.12.0" gem "rspec-its", "~> 1.3.0" gem "rspec-rails", "~> 4.0.2" - gem "rubocop", "~> 0.52.1" + gem "rubocop", "~> 1.59.0" + gem "rubocop-rails", "~> 2.23.1" gem "coveralls", "~> 0.8.23", require: false end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 36471a5..08ef4df 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'pathname' -require 'pry' +require 'debug' require 'rspec/its' if ENV['CI']