2015-10-22 08:31:52 +01:00
|
|
|
# gem
|
2014-03-01 08:41:02 +00:00
|
|
|
|
|
|
|
> Interact with the package manager for the Ruby programming language.
|
2019-06-07 11:58:22 +01:00
|
|
|
> More information: <https://rubygems.org>.
|
2014-03-01 08:41:02 +00:00
|
|
|
|
2019-07-05 09:52:30 +01:00
|
|
|
- Search for remote gem(s) and show all available versions:
|
|
|
|
|
2021-05-10 10:03:12 +01:00
|
|
|
`gem search {{regular_expression}} --all`
|
2019-07-05 09:52:30 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Install latest version of a gem:
|
2014-03-01 08:41:02 +00:00
|
|
|
|
|
|
|
`gem install {{gemname}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Install specific version of a gem:
|
2014-03-01 08:41:02 +00:00
|
|
|
|
2019-07-05 09:52:30 +01:00
|
|
|
`gem install {{gemname}} --version {{1.0.0}}`
|
2014-03-01 08:41:02 +00:00
|
|
|
|
2020-10-14 23:22:59 +01:00
|
|
|
- Install the latest matching (SemVer) version of a gem:
|
|
|
|
|
|
|
|
`gem install {{gemname}} --version '~> {{1.0}}'`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Update a gem:
|
2014-03-01 08:41:02 +00:00
|
|
|
|
|
|
|
`gem update {{gemname}}`
|
|
|
|
|
2019-07-05 09:52:30 +01:00
|
|
|
- List all local gems:
|
2014-03-01 08:41:02 +00:00
|
|
|
|
|
|
|
`gem list`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Uninstall a gem:
|
2014-03-01 08:41:02 +00:00
|
|
|
|
|
|
|
`gem uninstall {{gemname}}`
|
2019-07-05 09:52:30 +01:00
|
|
|
|
|
|
|
- Uninstall specific version of a gem:
|
|
|
|
|
|
|
|
`gem uninstall {{gemname}} --version {{1.0.0}}`
|