gnu: ruby-braintree: Disable Bundler for testing.

* gnu/packages/ruby-xyz.scm (ruby-braintree)[arguments]:
Replace relax-requirements phase with disable-bundler.  If a Gemfile is
present, RSpec uses Bundler to resolve dependencies, which can lead to
troubles.  Removing the Gemfile allows RSpec to use the gems provided by Guix.

Change-Id: I0aaeec9fa071b60bc2a8acd7382070779eece1f1
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
gemmaro 2025-07-12 10:21:49 +09:00 committed by Andreas Enge
parent 6370b9201d
commit 6fd0420713
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -16045,19 +16045,9 @@ protocol.")
(lambda _
(substitute* "Rakefile"
(("sh \"rubocop\"") ""))))
(add-after 'unpack 'relax-requirements
(add-after 'unpack 'disable-bundler
(lambda _
(substitute* "Gemfile"
(("gem \"pry\".*") "gem 'pry'\n")
(("gem \"rake\".*") "gem 'rake'\n")
(("gem \"libxml-ruby\", \"3.2.0\"")
"gem \"libxml-ruby\", \"~> 3.0.0\"")
(("gem \"rspec\", \"3.9.0\"")
"gem \"rspec\", \">= 3.9.0\"")
(("gem \"webrick\", \"~>1.7.0\"")
"gem \"webrick\", \">=1.7.0\"")
((".*gem \"rubocop\".*") "")
((".*gem \"rspec_junit_formatter\".*") "")))))))
(delete-file "Gemfile"))))))
(native-inputs
(list ruby-libxml
ruby-pry