From db0e1dc1ed0d4d19edf5b3fdbbfd80104c732df9 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Thu, 6 Jul 2023 11:40:22 -0400 Subject: [PATCH] tweak debug tools --- Gemfile | 2 +- lib/html_proofer.rb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 0e90658d..bc7aa30a 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ gem "ruby-lsp", "~> 0.3.2", group: :development gem "github_changelog_generator", "~> 1.16" -gem "awesome_print" +gem "amazing_print" gem "debug" if "#{RbConfig::CONFIG["MAJOR"]}.#{RbConfig::CONFIG["MINOR"]}".to_f >= 3.1 gem "rake" diff --git a/lib/html_proofer.rb b/lib/html_proofer.rb index 73c25681..bfc3c9dd 100644 --- a/lib/html_proofer.rb +++ b/lib/html_proofer.rb @@ -15,8 +15,11 @@ require "fileutils" if ENV.fetch("DEBUG", false) - require "awesome_print" require "debug" + begin + require "amazing_print" + rescue LoadError # rubocop:disable Lint/SuppressedException + end end module HTMLProofer