statusz 0.1.0.pre.2 → 0.1.0.pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/statusz/version.rb +1 -1
- data/lib/statusz.rb +1 -1
- metadata +1 -1
data/lib/statusz/version.rb
CHANGED
data/lib/statusz.rb
CHANGED
@@ -57,7 +57,7 @@ module Statusz
|
|
57
57
|
# For readability, it's nice to have the massive 'all commits' field be the last one.
|
58
58
|
all_commits = fields.delete "all commits"
|
59
59
|
fields_with_commits_last = fields.map { |name, value| [name, value] }
|
60
|
-
fields_with_commits_last << all_commits if all_commits
|
60
|
+
fields_with_commits_last << ["all commits", all_commits] if all_commits
|
61
61
|
fields_with_commits_last.map { |name, value| "#{name}:\n#{value}" }.join("\n\n")
|
62
62
|
when :json
|
63
63
|
fields.to_json
|