aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/test-bot.rb
diff options
context:
space:
mode:
authorilovezfs2016-07-18 08:49:52 -0700
committerilovezfs2016-07-18 09:24:08 -0700
commit45bfd2b94abc6cadfe33db73a6fdb7904ed91e0e (patch)
treed0a90f1e838b5d3a67af832a9c096d59bcc22de7 /Library/Homebrew/dev-cmd/test-bot.rb
parentd7ee54129310de2b8b4989e6a47607fd1fb7db6c (diff)
downloadbrew-45bfd2b94abc6cadfe33db73a6fdb7904ed91e0e.tar.bz2
inreplace: support for audit arg in non-block form
Provides feature parity between the block and non-block forms of inreplace by creating a four-argument version of the non-block form, where the fourth argument is an optional Boolean value, defaulting to true, which specifies whether a failed inreplace should cause an InreplaceError error to be raised. The fourth argument is passed along to StringInreplaceExtension#gsub!, which already supports an optional audit_result argument. This resolves the Catch-22 that single replacements aren't permissible in the block form (in that they now cause `brew audit` to complain), but the audit_result argument is not available in the non-block form. Closes #552. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
Diffstat (limited to 'Library/Homebrew/dev-cmd/test-bot.rb')
0 files changed, 0 insertions, 0 deletions