-
Notifications
You must be signed in to change notification settings - Fork 0
/
rack-protection.gemspec
40 lines (37 loc) · 1.28 KB
/
rack-protection.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version = File.read(File.expand_path("../../VERSION", __FILE__)).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.6"
end