lib/rubysmith/builders/git_hub.rb in rubysmith-3.0.1 vs lib/rubysmith/builders/git_hub.rb in rubysmith-3.1.0

- old
+ new

@@ -14,19 +14,28 @@ @configuration = configuration @builder = builder end def call + render_funding + return configuration unless configuration.build_git_hub builder.call(with_issue_template).render builder.call(with_pull_request_template).render configuration end private attr_reader :configuration, :builder + + def render_funding + return unless configuration.build_funding + + configuration.merge(template_path: "%project_name%/.github/FUNDING.yml.erb") + .then { |updated_configuration| builder.call(updated_configuration).render } + end def with_issue_template configuration.merge template_path: "%project_name%/.github/ISSUE_TEMPLATE.md.erb" end