Sha256: 46f2694a830a5dc1c2137d361bffe64ea39be2531e52b2caf7a205c231444bb5
Contents?: true
Size: 802 Bytes
Versions: 8
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true 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
8 entries across 8 versions & 1 rubygems