From d20936c9f59a5be8f4de6057d47cbc417111b0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 15 Jul 2025 14:36:31 +0200 Subject: [rubygems/rubygems] Improve `deprecations` helper Previous implementation included an empty element in the list of deprecations. https://github.com/rubygems/rubygems/commit/59eb233039 --- spec/bundler/support/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index 438037e08c..17c38c7760 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -39,7 +39,7 @@ module Spec end def deprecations - err.split("\n").select {|l| l =~ MAJOR_DEPRECATION }.join("\n").split(MAJOR_DEPRECATION) + err.split("\n").filter_map {|l| l.sub(MAJOR_DEPRECATION, "") if l.match?(MAJOR_DEPRECATION) } end def run(cmd, *args) -- cgit v1.2.3