Skip to content

Commit

Permalink
fix(owlbot): Fix multi-wrapper dependencies that were broken when dro…
Browse files Browse the repository at this point in the history
…pping Ruby 2.7 (#328)
  • Loading branch information
dazuma authored Jun 11, 2024
1 parent 8d3f163 commit 085dfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owlbot-postprocessor/lib/owlbot/multi_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 085dfda

Please sign in to comment.