improve rubygems refresh pattern