[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34217] [PATCH 02/11] gnu: Add ruby-contracts.
From: |
Christopher Baines |
Subject: |
[bug#34217] [PATCH 02/11] gnu: Add ruby-contracts. |
Date: |
Sun, 27 Jan 2019 11:49:47 +0000 |
* 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
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., (continued)
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., swedebugia, 2019/01/29
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., Ricardo Wurmus, 2019/01/30
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., swedebugia, 2019/01/30
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., swedebugia, 2019/01/30
- [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba., swedebugia, 2019/01/31
[bug#34217] [PATCH 07/11] gnu: Add ruby-backports., Christopher Baines, 2019/01/27
[bug#34217] [PATCH 03/11] gnu: Add ruby-ruby-progressbar., Christopher Baines, 2019/01/27
[bug#34217] [PATCH 05/11] gnu: Add ruby-cucumber-expressions., Christopher Baines, 2019/01/27
[bug#34217] [PATCH 04/11] gnu: Add ruby-fuubar., Christopher Baines, 2019/01/27
[bug#34217] [PATCH 02/11] gnu: Add ruby-contracts.,
Christopher Baines <=
[bug#34217] [PATCH 00/11] Add ruby-cucumber along with dependencies and a couple of updates., swedebugia, 2019/01/28