[rubygems/rubygems] Remove more compatibility code with old RubyGems
https://github.com/rubygems/rubygems/commit/74e8eff779
This commit is contained in:
parent
f8e3afd255
commit
f63873e7a2
@ -57,15 +57,6 @@ module Bundler
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def spec_missing_extensions?(spec, default = true)
|
|
||||||
return spec.missing_extensions? if spec.respond_to?(:missing_extensions?)
|
|
||||||
|
|
||||||
return false if spec.default_gem?
|
|
||||||
return false if spec.extensions.empty?
|
|
||||||
|
|
||||||
default
|
|
||||||
end
|
|
||||||
|
|
||||||
def stub_set_spec(stub, spec)
|
def stub_set_spec(stub, spec)
|
||||||
stub.instance_variable_set(:@spec, spec)
|
stub.instance_variable_set(:@spec, spec)
|
||||||
end
|
end
|
||||||
|
@ -210,7 +210,7 @@ module Bundler
|
|||||||
checkout
|
checkout
|
||||||
end
|
end
|
||||||
|
|
||||||
generate_bin_options = { disable_extensions: !Bundler.rubygems.spec_missing_extensions?(spec), build_args: options[:build_args] }
|
generate_bin_options = { disable_extensions: !spec.missing_extensions?, build_args: options[:build_args] }
|
||||||
generate_bin(spec, generate_bin_options)
|
generate_bin(spec, generate_bin_options)
|
||||||
|
|
||||||
requires_checkout? ? spec.post_install_message : nil
|
requires_checkout? ? spec.post_install_message : nil
|
||||||
|
@ -357,7 +357,7 @@ module Bundler
|
|||||||
@installed_specs ||= Index.build do |idx|
|
@installed_specs ||= Index.build do |idx|
|
||||||
Bundler.rubygems.installed_specs.reverse_each do |spec|
|
Bundler.rubygems.installed_specs.reverse_each do |spec|
|
||||||
spec.source = self
|
spec.source = self
|
||||||
if Bundler.rubygems.spec_missing_extensions?(spec, false)
|
if spec.missing_extensions?
|
||||||
Bundler.ui.debug "Source #{self} is ignoring #{spec} because it is missing extensions"
|
Bundler.ui.debug "Source #{self} is ignoring #{spec} because it is missing extensions"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user