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:
parent
853bf65256
commit
95730e957e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user