method

normalize_uri

ruby latest stable - Class: Bundler::Source::Rubygems

Method not available on this version

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

normalize_uri(uri)
protected

No documentation available.

# File lib/bundler/source/rubygems.rb, line 322
      def normalize_uri(uri)
        uri = uri.to_s
        uri = "#{uri}/" unless uri =~ %{/$}
        uri = URI(uri)
        raise ArgumentError, "The source must be an absolute URI. For example:\n"            "source 'https://rubygems.org'" if !uri.absolute? || (uri.is_a?(URI::HTTP) && uri.host.nil?)
        uri
      end