@@ -8,7 +8,7 @@ next: /rubygems-org-api
8
8
9
9
<em class =" t-gray " >What each ` gem ` command does, and how to use it.</em >
10
10
11
- This reference was automatically generated from RubyGems version 3.5.7 .
11
+ This reference was automatically generated from RubyGems version 3.5.8 .
12
12
13
13
* [ gem build] ( #gem-build )
14
14
* [ gem cert] ( #gem-cert )
@@ -33,6 +33,7 @@ This reference was automatically generated from RubyGems version 3.5.7.
33
33
* [ gem push] ( #gem-push )
34
34
* [ gem query] ( #gem-query )
35
35
* [ gem rdoc] ( #gem-rdoc )
36
+ * [ gem rebuild] ( #gem-rebuild )
36
37
* [ gem search] ( #gem-search )
37
38
* [ gem server] ( #gem-server )
38
39
* [ gem signin] ( #gem-signin )
@@ -1197,6 +1198,56 @@ Gem.post_installs hook.
1197
1198
1198
1199
Use --overwrite to force rebuilding of documentation.
1199
1200
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
+
1200
1251
## gem search
1201
1252
1202
1253
Display remote gems whose name matches REGEXP
0 commit comments