statusz 0.1.0.pre.2 → 0.1.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
|