From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvraw-0008C2-Ui for guix-patches@gnu.org; Mon, 18 Feb 2019 17:41:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvraw-0007e8-6S for guix-patches@gnu.org; Mon, 18 Feb 2019 17:41:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvraw-0007d8-16 for guix-patches@gnu.org; Mon, 18 Feb 2019 17:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvrav-0002e1-Ti for guix-patches@gnu.org; Mon, 18 Feb 2019 17:41:01 -0500 Subject: [bug#34514] [PATCH 01/34] gnu: Add ruby-hamster. Resent-Message-ID: References: <87sgwm44a9.fsf@cbaines.net> <20190217192314.5666-1-mail@cbaines.net> From: Ricardo Wurmus In-reply-to: <20190217192314.5666-1-mail@cbaines.net> Date: Mon, 18 Feb 2019 23:40:53 +0100 Message-ID: <877edwwwi2.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Christopher Baines Cc: 34514@debbugs.gnu.org Christopher Baines writes: > * gnu/packages/ruby.scm (ruby-hamster): New variable. [=E2=80=A6] > + (add-after 'unpack 'remove-unnecessary-dependencies > + (lambda _ > + ;; pry is a debugging tool, and is unnecessary when running t= he > + ;; tests > + (substitute* "spec/lib/hamster/vector/insert_spec.rb" > + (("require 'pry'") "")) > + (substitute* "spec/spec_helper.rb" > + (("require \"pry\"") "") We have a ruby-pry package. Wouldn=E2=80=99t it be nicer to add it instead= of patching the sources? > + ;; CodeClimate is an online service, and is unnecessary for > + ;; running the tests > + (("require \"codeclimate-test-reporter\"") "") > + (("CodeClimate.*\n") "")) Okay. --=20 Ricardo