diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2015-12-31 23:29:09 +1000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-01-27 13:41:18 +0000 |
commit | 7f6086e6f14d426f3f82c7252a7d60360931aed8 (patch) | |
tree | 74752a5bce4717de657386a3193aa6abe0c7961d | |
parent | 91f48b04f9e62ed13f34b7931f08574c379ba16a (diff) | |
download | guix-7f6086e6f14d426f3f82c7252a7d60360931aed8.tar guix-7f6086e6f14d426f3f82c7252a7d60360931aed8.tar.gz |
gnu: Add ruby-rack-protection.
* gnu/packages/ruby.scm (ruby-rack-protection): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8d86fcbd4c..e8c6303319 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3174,6 +3174,34 @@ testing libraries to build on.") (home-page "http://github.com/brynary/rack-test") (license license:expat))) +(define-public ruby-rack-protection + (package + (name "ruby-rack-protection") + (version "1.5.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rack-protection" version)) + (sha256 + (base32 + "0cvb21zz7p9wy23wdav63z5qzfn4nialik22yqp6gihkgfqqrh5r")))) + (build-system ruby-build-system) + (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 "This library is 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 + "http://github.com/rkh/rack-protection") + (license license:expat))) + (define-public ruby-docile (package (name "ruby-docile") |