From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esEK7-0007Ve-3w 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 1esEK5-0003CL-5R for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esEK5-0003CE-1i for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1esEK4-0003La-Pw for guix-patches@gnu.org; Sat, 03 Mar 2018 16:04:04 -0500 Subject: [bug#30689] [PATCH 03/10] gnu: Add ruby-rack-test. Resent-Message-ID: From: Christopher Baines Date: Sat, 3 Mar 2018 21:03:01 +0000 Message-Id: <20180303210308.15500-3-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-test): New variable. --- gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index fbb387e71..3f80f636f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3328,6 +3328,37 @@ into a single method call.") (home-page "https://rack.github.io/") (license license:expat))) +(define-public ruby-rack-test + (package + (name "ruby-rack-test") + (version "0.8.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rack-test" version)) + (sha256 + (base32 + "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g")))) + (build-system ruby-build-system) + (arguments + ;; Disable tests because of circular dependencies: requires sinatra, + ;; which requires rack-protection, which requires rack-test. Instead + ;; simply require the library. + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "ruby" "-Ilib" "-r" "rack/test")))))) + (propagated-inputs + `(("ruby-rack" ,ruby-rack))) + (synopsis "Testing API for Rack applications") + (description + "Rack::Test is a small, simple testing API for Rack applications. It can +be used on its own or as a reusable starting point for Web frameworks and +testing libraries to build on.") + (home-page "https://github.com/rack-test/rack-test") + (license license:expat))) + (define-public ruby-docile (package (name "ruby-docile") -- 2.16.0