Skip to content

Commit

Permalink
remove Sinatra::Protection (part of Sinatra now)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Sep 2, 2011
1 parent eee4f22 commit a1f8156
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 104 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -41,9 +41,6 @@ Currently included:

* `sinatra/namespace`: Adds namespace support to Sinatra.

* `sinatra/protection`: Sets up rack-protection to protect common attacks
against your application.

* `sinatra/respond_with`: Choose action and/or template depending automatically
depending on the incoming request. Adds helpers `respond_to` and
`respond_with`.
Expand Down Expand Up @@ -100,13 +97,13 @@ A single extension (example: sinatra-content-for):
``` ruby
require 'sinatra/base'
require 'sinatra/content_for'
require 'sinatra/protection'
require 'sinatra/namespace'

class MyApp < Sinatra::Base
# Note: Some modules are extensions, some helpers, see the specific
# documentation or the source
helpers Sinatra::ContentFor
register Sinatra::Protection
register Sinatra::Namespace
end
```

Expand Down
1 change: 0 additions & 1 deletion lib/sinatra/contrib.rb
Expand Up @@ -9,7 +9,6 @@ module Contrib
module Common
register :ConfigFile
register :Namespace
register :Protection
register :RespondWith

helpers :Capture
Expand Down
53 changes: 0 additions & 53 deletions lib/sinatra/protection.rb

This file was deleted.

45 changes: 0 additions & 45 deletions spec/protection_spec.rb

This file was deleted.

0 comments on commit a1f8156

Please sign in to comment.