Sha256: a33fb501ad0d327ce003439c1324ed995a8d93064b15393523cb695caf60d201

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

Gem::Specification.new do |spec|
  spec.name = "<%= configuration.project_name %>"
  spec.version = "<%= configuration.project_version %>"
  spec.authors = ["<%= configuration.author_name %>"]
  spec.email = ["<%= configuration.author_email %>"]
  spec.homepage = "<%= configuration.computed_project_url_home %>"
  spec.summary = ""
  spec.license = "<%= configuration.license_label_version %>"

  spec.metadata = {
    "bug_tracker_uri" => "<%= configuration.computed_project_url_issues %>",
    "changelog_uri" => "<%= configuration.computed_project_url_versions %>",
    "documentation_uri" => "<%= configuration.computed_project_url_home %>",
    "label" => "<%= configuration.project_label %>",
    "rubygems_mfa_required" => "true",
    "source_code_uri" => "<%= configuration.computed_project_url_source %>"
  }

  <% if configuration.build_security %>
    spec.signing_key = Gem.default_key_path
    spec.cert_chain = [Gem.default_cert_path]
  <% end %>

  spec.required_ruby_version = "~> <%= RUBY_VERSION[/\d+\.\d+/] %>"
  <% if configuration.build_cli %>
    spec.add_dependency "dry-container", "~> 0.9"
  <% end %>
  <% if configuration.build_cli %>
    spec.add_dependency "pastel", "~> 0.8"
  <% end %>
  <% if configuration.build_refinements %>
    spec.add_dependency "refinements", "~> 9.2"
  <% end %>
  <% if configuration.build_cli %>
    spec.add_dependency "runcom", "~> 8.2"
  <% end %>
  <% if configuration.build_cli %>
    spec.add_dependency "spek", "~> 0.2"
  <% end %>
  <% if configuration.build_zeitwerk %>
    spec.add_dependency "zeitwerk", "~> 2.5"
  <% end %>

  <% if configuration.build_cli %>
    spec.bindir = "exe"
    spec.executables << "<%= configuration.project_name %>"
  <% end %>
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
  spec.files = Dir["*.gemspec", "lib/**/*"]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-17.0.1 lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb