Skip to content

Commit 3e7f143

Browse files
Rebuild for RubyGems 3.7.2
1 parent ad696c1 commit 3e7f143

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

command-reference.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ next: /rubygems-org-api
88

99
<em class="t-gray">What each `gem` command does, and how to use it.</em>
1010

11-
This reference was automatically generated from RubyGems version 3.7.1.
11+
This reference was automatically generated from RubyGems version 3.7.2.
1212

1313
* [gem build](#gem-build)
1414
* [gem cert](#gem-cert)
@@ -1395,6 +1395,8 @@ Manage the sources and cache file RubyGems uses to search for gems
13951395
### Options
13961396

13971397
* `-a, --add SOURCE_URI` - Add source
1398+
* `--append SOURCE_URI` - Append source (can be used multiple times)
1399+
* `--prepend SOURCE_URI` - Prepend source (can be used multiple times)
13981400
* `-l, --list` - List sources
13991401
* `-r, --remove SOURCE_URI` - Remove source
14001402
* `-c, --clear-all` - Remove all sources (clear the cache)
@@ -1428,7 +1430,7 @@ yourself to use your own gem server.
14281430
Without any arguments the sources lists your currently configured sources:
14291431

14301432
$ gem sources
1431-
*** CURRENT SOURCES ***
1433+
*** NO CONFIGURED SOURCES, DEFAULT SOURCES LISTED BELOW ***
14321434

14331435
https://rubygems.org
14341436

@@ -1447,18 +1449,24 @@ Since all of these sources point to the same set of gems you only need one
14471449
of them in your list. https://rubygems.org is recommended as it brings the
14481450
protections of an SSL connection to gem downloads.
14491451

1450-
To add a source use the --add argument:
1452+
To add a private gem source use the --prepend argument to insert it before
1453+
the default source. This is usually the best place for private gem sources:
14511454

1452-
$ gem sources --add https://rubygems.org
1453-
https://rubygems.org added to sources
1455+
$ gem sources --prepend https://my.private.source
1456+
https://my.private.source added to sources
14541457

14551458
RubyGems will check to see if gems can be installed from the source given
14561459
before it is added.
14571460

1461+
To add or move a source after all other sources, use --append:
1462+
1463+
$ gem sources --append https://rubygems.org
1464+
https://rubygems.org moved to end of sources
1465+
14581466
To remove a source use the --remove argument:
14591467

1460-
$ gem sources --remove https://rubygems.org/
1461-
https://rubygems.org/ removed from sources
1468+
$ gem sources --remove https://my.private.source/
1469+
https://my.private.source/ removed from sources
14621470

14631471
## gem specification
14641472

0 commit comments

Comments
 (0)