diff options
author | Keiji Yoshimi <walf443@gmail.com> | 2018-09-12 18:11:59 +0900 |
---|---|---|
committer | Keiji Yoshimi <walf443@gmail.com> | 2018-09-14 13:57:37 +0900 |
commit | f78645d5dbfdd1ebc5419d589d3032371bc8e634 (patch) | |
tree | f99799c45cfee4353b8b1b9a83d6443a9ec86972 /lib/bundler/templates | |
parent | 8c31a61037e2d526affb13d4fe07035e18266947 (diff) | |
download | bundler-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.tt | 4 |
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." |