[rubygems/rubygems] Fix circular require warning
https://github.com/rubygems/rubygems/commit/241d0aafcd
This commit is contained in:
parent
d6cb62a88f
commit
53571de8e9
@ -69,7 +69,8 @@
|
|||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
||||||
module Gem::Deprecate
|
module Gem
|
||||||
|
module Deprecate
|
||||||
def self.skip # :nodoc:
|
def self.skip # :nodoc:
|
||||||
@skip ||= false
|
@skip ||= false
|
||||||
end
|
end
|
||||||
@ -164,4 +165,5 @@ module Gem::Deprecate
|
|||||||
end
|
end
|
||||||
|
|
||||||
module_function :rubygems_deprecate, :rubygems_deprecate_command, :skip_during
|
module_function :rubygems_deprecate, :rubygems_deprecate_command, :skip_during
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
# rubocop:enable Style/AsciiComments
|
# rubocop:enable Style/AsciiComments
|
||||||
|
|
||||||
require_relative "../rubygems"
|
|
||||||
require_relative "security"
|
require_relative "security"
|
||||||
require_relative "user_interaction"
|
require_relative "user_interaction"
|
||||||
|
|
||||||
|
@ -767,6 +767,18 @@ end
|
|||||||
expect(err).to be_empty
|
expect(err).to be_empty
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "can require rubygems without warnings, when using a local cache", rubygems: ">= 3.5.10" do
|
||||||
|
install_gemfile <<-G
|
||||||
|
source "#{file_uri_for(gem_repo1)}"
|
||||||
|
gem "rack"
|
||||||
|
G
|
||||||
|
|
||||||
|
bundle "package"
|
||||||
|
bundle %(exec ruby -w -e "require 'rubygems'")
|
||||||
|
|
||||||
|
expect(err).to be_empty
|
||||||
|
end
|
||||||
|
|
||||||
context "when the user has `MANPATH` set", :man do
|
context "when the user has `MANPATH` set", :man do
|
||||||
before { ENV["MANPATH"] = "/foo#{File::PATH_SEPARATOR}" }
|
before { ENV["MANPATH"] = "/foo#{File::PATH_SEPARATOR}" }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user