Safely parse Gemfiles and gemspecs