Sha256: 86fe58f4b6f34b65f77e0ccaf65a5b3b7ed58f189b82ec64698a9d95d871d4b4

Contents?: true

Size: 1.92 KB

Versions: 6

Compression:

Stored size: 1.92 KB

Contents

# frozen_string_literal: true

require_relative "./lib/<%= options.entry_path %>/version"

Gem::Specification.new do |spec|
  spec.name    = "<%= options.package_name %>"
  spec.version = <%= options.namespace %>::VERSION
  spec.authors = [<%= options.user_name.inspect %>]
  spec.email   = [<%= options.user_email.inspect %>]
  spec.metadata = {"rubygems_mfa_required" => "true"}

  spec.summary     = <%= options.description.inspect %>
  spec.description = spec.summary
  spec.license     = "MIT"
  spec.required_ruby_version = Gem::Requirement.new(">= <%= options.oldest_ruby_version %>")

  github_url = <%= options.github_url.inspect %>
  github_tree_url = "#{github_url}/tree/v#{spec.version}"

  spec.homepage = github_url
  spec.metadata["homepage_uri"] = spec.homepage
  spec.metadata["bug_tracker_uri"] = "#{github_url}/issues"
  spec.metadata["source_code_uri"] = github_tree_url
  spec.metadata["changelog_uri"] = "#{github_tree_url}/CHANGELOG.md"
  spec.metadata["documentation_uri"] = "#{github_tree_url}/README.md"
  spec.metadata["license_uri"] = "#{github_tree_url}/LICENSE.md"

  spec.files = Dir.chdir(File.expand_path(__dir__)) do
    `git ls-files -z`
      .split("\x0")
      .reject {|f| f.match(%r{^(test|spec|features)/}) }
  end

  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
  spec.require_paths = ["lib"]

  <%- if options.active_record -%>
  spec.add_dependency "activerecord"
  <%- end -%>
  <%- if options.bin?  -%>
  spec.add_dependency "thor"
  <%- end -%>
  spec.add_development_dependency "minitest"
  spec.add_development_dependency "minitest-utils"
  <%- if options.active_record? -%>
  spec.add_development_dependency "pg"
  <%- end -%>
  spec.add_development_dependency "pry-meta"
  spec.add_development_dependency "rake"
  spec.add_development_dependency "rubocop"
  spec.add_development_dependency "rubocop-fnando"
  spec.add_development_dependency "simplecov"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dopstick-0.0.12 lib/dopstick/generator/gem/templates/gemspec.erb
dopstick-0.0.11 lib/dopstick/generator/gem/templates/gemspec.erb
dopstick-0.0.10 lib/dopstick/generator/gem/templates/gemspec.erb
dopstick-0.0.9 lib/dopstick/generator/gem/templates/gemspec.erb
dopstick-0.0.8 lib/dopstick/generator/gem/templates/gemspec.erb
dopstick-0.0.7 lib/dopstick/generator/gem/templates/gemspec.erb