Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
get_version() regexp fails when Gemfile.lock has CRLF line terminators #359
When Gemfile.lock has CRLF line endings (as it does when using rails on Windows/cygwin), the regexp in get_version() fails to match, because the closing paren is not the last character at the end of the line. (Rather, the \r is.)
Sticking \r* just before the $ anchor seems to fix it, i.e., changing the first line in the function to:
def get_version name, gem_lock
Hi, thanks for reporting this issue.
I suspect this would work just fine if Ruby were running on Windows (since