code: def []=(url,auth)
        # normalize the url
        url = URI(url)
  
        # normalize the URL path
        path = URI.expand_path(url.path)
  
        key = [url.scheme, url.host, url.port]
  
        @credentials[key] ||= {}
        @credentials[key][path.split('/')] = auth
        return auth
      end
docs: Add an auth credential to the store for supplied base URL.
  
   @param [URI] url
     A URL pattern to associate with a set of auth credentials.
  
   @param [AuthCredential] auth
     The auth credential for this URL pattern.
  
   @return [AuthCredential]
     The newly added auth credential.
  
   @since 0.2.2