Skip to content

Commit

Permalink
tweak debug tools
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jul 6, 2023
1 parent 758745f commit db0e1dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion lib/html_proofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db0e1dc

Please sign in to comment.