The Pry gem uses the rubygems API directly and can't be fixed by just running gem pristine --all
unfortunately.
I forked the Pry gem and added fixes using non-deprecated API calls. Pending a merge to master, here is the fork: https://github.com/dvdplm/pry