From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwAXe-0007pq-2i for guix-patches@gnu.org; Sun, 24 Sep 2017 13:18:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwAXc-00088q-3a for guix-patches@gnu.org; Sun, 24 Sep 2017 13:18:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwAXc-00088m-07 for guix-patches@gnu.org; Sun, 24 Sep 2017 13:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwAXb-0006k2-R6 for guix-patches@gnu.org; Sun, 24 Sep 2017 13:18:03 -0400 Subject: [bug#28583] [PATCH 3/7] gnu: Add ruby-options. Resent-Message-ID: From: Christopher Baines Date: Sun, 24 Sep 2017 18:17:13 +0100 Message-Id: <20170924171717.3855-3-mail@cbaines.net> In-Reply-To: <20170924171717.3855-1-mail@cbaines.net> References: <20170924171717.3855-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: 28583@debbugs.gnu.org * gnu/packages/ruby.scm (ruby-options): 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 116db8c62..1ee03e066 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -660,6 +660,34 @@ complexity.") (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap") (license license:expat))) +(define-public ruby-options + (package + (name "ruby-options") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "options" version)) + (sha256 + (base32 + "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j")))) + (build-system ruby-build-system) + (arguments + '(#:tests? #f ;; TODO: NameError: uninitialized constant Config + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-LIB + (lambda _ + ;; This is used in the Rakefile, and setting it avoids an issue + ;; with running the tests. + (setenv "LIB" "options")))))) + (synopsis "Ruby library to parse options from *args cleanly") + (description + "The @code{options} library helps with parsing keyword options in Ruby +functions.") + (home-page "https://github.com/ahoward/options") + (license license:ruby))) + (define-public ruby-orderedhash (package (name "ruby-orderedhash") -- 2.14.1