upgrade to support 4.0

upgrade to support ruby 2.1.0 + rails 4.0.3