summary refs log tree commit diff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2020-05-29 13:11:12 +0200
committerMarius Bakke <marius@gnu.org>2020-05-29 15:41:28 +0200
commit7c8eb479a4be745deddce3cc651aeba0ba99050f (patch)
tree4457ecce049b6f1a2dd033a1ba2f042e92bdf26f /gnu/packages/ruby.scm
parenta904223ec55a61e6597c88da01426d9ff8a40537 (diff)
downloadguix-7c8eb479a4be745deddce3cc651aeba0ba99050f.tar.gz
gnu: ruby-spec-its: Accept any version of ruby-ffi.
* gnu/packages/ruby.scm (ruby-rspec-its)[arguments]: Change Gemfile
substitution so that any ffi gem is accepted.  While at it, tighten the regex
and rename the phase to be more accurate.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 82911a6866..bc48bc1576 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -645,10 +645,12 @@ outcomes of a code example.")
                (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
                 ""))
              #t))
-         (add-before 'build 'update-ffi-in-gemfile
+         (add-before 'build 'loosen-ffi-requirement
            (lambda _
+             ;; Accept any version of ruby-ffi.
              (substitute* "Gemfile"
-               (("  gem 'ffi', '~> 1.9.25'") "  gem 'ffi', '~> 1.10.0'"))
+               (("  gem 'ffi', '~> 1\\.9\\.25'")
+                "  gem 'ffi'"))
              #t))
          (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
            (lambda _