From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esEK7-0007Vj-47 for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esEK2-0003B2-Fa for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esEK2-0003Ay-BK for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1esEK2-0003Kr-2t for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:02 -0500 Subject: [bug#30689] [PATCH 04/10] gnu: Add ruby-rack-protection. Resent-Message-ID: From: Christopher Baines Date: Sat, 3 Mar 2018 21:03:02 +0000 Message-Id: <20180303210308.15500-4-mail@cbaines.net> In-Reply-To: <20180303210308.15500-1-mail@cbaines.net> References: <20180303210308.15500-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30689@debbugs.gnu.org From: Ben Woodcroft * 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