gnu: Add ruby-rack-protection.
* gnu/packages/ruby.scm (ruby-rack-protection): New variable.
This commit is contained in:
parent
20a0f80414
commit
a0a7e6903a
|
@ -3360,6 +3360,35 @@ testing libraries to build on.")
|
||||||
(home-page "https://github.com/rack-test/rack-test")
|
(home-page "https://github.com/rack-test/rack-test")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ruby-rack-protection
|
||||||
|
(package
|
||||||
|
(name "ruby-rack-protection")
|
||||||
|
(version "2.0.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (rubygems-uri "rack-protection" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0ywmgh7x8ljf7jfnq5hmfzki3f803waji3fcvi107w7mlyflbng7"))))
|
||||||
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
'(;; Tests missing from the gem
|
||||||
|
#:tests? #f))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("ruby-rack" ,ruby-rack)))
|
||||||
|
(native-inputs
|
||||||
|
`(("bundler" ,bundler)
|
||||||
|
("ruby-rspec" ,ruby-rspec-2)
|
||||||
|
("ruby-rack-test" ,ruby-rack-test)))
|
||||||
|
(synopsis "Rack middleware that protects against typical web attacks")
|
||||||
|
(description "Rack middleware that can be used to protect against typical
|
||||||
|
web attacks. It can protect all Rack apps, including Rails. For instance, it
|
||||||
|
protects against cross site request forgery, cross site scripting,
|
||||||
|
clickjacking, directory traversal, session hijacking and IP spoofing.")
|
||||||
|
(home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public ruby-docile
|
(define-public ruby-docile
|
||||||
(package
|
(package
|
||||||
(name "ruby-docile")
|
(name "ruby-docile")
|
||||||
|
|
Loading…
Reference in New Issue