Sha256: f4d832303f42bf2df3d136900b82b8bbfd2d051264135f5014dc0f35d771356e
Contents?: true
Size: 651 Bytes
Versions: 6
Compression:
Stored size: 651 Bytes
Contents
module Webmention module CLI module Commands class Verify def initialize(source, target, strict) @source = source @target = target @strict = strict end def run Webmention::Verification.verified?(@source, @target, strict: @strict) rescue Webmention::Verification::ArgumentError, Webmention::Verification::InvalidURIError => exception raise ArgumentError, exception rescue Webmention::Verification::WebmentionVerificationError => exception raise WebmentionVerificationError, exception end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems