From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gniyh-0002p3-Sx for guix-patches@gnu.org; Sun, 27 Jan 2019 06:51:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gniwu-0005wl-K9 for guix-patches@gnu.org; Sun, 27 Jan 2019 06:50:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gniwt-0005v9-5P for guix-patches@gnu.org; Sun, 27 Jan 2019 06:50:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gniwt-0000Bx-13 for guix-patches@gnu.org; Sun, 27 Jan 2019 06:50:03 -0500 Subject: [bug#34217] [PATCH 02/11] gnu: Add ruby-contracts. Resent-Message-ID: From: Christopher Baines Date: Sun, 27 Jan 2019 11:49:47 +0000 Message-Id: <20190127114956.26570-2-mail@cbaines.net> In-Reply-To: <20190127114956.26570-1-mail@cbaines.net> References: <87zhrmgy0x.fsf@cbaines.net> <20190127114956.26570-1-mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 34217@debbugs.gnu.org * gnu/packages/ruby.scm (ruby-contracts): New variable. --- gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 649c7aa464..808b2d8686 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -721,6 +721,40 @@ format.") (home-page "https://github.com/nicksieger/ci_reporter") (license license:expat))) +(define-public ruby-contracts + (package + (name "ruby-contracts") + (version "0.16.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "contracts" version)) + (sha256 + (base32 + "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a")))) + (build-system ruby-build-system) + (arguments + '(#:test-target "spec" + #:phases + (modify-phases %standard-phases + ;; Don't run or require rubocop, the code linting tool, as this is a + ;; bit unnecessary. + (add-after 'unpack 'dont-run-rubocop + (lambda _ + (substitute* "Rakefile" + ((".*rubocop.*") "") + ((".*RuboCop.*") "")) + #t))))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec))) + (synopsis "Method contracts for Ruby") + (description + "This library provides contracts for Ruby. A contract describes the +correct inputs and output for a method, and will raise an error if a incorrect +value is found.") + (home-page "https://github.com/egonSchiele/contracts.ruby") + (license license:bsd-2))) + (define-public ruby-czmq-ffi-gen (package (name "ruby-czmq-ffi-gen") -- 2.20.1