unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 34222@debbugs.gnu.org
Subject: [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff.
Date: Sun, 27 Jan 2019 17:08:10 +0000	[thread overview]
Message-ID: <20190127170820.28937-5-mail@cbaines.net> (raw)
In-Reply-To: <20190127170820.28937-1-mail@cbaines.net>

Required for ruby-webmock.

* gnu/packages/ruby.scm (ruby-hashdiff): New variable.
---
 gnu/packages/ruby.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7c2b9d9762..3d1dfee47f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1231,6 +1231,38 @@ failure.")
     (home-page "https://github.com/thekompanee/fuubar")
     (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
   (package
     (name "ruby-shindo")
-- 
2.20.1

  parent reply	other threads:[~2019-01-27 17:09 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-27 17:01 [bug#34222] [PATCH 00/15] Add ruby-rubocop and dependencies Christopher Baines
2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
2019-01-27 17:44     ` Ricardo Wurmus
2019-01-27 18:44       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow Christopher Baines
2019-01-27 17:25     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 04/15] gnu: Add ruby-racc Christopher Baines
2019-01-27 17:27     ` Ricardo Wurmus
2019-01-27 18:57       ` Christopher Baines
2019-01-27 19:06         ` Christopher Baines
2019-01-27 19:26           ` Ricardo Wurmus
2019-01-27 17:08   ` Christopher Baines [this message]
2019-01-27 17:45     ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 06/15] gnu: Add ruby-crack Christopher Baines
2019-01-27 17:29     ` Ricardo Wurmus
2019-01-27 18:55       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock Christopher Baines
2019-01-27 17:32     ` Ricardo Wurmus
2019-01-27 18:53       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client Christopher Baines
2019-01-27 17:34     ` Ricardo Wurmus
2019-01-27 18:51       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output Christopher Baines
2019-01-27 17:34     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 10/15] gnu: Add ruby-ast Christopher Baines
2019-01-27 17:36     ` Ricardo Wurmus
2019-01-27 18:50       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver Christopher Baines
2019-01-27 17:38     ` Ricardo Wurmus
2019-01-27 18:48       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 12/15] gnu: Add ruby-parser Christopher Baines
2019-01-27 17:39     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width Christopher Baines
2019-01-27 17:39     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler Christopher Baines
2019-01-27 17:40     ` Ricardo Wurmus
2019-01-27 18:45       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop Christopher Baines
2019-01-27 17:41     ` Ricardo Wurmus
2019-01-27 17:20   ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190127170820.28937-5-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=34222@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).