method

uri_hash

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

Method not available on this version

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

uri_hash()
private

No documentation available.

# File lib/bundler/source/git.rb, line 278
      def uri_hash
        if uri =~ %{^\w+://(\w+@)?}
          # Downcase the domain component of the URI
          # and strip off a trailing slash, if one is present
          input = URI.parse(uri).normalize.to_s.sub(%{/$}, "")
        else
          # If there is no URI scheme, assume it is an ssh/git URI
          input = uri
        end
        SharedHelpers.digest(:SHA1).hexdigest(input)
      end