Sha256: 34029d9069aaac5c77171a08162cd33825f94a55f50ad846c43df5b3d47383ec
Contents?: true
Size: 765 Bytes
Versions: 10
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true # # Abstraction over WebMock to reduce duplication # # @author Mikael Henriksson <mikael@zoolutions.se> # @since 0.1.0 # module StubRequests # # Module URI organizes all gem logic regarding URI # # @author Mikael Henriksson <mikael@zoolutions.se> # module URI # # Module Suffix deals with validating {URI} suffix # module Suffix # # @return [RegExp] a pattern used for matching HTTP(S) ports PORT_REGEX = %r{:(\d+)/}.freeze # # Checks if the host has a valid suffix # # @param [String] host a string to check # # @return [true,false] # def self.valid?(host) PublicSuffix.valid?(host, default_rule: nil) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems