Add versions to gem dependencies

The pry gems have been moved to the Gemfile because they're not strictly needed
for development, just useful to have.