From d2649ce13932e4afcc0085dbabba335dd2e9d3d0 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Wed, 2 Jan 2013 16:00:51 -0800 Subject: [PATCH] - only do string conversion on symbols (config :some_symbol). This keeps support for regexp configs until I finally remove that. --- docs/docgen.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docgen.rb b/docs/docgen.rb index 01cf76d31..26b057e49 100644 --- a/docs/docgen.rb +++ b/docs/docgen.rb @@ -72,8 +72,12 @@ class LogStashConfigDocGenerator # This will let us align comments with config options. name, opts = eval(code) + # TODO(sissel): This hack is only required until regexp configs + # are gone from logstash. + name = name.to_s unless name.is_a?(Regexp) + description = BlueCloth.new(@comments.join("\n")).to_html - @attributes[name.to_s][:description] = description + @attributes[name][:description] = description clear_comments end # def add_config