diff --git a/lib/bundler/audit/scanner.rb b/lib/bundler/audit/scanner.rb index 145a0dea..eb277dc8 100644 --- a/lib/bundler/audit/scanner.rb +++ b/lib/bundler/audit/scanner.rb @@ -167,7 +167,7 @@ def scan_specs(options={}) # @return [Boolean] # def internal_source?(uri) - uri = URI(uri) + uri = URI.parse(uri.to_s) internal_host?(uri.host) if uri.host end