updated gems and made rails 4 compatible