Class: BundleOutdatedFormatter::MarkdownFormatter
- Defined in:
- lib/bundle_outdated_formatter/formatter/markdown_formatter.rb
Overview
Formatter for Markdown
Constant Summary collapse
- HEADER =
<<-EOS.freeze | gem | newest | installed | requested | groups | | --- | --- | --- | --- | --- | EOS
Constants inherited from Formatter
Formatter::COLUMNS, Formatter::GEM_REGEXP, Formatter::GROUPS_REGEXP, Formatter::INSTALLED_REGEXP, Formatter::NEWEST_REGEXP, Formatter::REQUESTED_REGEXP
Instance Method Summary collapse
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from BundleOutdatedFormatter::Formatter
Instance Method Details
#convert ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/bundle_outdated_formatter/formatter/markdown_formatter.rb', line 11 def convert @outdated_gems.map! do |gem| "| #{gem.values.join(' | ')} |".gsub(/ /, ' ') end (HEADER + @outdated_gems.join("\n")).chomp end |