From e391a570cacc66121ef8992de4a42d233651b1c0 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Thu, 19 Dec 2024 17:17:34 -0500 Subject: [PATCH 1/2] Remove conditional byebug --- lib/rails_stats/console_formatter.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/rails_stats/console_formatter.rb b/lib/rails_stats/console_formatter.rb index 5531649..990b726 100644 --- a/lib/rails_stats/console_formatter.rb +++ b/lib/rails_stats/console_formatter.rb @@ -36,8 +36,6 @@ def print_line(name, statistics) m_over_c = (statistics.methods / statistics.classes) rescue m_over_c = 0 loc_over_m = (statistics.code_lines / statistics.methods) - 2 rescue loc_over_m = 0 - require 'byebug'; byebug if statistics.nil? - puts "| #{name.ljust(20)} " \ "| #{statistics.files_total.to_s.rjust(7)} " \ "| #{statistics.lines.to_s.rjust(7)} " \ From 2c4a3e586ee084e3c373370416a8c8fc0ae3cc26 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Thu, 19 Dec 2024 17:20:50 -0500 Subject: [PATCH 2/2] Add reference to PR #29 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 697298f..f6b51f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ * +# v2.0.1 ([commits](https://github.com/fastruby/rails_stats/compare/v2.0.0...v2.0.1)) + +* [BUGFIX: Remove conditional byebug](https://github.com/fastruby/rails_stats/pull/29) + # v2.0.0 ([commits](https://github.com/fastruby/rails_stats/compare/v1.0.2...v2.0.0)) * [FEATURE: Add basic coverage to RailsStats::CodeStatistics#to_s](https://github.com/fastruby/rails_stats/pull/10)