diff options
| author | Jason Whittle | 2013-08-16 19:50:52 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-17 07:40:27 -0700 |
| commit | 989dea1a509e19714cb864e0c718c749e84ec15c (patch) | |
| tree | 6436b90a1bc4256b6aac5a676eca27437077c375 | |
| parent | 65716b37ed085bc45d1edafc069c05dee44cfd5a (diff) | |
| download | homebrew-989dea1a509e19714cb864e0c718c749e84ec15c.tar.bz2 | |
let inreplace take a symbol
As discussed in https://github.com/mxcl/homebrew/pull/21936
Closes #21942.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Homebrew/utils/inreplace.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index 4b3cf9587..accb7d83c 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -9,6 +9,7 @@ module Utils s.extend(StringInreplaceExtension) yield s else + after = after.to_s if Symbol === after sub = s.gsub!(before, after) if sub.nil? opoo "inreplace in '#{path}' failed" |
