lib/indieweb/endpoints.rb in indieweb-endpoints-7.0.0 vs lib/indieweb/endpoints.rb in indieweb-endpoints-7.1.0

- old
+ new

@@ -1,29 +1,24 @@ # frozen_string_literal: true -require 'addressable/uri' require 'http' require 'link-header-parser' require 'nokogiri' require_relative 'endpoints/version' -require_relative 'endpoints/exceptions' -require_relative 'endpoints/services/response_parser_service' - require_relative 'endpoints/client' -require_relative 'endpoints/parsers' +require_relative 'endpoints/parser' +require_relative 'endpoints/response_body_parser' +require_relative 'endpoints/response_headers_parser' -require_relative 'endpoints/parsers/base_parser' -require_relative 'endpoints/parsers/authorization_endpoint_parser' -require_relative 'endpoints/parsers/micropub_parser' -require_relative 'endpoints/parsers/microsub_parser' -require_relative 'endpoints/parsers/redirect_uri_parser' -require_relative 'endpoints/parsers/token_endpoint_parser' -require_relative 'endpoints/parsers/webmention_parser' - module IndieWeb module Endpoints + class Error < StandardError; end + class HttpError < Error; end + class InvalidURIError < Error; end + class SSLError < Error; end + # Discover a URL's IndieAuth, Micropub, Microsub, and Webmention endpoints # # IndieWeb::Endpoints.get('https://aaronparecki.com') # # @param url [String] an absolute URL