method

validate_uri_scheme!

ruby latest stable - Class: Bundler::Fetcher::Downloader

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

validate_uri_scheme!(uri)
private

No documentation available.

# File lib/bundler/fetcher/downloader.rb, line 76
      def validate_uri_scheme!(uri)
        return if uri.scheme =~ /\Ahttps?\z/
        raise InvalidOption,
          "The request uri `#{uri}` has an invalid scheme (`#{uri.scheme}`). "            "Did you mean `http` or `https`?"
      end