Sha256: 67829186f02c5cc8db13b9c5228f1cea7dc3dec16fca40694af62c4dd75a83f2
Contents?: true
Size: 431 Bytes
Versions: 24
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module OhlohScm module Hg class Validation < OhlohScm::Validation private def validate_server_connection msg = "The server did not respond to the 'hg id' command. Is the URL correct?" @errors << [:failed, msg] unless status.exist? end def public_url_regex %r{^(http|https)://(\w+@)?[\w\-\.]+(:\d+)?/[\w\-\./\~\+]*$} end end end end
Version data entries
24 entries across 24 versions & 1 rubygems