You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundler/lib/bundler/cli.rb
+12-26Lines changed: 12 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ def remove(*gems)
217
217
method_option"full-index",type: :boolean,banner: "Fall back to using the single-file index of all gems"
218
218
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
219
219
method_option"jobs",aliases: "-j",type: :numeric,banner: "Specify the number of jobs to run in parallel"
220
-
method_option"local",type: :boolean,banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
220
+
method_option"local",type: :boolean,banner: "Do not attempt to fetch gems remotely and use the gem cache instead"
221
221
method_option"prefer-local",type: :boolean,banner: "Only attempt to fetch gems remotely if not present locally, even if newer versions are available remotely"
222
222
method_option"no-cache",type: :boolean,banner: "Don't update the existing gem cache."
223
223
method_option"redownload",type: :boolean,aliases: "--force",banner: "Force downloading every gem."
@@ -227,10 +227,8 @@ def remove(*gems)
227
227
method_option"shebang",type: :string,banner: "Specify a different shebang executable name than the default (usually 'ruby')"
228
228
method_option"standalone",type: :array,lazy_default: [],banner: "Make a bundle that can work without the Bundler runtime"
229
229
method_option"system",type: :boolean,banner: "Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application"
230
-
method_option"trust-policy",alias: "P",type: :string,banner: "Gem trust policy (like gem install -P). Must be one of " +
231
-
Bundler.rubygems.security_policy_keys.join("|")
232
-
method_option"target-rbconfig",type: :string,banner: "rbconfig.rb for the deployment target platform"
233
-
230
+
method_option"trust-policy",alias: "P",type: :string,banner: "Gem trust policy (like gem install -P). Must be one of #{Bundler.rubygems.security_policy_keys.join("|")}"
231
+
method_option"target-rbconfig",type: :string,banner: "Path to rbconfig.rb for the deployment target platform"
234
232
method_option"without",type: :array,banner: "Exclude gems that are part of the specified named group."
235
233
method_option"with",type: :array,banner: "Include gems that are part of the specified named group."
236
234
definstall
@@ -288,10 +286,8 @@ def update(*gems)
288
286
Show lists the names and versions of all gems that are required by your Gemfile.
289
287
Calling show with [GEM] will list the exact location of that gem on your machine.
290
288
D
291
-
method_option"paths",type: :boolean,
292
-
banner: "List the paths of all gems that are required by your Gemfile."
293
-
method_option"outdated",type: :boolean,
294
-
banner: "Show verbose output including whether gems are outdated."
289
+
method_option"paths",type: :boolean,banner: "List the paths of all gems that are required by your Gemfile."
290
+
method_option"outdated",type: :boolean,banner: "Show verbose output including whether gems are outdated."
295
291
defshow(gem_name=nil)
296
292
ifARGV.include?("--outdated")
297
293
message="the `--outdated` flag to `bundle show` was undocumented and will be removed without replacement"
@@ -400,9 +396,7 @@ def fund
400
396
end
401
397
402
398
desc"cache [OPTIONS]","Locks and then caches all of the gems into vendor/cache"
403
-
method_option"all",type: :boolean,
404
-
default: Bundler.feature_flag.cache_all?,
405
-
banner: "Include all sources (including path and git)."
399
+
method_option"all",type: :boolean,default: Bundler.feature_flag.cache_all?,banner: "Include all sources (including path and git)."
406
400
method_option"all-platforms",type: :boolean,banner: "Include gems for all platforms present in the lockfile, not only the current one"
407
401
method_option"cache-path",type: :string,banner: "Specify a different cache path than the default (vendor/cache)."
408
402
method_option"gemfile",type: :string,banner: "Use the specified gemfile instead of Gemfile"
@@ -440,8 +434,8 @@ def cache
440
434
mapaliases_for("cache")
441
435
442
436
desc"exec [OPTIONS]","Run the command in context of the bundle"
method_option:keep_file_descriptors,type: :boolean,default: true,banner: "Passes all file descriptors to the new processes. Default is true, and setting it to false is deprecated"
438
+
method_option:gemfile,type: :string,required: false,banner: "Use the specified gemfile instead of Gemfile"
445
439
long_desc<<-D
446
440
Exec runs a command, providing it access to the gems in the bundle. While using
447
441
bundle exec you can require and call the bundled gems as if they were installed
@@ -540,23 +534,15 @@ def viz
540
534
desc"gem NAME [OPTIONS]","Creates a skeleton for creating a rubygem"
541
535
method_option:exe,type: :boolean,default: false,aliases: ["--bin","-b"],desc: "Generate a binary executable for your library."
542
536
method_option:coc,type: :boolean,desc: "Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`."
desc: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
537
+
method_option:edit,type: :string,aliases: "-e",required: false,banner: "EDITOR",lazy_default: [ENV["BUNDLER_EDITOR"],ENV["VISUAL"],ENV["EDITOR"]].find{|e| !e.nil? && !e.empty?},desc: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
546
538
method_option:ext,type: :string,desc: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
547
539
method_option:git,type: :boolean,default: true,desc: "Initialize a git repo inside your library."
548
540
method_option:mit,type: :boolean,desc: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
549
541
method_option:rubocop,type: :boolean,desc: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
550
542
method_option:changelog,type: :boolean,desc: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
551
-
method_option:test,type: :string,lazy_default: Bundler.settings["gem.test"] || "",aliases: "-t",banner: "Use the specified test framework for your library",
552
-
enum: %w[rspecminitesttest-unit],
553
-
desc: "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`."
desc: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
desc: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
543
+
method_option:test,type: :string,lazy_default: Bundler.settings["gem.test"] || "",aliases: "-t",banner: "Use the specified test framework for your library",enum: %w[rspecminitesttest-unit],desc: "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`."
544
+
method_option:ci,type: :string,lazy_default: Bundler.settings["gem.ci"] || "",enum: %w[githubgitlabcircle],desc: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
545
+
method_option:linter,type: :string,lazy_default: Bundler.settings["gem.linter"] || "",enum: %w[rubocopstandard],desc: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
560
546
method_option:github_username,type: :string,default: Bundler.settings["gem.github_username"],banner: "Set your username on GitHub",desc: "Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`."
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-add.1
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,33 +9,36 @@
9
9
Adds the named gem to the [\fBGemfile(5)\fR][Gemfile(5)] and run \fBbundleinstall\fR\.\fBbundleinstall\fR can be avoided by using the flag \fB\-\-skip\-install\fR\.
10
10
.SH "OPTIONS"
11
11
.TP
12
-
\fB\-\-version\fR, \fB\-v\fR
12
+
\fB\-\-version=VERSION\fR, \fB\-v=VERSION\fR
13
13
Specify version requirements(s) for the added gem\.
14
14
.TP
15
-
\fB\-\-group\fR, \fB\-g\fR
15
+
\fB\-\-group=GROUP\fR, \fB\-g=GROUP\fR
16
16
Specify the group(s) for the added gem\. Multiple groups should be separated by commas\.
17
17
.TP
18
-
\fB\-\-source\fR, \fB\-s\fR
18
+
\fB\-\-source=SOURCE\fR, \fB\-s=SOURCE\fR
19
19
Specify the source for the added gem\.
20
20
.TP
21
-
\fB\-\-require\fR, \fB\-r\fR
21
+
\fB\-\-require=REQUIRE\fR, \fB\-r=REQUIRE\fR
22
22
Adds require path to gem\. Provide false, or a path as a string\.
23
23
.TP
24
-
\fB\-\-path\fR
24
+
\fB\-\-path=PATH\fR
25
25
Specify the file system path for the added gem\.
26
26
.TP
27
-
\fB\-\-git\fR
27
+
\fB\-\-git=GIT\fR
28
28
Specify the git source for the added gem\.
29
29
.TP
30
-
\fB\-\-github\fR
30
+
\fB\-\-github=GITHUB\fR
31
31
Specify the github source for the added gem\.
32
32
.TP
33
-
\fB\-\-branch\fR
33
+
\fB\-\-branch=BRANCH\fR
34
34
Specify the git branch for the added gem\.
35
35
.TP
36
-
\fB\-\-ref\fR
36
+
\fB\-\-ref=REF\fR
37
37
Specify the git ref for the added gem\.
38
38
.TP
39
+
\fB\-\-glob=GLOB\fR
40
+
Specify the location of a dependency's \.gemspec, expanded within Ruby (single quotes recommended)\.
41
+
.TP
39
42
\fB\-\-quiet\fR
40
43
Do not print progress information to the standard output\.
Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it into \fBbin/\fR\. Binstubs are a shortcut\-or alternative\- to always using \fBbundleexec\fR\. This gives you a file that can be run directly, and one that will always run the correct gem version used by the application\.
10
10
.P
@@ -16,15 +16,18 @@ This command generates binstubs for executables in \fBGEM_NAME\fR\. Binstubs are
16
16
\fB\-\-force\fR
17
17
Overwrite existing binstubs if they exist\.
18
18
.TP
19
-
\fB\-\-path\fR
19
+
\fB\-\-path[=PATH]\fR
20
20
The location to install the specified binstubs to\. This defaults to \fBbin\fR\.
21
21
.TP
22
22
\fB\-\-standalone\fR
23
23
Makes binstubs that can work without depending on Rubygems or Bundler at runtime\.
24
24
.TP
25
-
\fB\-\-shebang\fR
25
+
\fB\-\-shebang=SHEBANG\fR
26
26
Specify a different shebang executable name than the default (default 'ruby')
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-cache.1
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,39 @@
4
4
.SH "NAME"
5
5
\fBbundle\-cache\fR\- Package your needed \fB\.gem\fR files into your application
6
6
.SH "SYNOPSIS"
7
-
\fBbundlecache\fR
7
+
\fBbundlecache\fR [\fIOPTIONS\fR]
8
8
.P
9
9
alias: \fBpackage\fR, \fBpack\fR
10
10
.SH "DESCRIPTION"
11
11
Copy all of the \fB\.gem\fR files needed to run the application into the \fBvendor/cache\fR directory\. In the future, when running \fBbundleinstall(1)\fR\fIbundle\-install\.1\.html\fR, use the gems in the cache in preference to the ones on \fBrubygems\.org\fR\.
12
+
.SH "OPTIONS"
13
+
.TP
14
+
\fB\-\-all\fR
15
+
Include all sources (including path and git)\.
16
+
.TP
17
+
\fB\-\-all\-platforms\fR
18
+
Include gems for all platforms present in the lockfile, not only the current one\.
19
+
.TP
20
+
\fB\-\-cache\-path=CACHE\-PATH\fR
21
+
Specify a different cache path than the default (vendor/cache)\.
22
+
.TP
23
+
\fB\-\-gemfile=GEMFILE\fR
24
+
Use the specified gemfile instead of Gemfile\.
25
+
.TP
26
+
\fB\-\-no\-install\fR
27
+
Don't install the gems, only update the cache\.
28
+
.TP
29
+
\fB\-\-no\-prune\fR
30
+
Don't remove stale gems from the cache\.
31
+
.TP
32
+
\fB\-\-path=PATH\fR
33
+
Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME)\.
34
+
.TP
35
+
\fB\-\-quiet\fR
36
+
Only output warnings and errors\.
37
+
.TP
38
+
\fB\-\-frozen\fR
39
+
Do not allow the Gemfile\.lock to be updated after this bundle cache operation's install\.
12
40
.SH "GIT AND PATH GEMS"
13
41
The \fBbundlecache\fR command can also package \fB:git\fR and \fB:path\fR dependencies besides \.gem files\. This needs to be explicitly enabled via the \fB\-\-all\fR option\. Once used, the \fB\-\-all\fR option will be remembered\.
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-check.1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ If the lockfile needs to be updated then it will be resolved using the gems inst
16
16
\fB\-\-dry\-run\fR
17
17
Locks the [\fBGemfile(5)\fR][Gemfile(5)] before running the command\.
18
18
.TP
19
-
\fB\-\-gemfile\fR
19
+
\fB\-\-gemfile=GEMFILE\fR
20
20
Use the specified gemfile instead of the [\fBGemfile(5)\fR][Gemfile(5)]\.
21
21
.TP
22
-
\fB\-\-path\fR
22
+
\fB\-\-path=PATH\fR
23
23
Specify a different path than the system default (\fB$BUNDLE_PATH\fR or \fB$GEM_HOME\fR)\. Bundler will remember this value for future installs on this machine\.
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-doctor.1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,6 @@ Missing dependencies
25
25
\fB\-\-quiet\fR
26
26
Only output warnings and errors\.
27
27
.TP
28
-
\fB\-\-gemfile=<gemfile>\fR
28
+
\fB\-\-gemfile=GEMFILE\fR
29
29
The location of the Gemfile(5) which Bundler should use\. This defaults to a Gemfile(5) in the current working directory\. In general, Bundler will assume that the location of the Gemfile(5) is also the project's root and will try to find \fBGemfile\.lock\fR and \fBvendor/cache\fR relative to this location\.
0 commit comments