lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt in gemsmith-11.3.0 vs lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt in gemsmith-12.0.0

- old
+ new

@@ -9,32 +9,38 @@ spec.email = ["<%= config.dig(:author, :email) %>"] spec.homepage = "<%= config.dig(:gem, :url) %>" spec.summary = "" spec.license = "MIT" + spec.metadata = { + "source_code_uri" => "<%= config.dig(:gem, :url) %>", + "changelog_uri" => "<%= config.dig(:gem, :url) %>/blob/master/CHANGES.md", + "bug_tracker_uri" => "<%= config.dig(:gem, :url) %>/issues" + } + <%- if config.dig(:generate, :security) -%> spec.signing_key = Gem.default_key_path spec.cert_chain = [Gem.default_cert_path] <%- end -%> spec.required_ruby_version = "~> <%= config.dig(:versions, :ruby)[/\d+\.\d+/] %>" - <%- if config.dig(:generate, :engine) || config.dig(:generate, :rails) -%> + <%- if config.dig(:generate, :engine) -%> spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>" <%- end -%> <%- if config.dig(:generate, :cli) -%> - spec.add_dependency "runcom", "~> 2.0" + spec.add_dependency "runcom", "~> 3.0" spec.add_dependency "thor", "~> 0.20" <%- end -%> <%- if config.dig(:generate, :bundler_audit) -%> spec.add_development_dependency "bundler-audit", "~> 0.6" <%- end -%> <%- if config.dig(:generate, :code_climate) -%> spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0" <%- end -%> spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity.version[/\d+\.\d+/] %>" <%- if config.dig(:generate, :git_cop) -%> - spec.add_development_dependency "git-cop", "~> 2.0" + spec.add_development_dependency "git-cop", "~> 2.2" <%- end -%> <%- if config.dig(:generate, :guard) -%> spec.add_development_dependency "guard-rspec", "~> 4.7" <%- end -%> <%- if config.dig(:generate, :pry) -%> @@ -44,16 +50,16 @@ spec.add_development_dependency "rake", "~> 12.3" <%- if config.dig(:generate, :reek) -%> spec.add_development_dependency "reek", "~> 4.8" <%- end -%> <%- if config.dig(:generate, :rspec) -%> - spec.add_development_dependency "<%= config.dig(:generate, :engine) || config.dig(:generate, :rails) ? "rspec-rails" : "rspec" %>", "~> 3.7" + spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.7" <%- end -%> <%- if config.dig(:generate, :rubocop) -%> - spec.add_development_dependency "rubocop", "~> 0.53" + spec.add_development_dependency "rubocop", "~> 0.54" <%- end -%> - <%- if config.dig(:generate, :engine) || config.dig(:generate, :rails) -%> + <%- if config.dig(:generate, :engine) -%> spec.files = Dir["app/**/*", "bin/**/*", "config/**/*", "lib/**/*", "vendor/**/*"] <%- else -%> spec.files = Dir["lib/**/*"] <%- end -%> spec.extra_rdoc_files = Dir["README*", "LICENSE*"]