ruby, gem: update page; irb, rake: add page (#10412)

* gem: update page

* Use `snake_case` for placeholders
* Update the documentation URL

* ruby: move `irb` example to a separate page

* rake: add page

* ruby: reference other ruby-related pages

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* irb: standard input => `stdin` (#10436)

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Lena
2023-08-09 09:09:12 +02:00
committed by GitHub
parent 0238aa119e
commit 3f9320290a
4 changed files with 45 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
# gem
> Interact with the package manager for the Ruby programming language.
> More information: <https://rubygems.org>.
> A package manager for the Ruby programming language.
> More information: <https://guides.rubygems.org>.
- Search for remote gem(s) and show all available versions:
@@ -9,19 +9,19 @@
- Install the latest version of a gem:
`gem install {{gemname}}`
`gem install {{gem_name}}`
- Install specific version of a gem:
- Install a specific version of a gem:
`gem install {{gemname}} --version {{1.0.0}}`
`gem install {{gem_name}} --version {{1.0.0}}`
- Install the latest matching (SemVer) version of a gem:
`gem install {{gemname}} --version '~> {{1.0}}'`
`gem install {{gem_name}} --version '~> {{1.0}}'`
- Update a gem:
`gem update {{gemname}}`
`gem update {{gem_name}}`
- List all local gems:
@@ -29,8 +29,8 @@
- Uninstall a gem:
`gem uninstall {{gemname}}`
`gem uninstall {{gem_name}}`
- Uninstall specific version of a gem:
- Uninstall a specific version of a gem:
`gem uninstall {{gemname}} --version {{1.0.0}}`
`gem uninstall {{gem_name}} --version {{1.0.0}}`