heroku/heroku-buildpack-grails — pull request #8 by rbrainard (2012-01-24 21:31:55+00:00)
Title: fix grails version detection for windows line endings

This change is to support Windows-style line endings when detecting the Grails versions in config file. It also extracts out the function to a new file for de-duplication and better testing. It uses the same style of version detection as the Play! buildpack, which does not care about the line ending itself, but rather stops when the value is not [A-Za-z0-9\.-] and relies on grep for breaking into lines. I added the other matching characters because Grails sometimes uses version modifiers, like 1.2.3-RC, whereas Play! does not.

Note, the testing on this on a real Windows is still pending, but included unit tests create a Windows-style CRLF file.