Sha256: b196f6a9f99db061106d7f6f2c4661aa3ed9574fabd4d02bb654abfe6394d298

Contents?: true

Size: 441 Bytes

Versions: 10

Compression:

Stored size: 441 Bytes

Contents

<% render_namespace do %>
  # 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(:generate, :cli) -%>

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gemsmith-9.6.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.5.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.4.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.3.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.2.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.1.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-9.0.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-8.2.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-8.1.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt
gemsmith-8.0.0 lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt