[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30689] [PATCH 04/10] gnu: Add ruby-rack-protection.
From: |
Christopher Baines |
Subject: |
[bug#30689] [PATCH 04/10] gnu: Add ruby-rack-protection. |
Date: |
Sat, 3 Mar 2018 21:03:02 +0000 |
From: Ben Woodcroft <address@hidden>
* gnu/packages/ruby.scm (ruby-rack-protection): New variable.
---
gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3f80f636f..57c4e67e2 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3359,6 +3359,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")
--
2.16.0
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 01/10] gnu: Add ruby-asciimath., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 05/10] gnu: Add ruby-contest., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 10/10] gnu: Add ruby-ruby-engine., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 07/10] gnu: Add ruby-sporkmonger-rack-mount., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 02/10] gnu: Add ruby-asciidoctor., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 08/10] gnu: Add ruby-erubis., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 04/10] gnu: Add ruby-rack-protection.,
Christopher Baines <=
- [bug#30689] [PATCH 03/10] gnu: Add ruby-rack-test., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 09/10] gnu: Add ruby-rake., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 06/10] gnu: Add ruby-creole., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Gábor Boskovits, 2018/03/03
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Ludovic Courtès, 2018/03/05
- [bug#30689] Ruby on Rails, Christopher Baines, 2018/03/18