Skip to content

Commit ae05704

Browse files
committed
[#30] Explicitly set format as text for Bundler::Stats::CLI on ConsoleFormatter.
1 parent 805b022 commit ae05704

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# main ([unreleased](https://github.com/fastruby/rails_stats/compare/v1.0.2...main))
22

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

2627
* [FEATURE: add more aggregate stats](https://github.com/fastruby/rails_stats/pull/5)
27-
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)
28+
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)

lib/rails_stats/console_formatter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RailsStats
44
class ConsoleFormatter < StatsFormatter
55
def to_s
6-
Bundler::Stats::CLI.start
6+
Bundler::Stats::CLI.start(['--format', 'text'])
77

88
print_header
99
sorted_keys = @statistics.keys.sort
@@ -70,4 +70,4 @@ def print_schema_stats
7070
end
7171
end
7272
end
73-
end
73+
end

0 commit comments

Comments
 (0)