updated this gem to ruby 2 and rails 4