update to the new deprecation API
Merge pull request #294 from rspec/new-deprecation-api

update to the new deprecation API