1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/rack-protection/rack-protection.gemspec
2022-02-05 13:09:10 +01:00

40 lines
1.3 KiB
Ruby

version = File.read(File.expand_path("../VERSION", __dir__)).strip
Gem::Specification.new do |s|
# general infos
s.name = "rack-protection"
s.version = version
s.description = "Protect against typical web attacks, works with all Rack apps, including Rails."
s.homepage = "http://sinatrarb.com/protection/"
s.summary = s.description
s.license = 'MIT'
s.authors = ["https://github.com/sinatra/sinatra/graphs/contributors"]
s.email = "sinatrarb@googlegroups.com"
s.files = Dir["lib/**/*.rb"] + [
"License",
"README.md",
"Rakefile",
"Gemfile",
"rack-protection.gemspec"
]
if s.respond_to?(:metadata)
s.metadata = {
'source_code_uri' => 'https://github.com/sinatra/sinatra/tree/master/rack-protection',
'homepage_uri' => 'http://sinatrarb.com/protection/',
'documentation_uri' => 'https://www.rubydoc.info/gems/rack-protection'
}
else
raise <<-EOF
RubyGems 2.0 or newer is required to protect against public gem pushes. You can update your rubygems version by running:
gem install rubygems-update
update_rubygems:
gem update --system
EOF
end
# dependencies
s.add_dependency "rack"
s.add_development_dependency "rack-test"
s.add_development_dependency "rspec", "~> 3"
end