Skip to content

Escape Ruby strings when writing Gemfile replacements - #46

Open
andrew wants to merge 1 commit into
mainfrom
fix-gemfile-ruby-escaping
Open

andrew wants to merge 1 commit into
mainfrom
fix-gemfile-ruby-escaping

Conversation

@andrew

@andrew andrew commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Bundler replacements currently use Go's %q, which leaves Ruby interpolation active and emits Unicode escapes Ruby reads differently. Encode gem names, paths, git URLs, and refs as Ruby string literals so supplied values remain literal when the Gemfile is evaluated.

Add regression coverage for edited and appended entries, including interpolation, quotes, backslashes, control bytes, and Unicode.

Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants