class OhlohScm::Hg::Validation
Private Instance Methods
Source
# File lib/ohloh_scm/hg/validation.rb, line 13 def public_url_regex %r{^(http|https)://(\w+@)?[\w\-\.]+(:\d+)?/[\w\-\./\~\+]*$} end
Source
# File lib/ohloh_scm/hg/validation.rb, line 8 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