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