Sha256: 721418d388c1d7d217cef203ee26b3fdca28c55d59db2a15c62689ea9e3cb0c7

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

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

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

    def self.version
      "0.1.0"
    end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-6.2.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-6.1.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt
gemsmith-6.0.0 lib/gemsmith/templates/%gem_name%/lib/%gem_name%/identity.rb.tt