Fix gem dependecies to make it compatible with rails 4.0

Do I need to change version somehow? Let me know.