Change the release date format on the plugin doc template

The new format will be this one: February 7, 2017

Fixes #6717
This commit is contained in:
Pier-Hugues Pellerin 2017-02-15 14:37:12 -05:00
parent bf90e7e193
commit 080c8ac8bf

View file

@ -81,8 +81,9 @@ module LogStash module Docgen
gemspec.version.to_s
end
def release_date(format = "%Y-%m-%d")
def release_date(format = "%B %-d, %Y")
@release_date ||= begin
response = open("https://rubygems.org/api/v1/versions/#{canonical_name}.json").read
# HACK: One of out default plugins, the webhdfs, has a bad encoding in the gemspec
# which make our parser trip with this error: