Skip to content

Commit e7bde7f

Browse files
Rebuild for RubyGems 3.5.8
1 parent d29d5ef commit e7bde7f

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

command-reference.md

+52-1
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.5.7.
11+
This reference was automatically generated from RubyGems version 3.5.8.
1212

1313
* [gem build](#gem-build)
1414
* [gem cert](#gem-cert)
@@ -33,6 +33,7 @@ This reference was automatically generated from RubyGems version 3.5.7.
3333
* [gem push](#gem-push)
3434
* [gem query](#gem-query)
3535
* [gem rdoc](#gem-rdoc)
36+
* [gem rebuild](#gem-rebuild)
3637
* [gem search](#gem-search)
3738
* [gem server](#gem-server)
3839
* [gem signin](#gem-signin)
@@ -1197,6 +1198,56 @@ Gem.post_installs hook.
11971198

11981199
Use --overwrite to force rebuilding of documentation.
11991200

1201+
## gem rebuild
1202+
1203+
Attempt to reproduce a build of a gem.
1204+
1205+
### Usage
1206+
1207+
gem rebuild GEM_NAME GEM_VERSION [options]
1208+
1209+
### Options
1210+
1211+
* `--diff` - If the files don't match, compare them using diffoscope.
1212+
* `--force` - Skip validation of the spec.
1213+
* `--strict` - Consider warnings as errors when validating the spec.
1214+
* `--source GEM_SOURCE` - Specify the source to download the gem from.
1215+
* `--original GEM_FILE` - Specify a local file to compare against (instead of downloading it).
1216+
* `--gemspec GEMSPEC_FILE` - Specify the name of the gemspec file.
1217+
* `-C PATH` - Run as if gem build was started in <PATH> instead of the current working directory.
1218+
1219+
### Common Options
1220+
1221+
* `-h, --help` - Get help on this command
1222+
* `-V, --[no-]verbose` - Set the verbose level of output
1223+
* `-q, --quiet` - Silence command progress meter
1224+
* `--silent` - Silence RubyGems output
1225+
* `--config-file FILE` - Use this config file instead of default
1226+
* `--backtrace` - Show stack backtrace on errors
1227+
* `--debug` - Turn on Ruby debugging
1228+
* `--norc` - Avoid loading any .gemrc file
1229+
1230+
### Arguments
1231+
1232+
* *GEM_NAME* - gem name on gem server
1233+
* *GEM_VERSION* - gem version you are attempting to rebuild
1234+
1235+
### Description
1236+
1237+
The rebuild command allows you to (attempt to) reproduce a build of a gem
1238+
from a ruby gemspec.
1239+
1240+
This command assumes the gemspec can be built with the `gem build` command.
1241+
If you use any of `gem build`, `rake build`, or`rake release` in the
1242+
build/release process for a gem, it is a potential candidate.
1243+
1244+
You will need to match the RubyGems version used, since this is included in
1245+
the Gem metadata.
1246+
1247+
If the gem includes lockfiles (e.g. Gemfile.lock) and similar, it will
1248+
require more effort to reproduce a build. For example, it might require
1249+
more precisely matched versions of Ruby and/or Bundler to be used.
1250+
12001251
## gem search
12011252

12021253
Display remote gems whose name matches REGEXP

0 commit comments

Comments
 (0)