From patchwork Sun Jan 27 17:08:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 849 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B230A16AB7; Sun, 27 Jan 2019 17:09:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 67FDE16AB5 for ; Sun, 27 Jan 2019 17:09:34 +0000 (GMT) Received: from localhost ([127.0.0.1]:48241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnnw6-0005FJ-0F for patchwork@mira.cbaines.net; Sun, 27 Jan 2019 12:09:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnnvd-0004wd-5B for guix-patches@gnu.org; Sun, 27 Jan 2019 12:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnnvc-0006P5-7s for guix-patches@gnu.org; Sun, 27 Jan 2019 12:09:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnnvc-0006Om-3s for guix-patches@gnu.org; Sun, 27 Jan 2019 12:09:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gnnvb-0001md-V2 for guix-patches@gnu.org; Sun, 27 Jan 2019 12:09:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Jan 2019 17:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34222 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34222@debbugs.gnu.org Received: via spool by 34222-submit@debbugs.gnu.org id=B34222.15486089106709 (code B ref 34222); Sun, 27 Jan 2019 17:09:03 +0000 Received: (at 34222) by debbugs.gnu.org; 27 Jan 2019 17:08:30 +0000 Received: from localhost ([127.0.0.1]:47788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnnv4-0001k4-2Y for submit@debbugs.gnu.org; Sun, 27 Jan 2019 12:08:30 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:57988 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnnuw-0001iG-U7 for 34222@debbugs.gnu.org; Sun, 27 Jan 2019 12:08:23 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 65CFB16ABB for <34222@debbugs.gnu.org>; Sun, 27 Jan 2019 17:08:21 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id a57fc081 for <34222@debbugs.gnu.org>; Sun, 27 Jan 2019 17:08:20 +0000 (UTC) From: Christopher Baines Date: Sun, 27 Jan 2019 17:08:12 +0000 Message-Id: <20190127170820.28937-7-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190127170820.28937-1-mail@cbaines.net> References: <87y376ghl0.fsf@cbaines.net> <20190127170820.28937-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Required by ruby-rest-client. Also at version ~> 2, so don't package 3 just yet. * gnu/packages/ruby.scm (ruby-webmock): New variable. --- gnu/packages/ruby.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index e11900b835..5eb08d9929 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4781,6 +4781,32 @@ support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and (home-page "https://github.com/knu/ruby-unf") (license license:bsd-2))) +(define-public ruby-webmock + (package + (name "ruby-webmock") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "webmock" version)) + (sha256 + (base32 + "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))) + (build-system ruby-build-system) + (propagated-inputs + `(("bundler" ,bundler) + ("ruby-addressable" ,ruby-addressable) + ("ruby-crack" ,ruby-crack) + ("ruby-public-suffic" ,ruby-public-suffix) + ("ruby-rspec" ,ruby-rspec) + ("ruby-hashdiff" ,ruby-hashdiff))) + (synopsis "Allows stubbing and setting expectations on HTTP requests") + (description + "WebMock allows stubbing HTTP requests and setting expectations on HTTP +requests. This is useful when testing software.") + (home-page "https://github.com/bblimke/webmock") + (license license:expat))) + (define-public ruby-domain-name (package (name "ruby-domain-name")