[rubygems/rubygems] Bundler: update the link suggested on error with the new one
Also typo is fixed. Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> https://github.com/rubygems/rubygems/commit/9c1ea52ddf
This commit is contained in:
parent
9f6fcfcd7f
commit
22a416a3bb
@ -333,7 +333,7 @@ module Bundler
|
|||||||
message = <<EOF
|
message = <<EOF
|
||||||
It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
|
It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
|
||||||
You should probably consider fixing this issue by running `chmod o-w ~` on *nix.
|
You should probably consider fixing this issue by running `chmod o-w ~` on *nix.
|
||||||
Please refer to https://ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details.
|
Please refer to https://ruby-doc.org/stdlib-3.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details.
|
||||||
EOF
|
EOF
|
||||||
File.world_writable?(path) ? Bundler.ui.warn(message) : raise
|
File.world_writable?(path) ? Bundler.ui.warn(message) : raise
|
||||||
raise PathError, "Please fix the world-writable issue with your #{path} directory"
|
raise PathError, "Please fix the world-writable issue with your #{path} directory"
|
||||||
|
@ -169,7 +169,7 @@ RSpec.describe Bundler do
|
|||||||
message = <<EOF
|
message = <<EOF
|
||||||
It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
|
It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
|
||||||
You should probably consider fixing this issue by running `chmod o-w ~` on *nix.
|
You should probably consider fixing this issue by running `chmod o-w ~` on *nix.
|
||||||
Please refer to https://ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details.
|
Please refer to https://ruby-doc.org/stdlib-3.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details.
|
||||||
EOF
|
EOF
|
||||||
expect(bundler_ui).to receive(:warn).with(message)
|
expect(bundler_ui).to receive(:warn).with(message)
|
||||||
expect { Bundler.send(:rm_rf, bundled_app) }.to raise_error(Bundler::PathError)
|
expect { Bundler.send(:rm_rf, bundled_app) }.to raise_error(Bundler::PathError)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user