Sha256: 102b19ca24896bae1875fe28c326bdd0d70d702d5907d35b7353f922d008d462
Contents?: true
Size: 771 Bytes
Versions: 3
Compression:
Stored size: 771 Bytes
Contents
require "tocer" module Gemsmith module Skeletons # Configures documentation support. class DocumentationSkeleton < BaseSkeleton def create_files cli.template "%gem_name%/README.md.tt", configuration.to_h cli.template "%gem_name%/CONTRIBUTING.md.tt", configuration.to_h cli.template "%gem_name%/CODE_OF_CONDUCT.md.tt", configuration.to_h cli.template "%gem_name%/LICENSE.md.tt", configuration.to_h cli.template "%gem_name%/CHANGELOG.md.tt", configuration.to_h end def update_readme file = File.join cli.destination_root, configuration.gem_name, "README.md" Tocer::Writer.new(file).write end def create create_files update_readme end end end end
Version data entries
3 entries across 3 versions & 1 rubygems