summaryrefslogtreecommitdiff
path: root/lib/bundler/templates
diff options
context:
space:
mode:
authorKeiji Yoshimi <walf443@gmail.com>2018-09-12 18:11:59 +0900
committerKeiji Yoshimi <walf443@gmail.com>2018-09-14 13:57:37 +0900
commitf78645d5dbfdd1ebc5419d589d3032371bc8e634 (patch)
treef99799c45cfee4353b8b1b9a83d6443a9ec86972 /lib/bundler/templates
parent8c31a61037e2d526affb13d4fe07035e18266947 (diff)
downloadbundler-f78645d5dbfdd1ebc5419d589d3032371bc8e634.tar.gz
bundle gem will generate homepage_uri and code and changelog section by default
Diffstat (limited to 'lib/bundler/templates')
-rw-r--r--lib/bundler/templates/newgem/newgem.gemspec.tt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt
index 116bb5fa62..113bf82eb2 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -25,6 +25,10 @@ Gem::Specification.new do |spec|
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
+
+ spec.metadata["homepage_uri"] = spec.homepage
+ spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
+ spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."