audit: more fix on no-compat mode
This commit is contained in:
parent
2648684b3b
commit
ea21f9bc4d
@ -991,9 +991,11 @@ class ResourceAuditor
|
|||||||
|
|
||||||
return unless using
|
return unless using
|
||||||
|
|
||||||
if using == :ssl3 || using == CurlSSL3DownloadStrategy
|
if using == :ssl3 || \
|
||||||
|
(Object.const_defined?("CurlSSL3DownloadStrategy") && using == CurlSSL3DownloadStrategy)
|
||||||
problem "The SSL3 download strategy is deprecated, please choose a different URL"
|
problem "The SSL3 download strategy is deprecated, please choose a different URL"
|
||||||
elsif using == CurlUnsafeDownloadStrategy || using == UnsafeSubversionDownloadStrategy
|
elsif (Object.const_defined?("CurlUnsafeDownloadStrategy") && using == CurlUnsafeDownloadStrategy) || \
|
||||||
|
(Object.const_defined?("UnsafeSubversionDownloadStrategy") && using == UnsafeSubversionDownloadStrategy)
|
||||||
problem "#{using.name} is deprecated, please choose a different URL"
|
problem "#{using.name} is deprecated, please choose a different URL"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user