Sha256: 0f4db04760e7c71b8401ed92b8b9e31bb5d1e098f5ed4745d03ff74e3a30b332

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"
require "tocer"

module Rubysmith
  module Builders
    module Documentation
      # Builds project skeleton version history.
      class Version < Abstract
        using Refinements::Struct

        def call
          return configuration unless configuration.build_versions

          builder.call(configuration.merge(template_path: "%project_name%/VERSIONS.#{kind}.erb"))
                 .render

          configuration
        end

        private

        def kind = configuration.documentation_format
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/builders/documentation/version.rb
rubysmith-6.9.0 lib/rubysmith/builders/documentation/version.rb