all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 32870@debbugs.gnu.org
Subject: [bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5.
Date: Sat, 29 Sep 2018 11:44:59 +0100	[thread overview]
Message-ID: <20180929104502.8536-3-mail@cbaines.net> (raw)
In-Reply-To: <20180929104502.8536-1-mail@cbaines.net>

* gnu/packages/ruby.scm (ruby-term-ansicolor)[arguments]: Add new fix-test
phase to fix a test that fails under Ruby 2.5.
---
 gnu/packages/ruby.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b216f3f48b..c039df1559 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2914,6 +2914,11 @@ Ruby's large and slower test/unit.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-test
+           (lambda -
+             (substitute* "tests/hsl_triple_test.rb"
+               (("0\\\\\\.0%")
+                "0\\.?0?%"))))
          (replace 'build
           (lambda _
             (invoke "gem" "build" "term-ansicolor.gemspec"))))))
-- 
2.18.0

  parent reply	other threads:[~2018-09-29 10:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-29 10:40 [bug#32870] [PATCH 0/6] Ruby related fixes in preparation for Ruby 2.5 Christopher Baines
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
2018-09-29 10:44   ` [bug#32870] [PATCH 2/6] gnu: ruby-shindo: Remove -rubygems flags Christopher Baines
2018-09-29 10:44   ` Christopher Baines [this message]
2018-09-29 10:45   ` [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation Christopher Baines
2018-09-29 12:15     ` Julien Lepiller
2018-09-29 20:16       ` Christopher Baines
2018-10-05 23:03         ` bug#32870: " Christopher Baines
2018-09-29 10:45   ` [bug#32870] [PATCH 5/6] gnu: Add ruby-mathn Christopher Baines
2018-09-29 10:45   ` [bug#32870] [PATCH 6/6] gnu: ruby-sass: Update to 3.6.0 Christopher Baines

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

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

  git send-email \
    --in-reply-to=20180929104502.8536-3-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=32870@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.