Sha256: c1392a5e45c85f7e587bf1a5f3831a31ea1606cfe3c4e71adff8497d4d40b6a4
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true require "tocer" module Gemsmith module Generators # Generates documentation support. class Documentation < Base 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 def run create_files update_readme end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-13.6.0 | lib/gemsmith/generators/documentation.rb |