gem

What gems are installed?

Snippet

Have a Gemfile or a Gemfile.lock and want to see what versions are installed.

gem list

Specify local gem in Gemfile

Snippet

Specify a specific ruby gem file to use, typically development and local, instead of the default installed version.

gem "foo", :path => "/path/to/foo"