summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/rebuild_command.rb
diff options
context:
space:
mode:
authorEllen Marie Dash <[email protected]>2024-01-30 23:18:48 -0500
committergit <[email protected]>2024-03-29 08:03:38 +0000
commitfe096f64e881cd3426e766eb999740ed0fbfa4ba ()
tree74ba508025fae2569a5df12c66215be203d0d0c9 /lib/rubygems/commands/rebuild_command.rb
parent54e0b8073b1236689ac0a2506b62b8b80535cf73 (diff)
[rubygems/rubygems] [rebuild_command] Clean up help text.
https://.com/rubygems/rubygems/commit/4446389f2e
-rw-r--r--lib/rubygems/commands/rebuild_command.rb35
1 files changed, 6 insertions, 29 deletions
@@ -55,35 +55,12 @@ This command assumes the gemspec can be built with the `gem build` command.
If you use either `gem build` or `rake build`/`rake release` to build/release
a gem, it is a potential candidate.
-If the gem includes top-level files that change frequently (e.g. Gemfile.lock),
-it may require more effort to reproduce a build. For example, it might require
-more precisely matched versions of Ruby, RubyGems, or Bundler to be used.
-
-An example of reproducing a gem build:
-
- $ pwd
- /usr/home/puppy/test/rebuild
- $ ls -a
- ./ ../
- $ git clone --branch v12.0.2 https://.com/duckinator/okay.git
- $ gem rebuild -C ./okay --gemspec okay.gemspec okay 12.0.2
- Fetching okay-12.0.2.gem
- Downloaded okay version 12.0.2 as /usr/home/puppy/test/rebuild/rebuild/old/okay-12.0.2.gem.
- Successfully built RubyGem
- Name: okay
- Version: 12.0.2
- File: okay-12.0.2.gem
-
- Built at: 2023-08-31 21:39:02 EDT (1693532342)
- Original build saved to: /usr/home/puppy/test/rebuild/rebuild/old/okay-12.0.2.gem
- Reproduced build saved to: /usr/home/puppy/test/rebuild/rebuild/new/okay-12.0.2.gem
- Working directory: ./okay
-
- Hash comparison:
- 38a8bd78ce10bc19189ead0b56fa490d03788a2f926a6481b2f1f5d5fa5ab75b /usr/home/puppy/test/rebuild/rebuild/old/okay-12.0.2.gem
- 38a8bd78ce10bc19189ead0b56fa490d03788a2f926a6481b2f1f5d5fa5ab75b /usr/home/puppy/test/rebuild/rebuild/new/okay-12.0.2.gem
-
- SUCCESS - original and rebuild hashes matched
EOF
end