[rubygems/rubygems] Improve formatting of "gem rebuild --help" output.
https://github.com/rubygems/rubygems/commit/701550f9dd
This commit is contained in:
parent
54d90e1355
commit
d916dbcb84
@ -52,15 +52,15 @@ The rebuild command allows you to (attempt to) reproduce a build of a gem
|
|||||||
from a ruby gemspec.
|
from a ruby gemspec.
|
||||||
|
|
||||||
This command assumes the gemspec can be built with the `gem build` command.
|
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
|
If you use any of `gem build`, `rake build`, or`rake release` in the
|
||||||
a gem, it is a potential candidate.
|
build/release process for a gem, it is a potential candidate.
|
||||||
|
|
||||||
You will likely need to match the RubyGems version used, since this is
|
You will need to match the RubyGems version used, since this is included in
|
||||||
included in the Gem metadata.
|
the Gem metadata.
|
||||||
|
|
||||||
If the gem includes lockfiles (e.g. Gemfile.lock) and similar, it will require
|
If the gem includes lockfiles (e.g. Gemfile.lock) and similar, it will
|
||||||
more effort to reproduce a build. For example, it might require more precisely
|
require more effort to reproduce a build. For example, it might require
|
||||||
matched versions of Ruby and/or Bundler to be used.
|
more precisely matched versions of Ruby and/or Bundler to be used.
|
||||||
EOF
|
EOF
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -148,14 +148,13 @@ Please install RubyGems v#{rg_version} and try again.
|
|||||||
say "SUCCESS - original and rebuild hashes matched"
|
say "SUCCESS - original and rebuild hashes matched"
|
||||||
else
|
else
|
||||||
say "FAILURE - original and rebuild hashes did not match"
|
say "FAILURE - original and rebuild hashes did not match"
|
||||||
|
say
|
||||||
|
|
||||||
if options[:diff]
|
if options[:diff]
|
||||||
say
|
|
||||||
if system("diffoscope", old_file, new_file).nil?
|
if system("diffoscope", old_file, new_file).nil?
|
||||||
alert_error "error: could not find `diffoscope` executable"
|
alert_error "error: could not find `diffoscope` executable"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
say
|
|
||||||
say "Pass --diff for more details (requires diffoscope to be installed)."
|
say "Pass --diff for more details (requires diffoscope to be installed)."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user