Sha256: 2683ae479f42d951f6ffeb8172b2015e15de539000f78a9946f7e4e6a2933ef7

Contents?: true

Size: 1.28 KB

Versions: 17

Compression:

Stored size: 1.28 KB

Contents

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

Version data entries

17 entries across 14 versions & 3 rubygems

Version Path
rack-protection-2.2.4 rack-protection.gemspec
rack-protection-2.2.3 rack-protection.gemspec
rack-protection-2.2.2 rack-protection.gemspec
rack-protection-2.2.1 rack-protection.gemspec
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.1.0/gems/rack-protection-2.1.0/rack-protection.gemspec
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/rack-protection.gemspec
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.2.0/rack-protection.gemspec
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/rack-protection.gemspec
rack-protection-2.2.0 rack-protection.gemspec
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rack-protection-2.1.0/rack-protection.gemspec
rack-protection-2.1.0 rack-protection.gemspec
rack-protection-2.0.8.1 rack-protection.gemspec
rack-protection-2.0.8 rack-protection.gemspec
rack-protection-2.0.7 rack-protection.gemspec
rack-protection-2.0.6 rack-protection.gemspec
rack-protection-2.0.5 rack-protection.gemspec
rack-protection-2.0.4 rack-protection.gemspec