changed gems source to secure
merged upstream changes