From 085dfda93c3ec879b99ef02ea963d452b7d55d61 Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Tue, 11 Jun 2024 11:09:44 -1000 Subject: [PATCH] fix(owlbot): Fix multi-wrapper dependencies that were broken when dropping Ruby 2.7 (#328) --- owlbot-postprocessor/lib/owlbot/multi_wrapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owlbot-postprocessor/lib/owlbot/multi_wrapper.rb b/owlbot-postprocessor/lib/owlbot/multi_wrapper.rb index 8518f19..ffd5add 100644 --- a/owlbot-postprocessor/lib/owlbot/multi_wrapper.rb +++ b/owlbot-postprocessor/lib/owlbot/multi_wrapper.rb @@ -227,7 +227,7 @@ def expand_gemspec_dependencies .select { |line| line.start_with? " gem.add_dependency \"#{gem_name}" } end content = File.read "#{@final_gem}.gemspec" - content = content.sub(/(\n gem\.add_dependency [^\n]+)\n\n/, "\\1\n#{lines.join}\n") + content = content.sub(/(\n gem\.add_dependency [^\n]+)\nend/, "\\1\n#{lines.join}\n") File.write "#{@final_gem}.gemspec", content end