From 1d623f8c3d80b56a26d6851c3c143d34d0b52412 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 13 Sep 2023 17:33:15 -0700 Subject: [PATCH] Fix --clean option Previously this was not working due to this error: ``` ruby/3.1.4/lib/ruby/3.1.0/fileutils.rb:637:in `rm_rf': wrong number of arguments (given 2, expected 1) (ArgumentError) from extconf.rb:33:in `
' ``` Also update the documentation to reflect that --clean is not enabled by default. --- ext/gpgme/extconf.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/gpgme/extconf.rb b/ext/gpgme/extconf.rb index 6e2de59..88b93f0 100644 --- a/ext/gpgme/extconf.rb +++ b/ext/gpgme/extconf.rb @@ -2,8 +2,8 @@ # Available options: # -# --enable-clean (default) -# --disable-clean +# --enable-clean +# --disable-clean (default) # # This file is largely based on Nokogiri's extconf.rb. @@ -25,12 +25,12 @@ # clean the ports build directory Pathname.glob(pwd.join('tmp', '*', 'ports')) { |dir| - FileUtils.rm_rf(dir, { :verbose => true }) - FileUtils.rmdir(dir.parent, { :parents => true, :verbose => true }) + FileUtils.rm_rf(dir, verbose: true) + FileUtils.rmdir(dir.parent, parents: true, verbose: true) } # ports installation can be safely removed if statically linked. - FileUtils.rm_rf(root + 'ports', { :verbose => true }) + FileUtils.rm_rf(root + 'ports', verbose: true) end exit