diff options
author | André Arko <mail@arko.net> | 2014-10-19 23:15:49 -0700 |
---|---|---|
committer | André Arko <mail@arko.net> | 2014-10-19 23:15:49 -0700 |
commit | 9598a63ab4fee3400a9a265593f7ba6c9c3f064d (patch) | |
tree | 7b6f3fb9b0476dd9195bc8978ab3c7583a83fbcb /lib/bundler/templates/newgem/newgem.gemspec.tt | |
parent | 78a60bf8c671dd3905d7b775511f9b677cb16dda (diff) | |
parent | 859a12460fd94fde974b90440e26172bf59bbb59 (diff) | |
download | bundler-9598a63ab4fee3400a9a265593f7ba6c9c3f064d.tar.gz |
Merge pull request #3116 from grosser/grosser/metadata
prevent all new gems to be rubygems 2.0 only
Diffstat (limited to 'lib/bundler/templates/newgem/newgem.gemspec.tt')
-rw-r--r-- | lib/bundler/templates/newgem/newgem.gemspec.tt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt index 7ac1ef08aa..46899f32c9 100644 --- a/lib/bundler/templates/newgem/newgem.gemspec.tt +++ b/lib/bundler/templates/newgem/newgem.gemspec.tt @@ -9,10 +9,9 @@ Gem::Specification.new do |spec| spec.authors = [<%=config[:author].inspect%>] spec.email = [<%=config[:email].inspect%>] -<%- if ::Gem::Requirement.new(">= 2.0").satisfied_by? ::Gem::Version.new(::Gem::VERSION) -%> - spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server." - spec.required_rubygems_version = ">= 2.0" -<% end -%> + if spec.respond_to?(:metadata) + spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server." + end <%- if config[:ext] -%> spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"] |