Module: Unwrappr::Writers::Title
- Defined in:
- lib/unwrappr/writers/title.rb
Overview
Add the gem name to the annotation as a heading. If a homepage URI has been determined this heading will link to that page.
Implements the ‘annotation_writer` interface required by the LockFileAnnotator.
Class Method Summary collapse
Class Method Details
.write(gem_change, gem_change_info) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/unwrappr/writers/title.rb', line 12 def write(gem_change, gem_change_info) embellished_gem_name = maybe_link( gem_change.name, gem_change_info.dig(:ruby_gems, 'homepage_uri') ) "### #{embellished_gem_name}\n" end |