mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Fix comments and messages to refer to https url
a86b49f1b9
This commit is contained in:
parent
b9996803f7
commit
c27aaf1a8f
8 changed files with 11 additions and 11 deletions
|
|
@ -260,7 +260,7 @@ module Bundler
|
||||||
message = <<EOF
|
message = <<EOF
|
||||||
It is a security vulnerability to allow your home directory to be world-writable, and bundler can not continue.
|
It is a security vulnerability to allow your home directory to be world-writable, and bundler can not 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 http://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-2.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"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
require_relative "shared_helpers"
|
require_relative "shared_helpers"
|
||||||
Bundler::SharedHelpers.major_deprecation 2,
|
Bundler::SharedHelpers.major_deprecation 2,
|
||||||
"The Bundler task for Capistrano. Please use http://github.com/capistrano/bundler"
|
"The Bundler task for Capistrano. Please use https://github.com/capistrano/bundler"
|
||||||
|
|
||||||
# Capistrano task for Bundler.
|
# Capistrano task for Bundler.
|
||||||
#
|
#
|
||||||
|
|
@ -12,7 +12,7 @@ require_relative "deployment"
|
||||||
require "capistrano/version"
|
require "capistrano/version"
|
||||||
|
|
||||||
if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0")
|
if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0")
|
||||||
raise "For Capistrano 3.x integration, please use http://github.com/capistrano/bundler"
|
raise "For Capistrano 3.x integration, please use https://github.com/capistrano/bundler"
|
||||||
end
|
end
|
||||||
|
|
||||||
Capistrano::Configuration.instance(:must_exist).load do
|
Capistrano::Configuration.instance(:must_exist).load do
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ module Bundler
|
||||||
Bundler.ui.error "You have specified a gem name which does not conform to the \n" \
|
Bundler.ui.error "You have specified a gem name which does not conform to the \n" \
|
||||||
"naming guidelines for C extensions. For more information, \n" \
|
"naming guidelines for C extensions. For more information, \n" \
|
||||||
"see the 'Extension Naming' section at the following URL:\n" \
|
"see the 'Extension Naming' section at the following URL:\n" \
|
||||||
"http://guides.rubygems.org/gems-with-extensions/\n"
|
"https://guides.rubygems.org/gems-with-extensions/\n"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ module Bundler
|
||||||
Bundler.ui.warn <<-WARN, :wrap => true
|
Bundler.ui.warn <<-WARN, :wrap => true
|
||||||
You must recompile Ruby with OpenSSL support or change the sources in your \
|
You must recompile Ruby with OpenSSL support or change the sources in your \
|
||||||
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL \
|
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL \
|
||||||
using RVM are available at http://rvm.io/packages/openssl.
|
using RVM are available at https://rvm.io/packages/openssl.
|
||||||
WARN
|
WARN
|
||||||
Bundler.ui.trace error
|
Bundler.ui.trace error
|
||||||
when Interrupt
|
when Interrupt
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ module Bundler
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
# http://www.informit.com/articles/article.aspx?p=683059&seqNum=36
|
# https://www.informit.com/articles/article.aspx?p=683059&seqNum=36
|
||||||
def levenshtein_distance(this, that, ins = 2, del = 2, sub = 1)
|
def levenshtein_distance(this, that, ins = 2, del = 2, sub = 1)
|
||||||
# ins, del, sub are weighted costs
|
# ins, del, sub are weighted costs
|
||||||
return nil if this.nil?
|
return nil if this.nil?
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ module Bundler
|
||||||
def initialize(command)
|
def initialize(command)
|
||||||
msg = String.new
|
msg = String.new
|
||||||
msg << "Bundler is trying to run a `git #{command}` at runtime. You probably need to run `bundle install`. However, "
|
msg << "Bundler is trying to run a `git #{command}` at runtime. You probably need to run `bundle install`. However, "
|
||||||
msg << "this error message could probably be more useful. Please submit a ticket at http://github.com/bundler/bundler/issues "
|
msg << "this error message could probably be more useful. Please submit a ticket at https://github.com/bundler/bundler/issues "
|
||||||
msg << "with steps to reproduce as well as the following\n\nCALLER: #{caller.join("\n")}"
|
msg << "with steps to reproduce as well as the following\n\nCALLER: #{caller.join("\n")}"
|
||||||
super msg
|
super msg
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ members of the project's leadership.
|
||||||
## Attribution
|
## Attribution
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
available at [http://contributor-covenant.org/version/1/4][version]
|
available at [https://contributor-covenant.org/version/1/4][version]
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
[homepage]: https://contributor-covenant.org
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
[version]: https://contributor-covenant.org/version/1/4/
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,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 can not continue.
|
It is a security vulnerability to allow your home directory to be world-writable, and bundler can not 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 http://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-2.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…
Add table
Add a link
Reference in a new issue