lib/milestoner/builders/ascii_doc.rb in milestoner-17.5.0 vs lib/milestoner/builders/ascii_doc.rb in milestoner-17.6.0

- old
+ new

@@ -12,20 +12,18 @@ @view = view @enricher = enricher super(**) end - def call at: Time.now.utc - input.build_root.join("index.adoc").make_ancestors.tap { |path| write path, at } - end + def call = input.build_root.join("index.adoc").make_ancestors.tap { |path| write path } private attr_reader :view, :enricher - def write path, at + def write path enricher.call.fmap do |commits| - path.write view.call commits:, at:, layout: input.build_layout, format: :adoc + path.write view.call commits:, layout: input.build_layout, format: :adoc end end end end end