lib/gemsmith/generators/documentation.rb in gemsmith-13.6.0 vs lib/gemsmith/generators/documentation.rb in gemsmith-13.7.0

- old
+ new

@@ -4,10 +4,17 @@ 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" @@ -15,14 +22,9 @@ 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