aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2015-12-31 23:29:09 +1000
committerChristopher Baines <mail@cbaines.net>2018-03-18 10:23:52 +0000
commita0a7e6903ac7e6e3fb9deb3977770246f0b31dd7 (patch)
tree2fdb7bf71dae76cd076f1879ca39a4f74a9c5907
parent20a0f80414cc953c2a3836ded012841febd74927 (diff)
downloadguix-a0a7e6903ac7e6e3fb9deb3977770246f0b31dd7.tar
guix-a0a7e6903ac7e6e3fb9deb3977770246f0b31dd7.tar.gz
gnu: Add ruby-rack-protection.
* gnu/packages/ruby.scm (ruby-rack-protection): New variable.
-rw-r--r--gnu/packages/ruby.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 31e2e0f9eb..9de6a1016c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3360,6 +3360,35 @@ testing libraries to build on.")
(home-page "https://github.com/rack-test/rack-test")
(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
(package
(name "ruby-docile")