Sha256: a866420ae0119d3bf3ab983a05a953ec8ac6322cf25be16ee7ff785cb7c23346

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module <%= config.dig(:gem, :class) %>
  # Gem identity information.
  module Identity
    def self.name
      "<%= config.dig(:gem, :name) %>"
    end

    def self.label
      "<%= config.dig(:gem, :class) %>"
    end

    def self.version
      "0.1.0"
    end

    def self.version_label
      "#{label} #{version}"
    end
    <%- if config.dig(:create, :cli) -%>

    def self.file_name
      ".#{name}rc"
    end
    <%- end -%>
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gemsmith-7.7.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.6.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.5.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.4.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.3.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.2.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.1.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-7.0.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt