rgversion

This library allow you to quickly copy latest semantic versions of specified gems to your clipboard. Versions will be taken from rubygems.org. Then you can past them in your Gemfile.

Installation
gem install rgversion
Copy to clipboard work through pbcopy and will be work out from the box on macOS / OS X.
To make it work in Ubuntu / Debian you can follow these steps.
Usage
Open terminal and execute rgversion with list of needed gems. E.g:
rgversion rails puma pg
After that semantic version of gem(s) will be copied to your clipboard.