Commit 72b5fc3d authored by James Fargher's avatar James Fargher

Merge branch 'usage-ping-dictionary-whitespace' into 'master'

Update usage dictionary generator to clean up whitespace

See merge request gitlab-org/gitlab!55956
parents 930e98ac 62fd4897
---
title: Updating usage dictionary generator
merge_request: 55956
author:
type: other
This diff is collapsed.
......@@ -46,7 +46,7 @@ module Gitlab
end
def render_tiers(object)
"Tiers: #{format(:tier, object[:tier])}"
"Tiers:#{format(:tier, object[:tier])}"
end
def format(key, value)
......
......@@ -17,7 +17,7 @@ module Gitlab
when :introduced_by_url
"[Introduced by](#{value})"
when :distribution, :tier
Array(value).map { |tier| "`#{tier}`" }.join(', ')
Array(value).map { |tier| " `#{tier}`" }.join(',')
else
value
end
......
......@@ -10,8 +10,8 @@ RSpec.describe Gitlab::Usage::Docs::ValueFormatter do
:data_source | 'redis' | 'Redis'
:data_source | 'ruby' | 'Ruby'
:introduced_by_url | 'http://test.com' | '[Introduced by](http://test.com)'
:tier | %w(gold premium) | '`gold`, `premium`'
:distribution | %w(ce ee) | '`ce`, `ee`'
:tier | %w(gold premium) | ' `gold`, `premium`'
:distribution | %w(ce ee) | ' `ce`, `ee`'
:key_path | 'key.path' | '**`key.path`**'
:milestone | '13.4' | '13.4'
:status | 'data_available' | '`data_available`'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment