update gemspec and regepx and format for safe yaml