cache neocomplete requirements, improve ruby template