Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-31 00:21:41 +00:00
parent 5985fac848
commit af1e54b296
12 changed files with 83 additions and 36 deletions

View File

@@ -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}}`