lib/webmention/verification/verifiers/base_verifier.rb in webmention-verification-4.0.0 vs lib/webmention/verification/verifiers/base_verifier.rb in webmention-verification-5.0.0

- old
+ new

@@ -4,14 +4,11 @@ class << self attr_reader :mime_types end def initialize(response, target, **options) - raise ArgumentError, "response must be an HTTP::Response (given #{response.class.name})" unless response.is_a?(HTTP::Response) - raise ArgumentError, "target must be a String (given #{target.class.name})" unless target.is_a?(String) - @response = response - @target = target + @target = target.to_str @options = options raise UnsupportedMimeTypeError, "Unsupported MIME Type: #{response.mime_type}" unless self.class.mime_types.include?(response.mime_type) end