mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add ruby-contracts.
* gnu/packages/ruby.scm (ruby-contracts): New variable.
This commit is contained in:
parent
ce872770f6
commit
2ed201c112
1 changed files with 34 additions and 0 deletions
|
@ -740,6 +740,40 @@ (define-public ruby-ci-reporter
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue