making gems compatible with herkou and rails 4.0.0