Sha256: 4a66941d5132eeab1bd20940a97817a5694eb6a49e9f40a8c2ff71f829eff03f

Contents?: true

Size: 567 Bytes

Versions: 12

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    module GitHub
      # Builds project skeleton GitHub funding template.
      class Funding < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_git_hub && settings.build_funding

          settings.merge(template_path: "%project_name%/.github/FUNDING.yml.erb")
                  .then { |updated_configuration| builder.call(updated_configuration).render }

          true
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubysmith-8.1.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-8.0.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.9.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.8.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.7.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.6.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.5.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.4.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.3.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.2.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.1.0 lib/rubysmith/builders/git_hub/funding.rb
rubysmith-7.0.0 lib/rubysmith/builders/git_hub/funding.rb