picardo
picardo

Reputation: 24886

How can I call an older version of a gem from the commandline?

Say I have two versions of a gem installed (somegem versions 0.10.6 and 0.10.5) and I want to run the earlier version from the commandline. Do I have to uninstall the newer version? Is there a way I can use a flag to specify which version I want to use? Something like...

somegem /path/to/dir --version 0.10.5

I checked the rubygems documentation, and it only describes how to use a specific version when you require a gem from a file, but nothing about how to do it from the commandline.

Upvotes: 28

Views: 5820

Answers (1)

Jörg W Mittag
Jörg W Mittag

Reputation: 369518

somegem _0.10.5_ /path/to/dir

No link to documentation, because apparently there isn't any.

Upvotes: 53

Related Questions