How to Install a Specific Version of a Ruby Gem
Installing gems is easy enough, but how do you install a specific version? Or a range of versions? In this guide, we'll cover the basics of RubyGem's gem install
command.
Posted in these interests:
Installing gems is easy enough, but how do you install a specific version? Or a range of versions? In this guide, we'll cover the basics of RubyGem's gem install
command.
You may already be familiar with gem install
, but if you add the -v
flag, you can specify the version of the gem to install.
Using -v
you can specify an exact version or use version comparators.
gem install mypackage -v 1.0.0
gem install mypackage -v '>= 1.0.0'
# or
gem install mypackage -v '~> 1.0.0'
What is docker? Docker is a tool that allows you to deploy applications inside of software containers.