Zero-dimensional schemes of ruled varieties