From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmKGM-0001wf-SH for guix-patches@gnu.org; Sun, 05 Aug 2018 10:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmKGJ-0000hJ-R7 for guix-patches@gnu.org; Sun, 05 Aug 2018 10:44:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmKGJ-0000hB-NF for guix-patches@gnu.org; Sun, 05 Aug 2018 10:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fmKGJ-0002hu-GU for guix-patches@gnu.org; Sun, 05 Aug 2018 10:44:03 -0400 Subject: [bug#32370] [PATCH 1/4] gnu: Add ruby-yajl-ruby. References: <871sbczxm8.fsf@cbaines.net> In-Reply-To: <871sbczxm8.fsf@cbaines.net> Resent-Message-ID: From: Christopher Baines Date: Sun, 5 Aug 2018 15:43:19 +0100 Message-Id: <20180805144322.4705-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: 32370@debbugs.gnu.org From: Ben Woodcroft * gnu/packages/ruby.scm (ruby-yajl-ruby): New variable. Signed-off-by: Christopher Baines --- gnu/packages/ruby.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 908dfd575..a06be3e26 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3626,6 +3626,39 @@ features such as filtering and fine grained logging.") (home-page "https://github.com/pjotrp/bioruby-logger-plugin") (license license:expat))) +(define-public ruby-yajl-ruby + (package + (name "ruby-yajl-ruby") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "yajl-ruby" version)) + (sha256 + (base32 + "01bk8pi6h9wdm0ikjqvl1nxlkrxv3q74m3yfg64va9wvk9sqjvvw")))) + (build-system ruby-build-system) + (arguments + '(#:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-before 'check 'patch-test-to-update-load-path + (lambda _ + (substitute* "spec/parsing/large_number_spec.rb" + (("require \"yajl\"") + "$LOAD_PATH << 'lib'; require 'yajl'")) + #t))))) + (native-inputs + `(("ruby-rake-compiler" ,ruby-rake-compiler) + ("ruby-rspec" ,ruby-rspec))) + (synopsis "Streaming JSON parsing and encoding library for Ruby") + (description + "Ruby C bindings to the Yajl JSON stream-based parser library. The API +is compatible with the JSON gem, so yajl-ruby can act as a drop in +replacement.") + (home-page "https://github.com/brianmario/yajl-ruby") + (license license:expat))) + (define-public ruby-yard (package (name "ruby-yard") -- 2.18.0