build ruby and caching packages