_gem_name.gemspec.erb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. # -*- frozen_string_literal: true -*-
  3. require_relative "./_expand_lib_path"
  4. require "<%= @scaffold.gem_path %>/version"
  5. require "<%= @scaffold.gem_path %>/doc"
  6. require "<%= @scaffold.gem_path %>/manifest"
  7. Gem::Specification.new do |g|
  8. g.name = <%= @scaffold.namespace %>::Manifest.gem_name
  9. g.version = <%= @scaffold.namespace %>::Version.dup
  10. g.authors = <%= @scaffold.namespace %>::Manifest.authors
  11. g.email = <%= @scaffold.namespace %>::Manifest.contact_emails
  12. g.summary = <%= @scaffold.namespace %>::Doc.summary
  13. g.description = <%= @scaffold.namespace %>::Doc.description
  14. g.homepage = <%= @scaffold.namespace %>::Manifest.repo
  15. g.license = <%= @scaffold.namespace %>::Manifest.license
  16. g.metadata = <%= @scaffold.namespace %>::Manifest.metadata
  17. g.files = <%= @scaffold.namespace %>::Manifest.files
  18. g.require_paths = <%= @scaffold.namespace %>::Manifest.codebase
  19. g.test_files = <%= @scaffold.namespace %>::Manifest.tests
  20. <% if @scaffold.bin %>
  21. g.bindir = <%= @scaffold.namespace %>::Manifest.bindir
  22. g.executables.append(*<%= @scaffold.namespace %>::Manifest.binstubs)
  23. <% end %>
  24. g.extra_rdoc_files = <%= @scaffold.namespace %>::Doc.appendices
  25. g.rdoc_options = <%= @scaffold.namespace %>::Doc.build_options
  26. g.required_ruby_version = ">= 2.5"
  27. g.add_development_dependency "bundler", "~> 2.0", ">= 2.0.0"
  28. g.add_development_dependency "rake", "~> 12.3", ">= 12.3.2"
  29. g.add_development_dependency "hanna-nouveau", "~> 1.0", ">= 1.0.3"
  30. g.add_development_dependency "minitest", "~> 5.11", ">= 5.11.3"
  31. g.add_development_dependency "minitest-unordered", "~> 1.0", ">= 1.0.2"
  32. g.add_development_dependency "minitest-proveit", "~> 1.0", ">= 1.0.0"
  33. g.add_development_dependency "minitest-autotest", "~> 1.0", ">= 1.0.3"
  34. g.add_development_dependency "debride", "~> 1.8", ">= 1.8.1"
  35. g.add_development_dependency "flog", "~> 4.6", ">= 4.6.2"
  36. g.add_development_dependency "flay", "~> 2.12", ">= 2.12.0"
  37. g.add_development_dependency "ruby2ruby", "~> 2.4", ">= 2.4.1"
  38. end