guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/13: gnu: Add ruby-rack-protection.


From: Ben Woodcroft
Subject: 07/13: gnu: Add ruby-rack-protection.
Date: Wed, 10 Aug 2016 11:57:35 +0000 (UTC)

benwoodcroft pushed a commit to branch wip-rails
in repository guix.

commit 01c38dc8bcf86ecc37b049639c26f6c838f20985
Author: Ben Woodcroft <address@hidden>
Date:   Thu Dec 31 23:29:09 2015 +1000

    gnu: Add ruby-rack-protection.
    
    * gnu/packages/ruby.scm (ruby-rack-protection): New variable.
---
 gnu/packages/ruby.scm |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3b7ee74..05ba10a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3045,6 +3045,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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]