gnu: Add ruby-hashdiff.

Required for ruby-webmock.

* gnu/packages/ruby.scm (ruby-hashdiff): New variable.
This commit is contained in:
Christopher Baines 2019-01-27 16:41:10 +00:00
parent 6dc2131076
commit 2178143651
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 32 additions and 0 deletions

View File

@ -1251,6 +1251,38 @@ failure.")
(home-page "https://github.com/thekompanee/fuubar") (home-page "https://github.com/thekompanee/fuubar")
(license license:expat))) (license license:expat)))
(define-public ruby-hashdiff
(package
(name "ruby-hashdiff")
(version "0.3.8")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "hashdiff" version))
(sha256
(base32
"19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
(build-system ruby-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; Run tests directly via rspec to avoid Rake issue:
;; NoMethodError: undefined method `last_comment'
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "rspec"))
#t)))))
(native-inputs
`(("bundler" ,bundler)
("ruby-rspec" ,ruby-rspec-2)))
(synopsis "HashDiff computes the smallest difference between two hashes")
(description
"HashDiff is a Ruby library to compute the smallest difference between
two hashes.")
(home-page "https://github.com/liufengyun/hashdiff")
(license license:expat)))
(define-public ruby-shindo (define-public ruby-shindo
(package (package
(name "ruby-shindo") (name "ruby-shindo")