Added v2 deprecation warning and disabled support for v2.

[Finishes #46236885]
bump gem version to 0.5.1