diff options
author | Christopher Baines <mail@cbaines.net> | 2019-01-27 08:45:21 +0000 |
---|---|---|
committer | Christopher Baines <christopher.baines@digital.cabinet-office.gov.uk> | 2019-01-29 22:56:12 +0000 |
commit | df783ee272ae82244752df78fba61b824aa6e23b (patch) | |
tree | 83321e5527ef7f4f03075980ea474e7b7ddc3c5e | |
parent | afaeca29c5252c950db9452120541b2299fca213 (diff) | |
download | gnu-guix-df783ee272ae82244752df78fba61b824aa6e23b.tar gnu-guix-df783ee272ae82244752df78fba61b824aa6e23b.tar.gz |
gnu: Add ruby-contracts.
* gnu/packages/ruby.scm (ruby-contracts): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 34 |
1 files changed, 34 insertions, 0 deletions
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") |