Sha256: 1e0840756ddae3ed2d2f011fcb4717201230057cdcfe29e317ea005079527357
Contents?: true
Size: 658 Bytes
Versions: 23
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true require "tocer" module Gemsmith module Generators # Generates documentation support. class Documentation < Base def run create_files update_readme end private def create_files template "%gem_name%/README.md.tt" template "%gem_name%/CONTRIBUTING.md.tt" template "%gem_name%/CODE_OF_CONDUCT.md.tt" template "%gem_name%/LICENSE.md.tt" template "%gem_name%/CHANGES.md.tt" end def update_readme File.join(gem_root, "README.md") .then { |readme| Tocer::Writer.new(readme).call } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems