Skip to content

Commit

Permalink
Change gemspec to allow push to rubygems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Aug 14, 2022
1 parent fe02d90 commit e160e57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions immutable_struct_ex.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Gem::Specification.new do |spec|

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# 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'"
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end
# if spec.respond_to?(:metadata)
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
# else
# raise 'RubyGems 2.0 or newer is required to protect against ' \
# 'public gem pushes.'
# end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
Expand Down

0 comments on commit e160e57

Please sign in to comment.