Skip to content

Commit 2619e05

Browse files
committed
Remove rubygem push protection from gemspec
1 parent c0158fb commit 2619e05

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

jsonapi-authorization.gemspec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ Gem::Specification.new do |spec|
1212
spec.summary = "Generic authorization for jsonapi-resources gem"
1313
spec.homepage = "TODO: Put your gem's website or public repo URL here."
1414

15-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
16-
# delete this section to allow pushing this gem to any host.
17-
if spec.respond_to?(:metadata)
18-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
19-
else
20-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
21-
end
22-
2315
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
2416
spec.bindir = "exe"
2517
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)