Summary
When a GitHub repo description includes a single quote ('), maltmill new renders the Homebrew formula with desc '...' and produces an invalid string.
Steps to reproduce
- Use a repo with a description containing a single quote, e.g. "A CLI that's fast".
- Run
maltmill new <owner>/<repo>.
- Inspect the generated formula.
Actual behavior
The formula contains:
This breaks the Ruby string and the formula is invalid.
Expected behavior
desc should be escaped so the formula is valid:
desc 'A CLI that\'s fast'
Environment
- maltmill version: 1.2.0
- OS: Mac
Suggested fix
Escape single quotes (and backslashes) in the description before rendering the template.
Summary
When a GitHub repo description includes a single quote (
'),maltmill newrenders the Homebrew formula withdesc '...'and produces an invalid string.Steps to reproduce
maltmill new <owner>/<repo>.Actual behavior
The formula contains:
This breaks the Ruby string and the formula is invalid.
Expected behavior
descshould be escaped so the formula is valid:Environment
Suggested fix
Escape single quotes (and backslashes) in the description before rendering the template.