1
0
mirror of https://github.com/danbee/inny synced 2025-03-04 08:59:10 +00:00

Add Rubygems.org to allowed gem hosts

This commit is contained in:
Daniel Barber 2015-09-21 22:03:10 +01:00
parent 853bf65256
commit 95730e957e

View File

@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
spec.metadata['allowed_push_host'] = "https://rubygems.org"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end