Skip to content

[#30] Explicitly set format as text for Bundler::Stats::CLI on ConsoleFormatter. #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# main ([unreleased](https://github.com/fastruby/rails_stats/compare/v1.0.2...main))

* [BUGFIX: Explicitly set format as text for `Bundler::Stats::CLI` on `ConsoleFormatter`](https://github.com/fastruby/rails_stats/pull/40)
* [BUGFIX: Fix JSON output missing Code and Tests total count](https://github.com/fastruby/rails_stats/pull/40)
* Update README examples
* [FEATURE: Output number of tables created from schema.rb or structure.sql, add polymorphic models count](https://github.com/fastruby/rails_stats/pull/37)
Expand All @@ -24,4 +25,4 @@
# v1.0.1 / 2018-10-8

* [FEATURE: add more aggregate stats](https://github.com/fastruby/rails_stats/pull/5)
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)
4 changes: 2 additions & 2 deletions lib/rails_stats/console_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RailsStats
class ConsoleFormatter < StatsFormatter
def to_s
Bundler::Stats::CLI.start
Bundler::Stats::CLI.start(['--format', 'text'])

print_header
sorted_keys = @statistics.keys.sort
Expand Down Expand Up @@ -70,4 +70,4 @@ def print_schema_stats
end
end
end
end
end