summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-14 09:57:52 +0900
committergit <svn-admin@ruby-lang.org>2025-11-14 02:16:49 +0000
commit8a58e66a10b486923c63c8ba23d62740ecf98554 (patch)
tree365be69609eda1845c6f38d6d30bb15d733904b6 /spec
parent6e5bbbc598684b80bfa3fc6dff0a83a949e7d078 (diff)
[ruby/rubygems] Suppress gem build message of bundler like this:
``` $ rake spec:regular Successfully built RubyGem Name: bundler Version: 4.0.0.dev File: bundler-4.0.0.dev.gem ``` https://github.com/ruby/rubygems/commit/8f0ca5eefa
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/builders.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 1283dc4348..31d4f30a3b 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -457,7 +457,9 @@ module Spec
Spec::BuildMetadata.write_build_metadata(dir: build_path, version: @spec.version.to_s)
Dir.chdir build_path do
- Gem::Package.build(@spec)
+ Gem::DefaultUserInteraction.use_ui(Gem::SilentUI.new) do
+ Gem::Package.build(@spec)
+ end
end
if block_given?