Setting optimistic versions, securing rubygems connection