lib/cc/analyzer/formatters.rb in codeclimate-0.9.7 vs lib/cc/analyzer/formatters.rb in codeclimate-0.10.0

- old
+ new

@@ -1,19 +1,19 @@ module CC module Analyzer module Formatters - autoload :Formatter, "cc/analyzer/formatters/formatter" + autoload :Formatter, "cc/analyzer/formatters/formatter" autoload :JSONFormatter, "cc/analyzer/formatters/json_formatter" - autoload :PlainTextFormatter, "cc/analyzer/formatters/plain_text_formatter" + autoload :PlainTextFormatter, "cc/analyzer/formatters/plain_text_formatter" autoload :Spinner, "cc/analyzer/formatters/spinner" FORMATTERS = { json: JSONFormatter, text: PlainTextFormatter, }.freeze def self.resolve(name) - FORMATTERS[name.to_sym] or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}" + FORMATTERS[name.to_sym] or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(', ')}" end end end end