kouphax/strapping-young-lad — pull request #2 by ngm (2013-05-21 19:01:46+00:00)
Title: Replace gsub! with gsub for replacement in files

gsub! returns nil when there are no matches. As such, files with no tokens within them have all their content cleared. Using gsub resolves this, as gsub will return the original contents of the files when there are no matches.