mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 19:50:46 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/gem
10
tldr/gem
@@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gem
|
||||
|
||||
> A package manager for the Ruby programming language.
|
||||
> More information: <https://guides.rubygems.org>.
|
||||
> More information: <https://guides.rubygems.org/command-reference/>.
|
||||
|
||||
- Search for remote gem(s) and show all available versions:
|
||||
|
||||
`gem search {{regex}} --all`
|
||||
`gem search {{regex}} {{[-a|--all]}}`
|
||||
|
||||
- Install the latest version of a gem:
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install a specific version of a gem:
|
||||
|
||||
`gem install {{gem_name}} --version {{1.0.0}}`
|
||||
`gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}`
|
||||
|
||||
- Install the latest matching (SemVer) version of a gem:
|
||||
|
||||
`gem install {{gem_name}} --version '~> {{1.0}}'`
|
||||
`gem install {{gem_name}} {{[-v|--version]}} '~> {{1.0}}'`
|
||||
|
||||
- Update a gem:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Uninstall a specific version of a gem:
|
||||
|
||||
`gem uninstall {{gem_name}} --version {{1.0.0}}`
|
||||
`gem uninstall {{gem_name}} {{[-v|--version]}} {{1.0.0}}`
|
||||
|
||||
Reference in New Issue
Block a user