From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] gnu: Add ruby-rack. Date: Fri, 04 Sep 2015 16:50:04 -0400 Message-ID: <87twr9ykn7.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxvz-00074I-Lb for guix-devel@gnu.org; Fri, 04 Sep 2015 16:50:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXxvy-0002kw-K4 for guix-devel@gnu.org; Fri, 04 Sep 2015 16:50:07 -0400 Received: from mail.fsf.org ([208.118.235.13]:58896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxvy-0002ki-HO for guix-devel@gnu.org; Fri, 04 Sep 2015 16:50:06 -0400 Received: from c-73-188-137-88.hsd1.de.comcast.net ([73.188.137.88]:52561 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1ZXxvx-0000p5-8w for guix-devel@gnu.org; Fri, 04 Sep 2015 16:50:06 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-ruby-rack.patch >From a740a5ca98c02bd0e9c792677dfc8ff8464c8365 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 4 Sep 2015 16:47:52 -0400 Subject: [PATCH] gnu: Add ruby-rack. * gnu/packages/ruby.scm (ruby-rack): New variable. --- gnu/packages/ruby.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9bfa14c..906b6eb 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1072,3 +1072,40 @@ build on. It provides breakpoint handling and bindings for stack frames among other things and it comes with a command line interface.") (home-page "http://github.com/deivid-rodriguez/byebug") (license license:bsd-3))) + +(define-public ruby-rack + (package + (name "ruby-rack") + (version "1.6.4") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rack" version)) + (sha256 + (base32 + "09bs295yq6csjnkzj7ncj50i6chfxrhmzg1pk6p0vd2lb9ac8pj5")))) + (build-system ruby-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'fix-tests + (lambda _ + ;; A few of the tests use the length of a file on disk for + ;; Content-Length and Content-Range headers. However, this file + ;; has a shebang in it which an earlier phase patches, growing + ;; the file size from 193 to 239 bytes. + (substitute* '("test/spec_file.rb") + (("193") "239") + ;; Adjust by 46 bytes to accomodate patched shebang. + (("bytes(.)22-33" all delimiter) + (string-append "bytes" delimiter "68-79"))) + #t))))) + (native-inputs + `(("ruby-bacon" ,ruby-bacon))) + (synopsis "Unified web application interface for Ruby") + (description "Rack provides a minimal, modular and adaptable interface for +developing web applications in Ruby. By wrapping HTTP requests and responses, +it unifies the API for web servers, web frameworks, and software in between +into a single method call.") + (home-page "http://rack.github.io/") + (license license:expat))) -- 2.5.0 --=-=-= Content-Type: text/plain -- David Thompson GPG Key: 0FF1D807 --=-=-=--