extract gem_version logic into it's own method
use LockfileParser for rails 2