unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 34222@debbugs.gnu.org
Subject: [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver.
Date: Sun, 27 Jan 2019 18:48:34 +0000	[thread overview]
Message-ID: <87sgxegcn1.fsf@cbaines.net> (raw)
In-Reply-To: <87sgxerofh.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Requirement of ruby-parser.
>>
>> * gnu/packages/ruby.scm (ruby-cliver): New variable.
> […]
>
>> +    (arguments
>> +     '(#:phases
>> +       (modify-phases %standard-phases
>> +         ;; Avoid this issue with rspec@2
>> +         ;; 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)))
>
> Is this a problem that would disappear when using a later version of
> Rspec?

I don't think so, I get a different exception which looks to me like an
incompatibility between the tests and rspec@3 in Guix. This
`last_comment' related error is a issue between Rspec 2 and more recent
versions of Rake, and I've updated the comment as below to try and
explain this.

+    (Build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
+         ;; would be nice, but the tests look to be incompatible:
+         ;;
+         ;; NoMethodError: undefined method `last_comment'
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

  reply	other threads:[~2019-01-27 18:49 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   ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Christopher Baines
2019-01-27 17:45     ` 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 [this message]
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=87sgxegcn1.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=34222@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /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).