From cf7ea9a5d1fa0c333a5e1a72098a5fdf2043ea30 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 10 May 2021 18:18:35 +0200 Subject: [PATCH] Silence `gem list` command output (#181) Prevents `appraisal rake` to write a boolean on the standard output when checking the installed version of bundler Bug introduced in #168 586864393e405a67b1457b563a4d5adc99e50e2d Fix: #180 --- lib/appraisal/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/appraisal/command.rb b/lib/appraisal/command.rb index 26619e50..fd9cdb81 100644 --- a/lib/appraisal/command.rb +++ b/lib/appraisal/command.rb @@ -42,7 +42,7 @@ def with_clean_env def ensure_bundler_is_available version = Utils.bundler_version - unless system %(gem list -i bundler -v #{version}) + unless system %(gem list --silent -i bundler -v #{version}) puts ">> Reinstall Bundler into #{ENV["GEM_HOME"]}" unless system "gem install bundler --version #{version}"