use new deprecation API
Merge pull request #253 from rspec/new-deprecation-api

use new deprecation API