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

Version Path
ohloh_scm-4.0.4 lib/ohloh_scm/git/validation.rb
ohloh_scm-4.0.3 lib/ohloh_scm/git/validation.rb
ohloh_scm-4.0.2 lib/ohloh_scm/git/validation.rb
ohloh_scm-4.0.1 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.21 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.19 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.17 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.16 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.15 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.14 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.13 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.12 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.9 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.8 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.7 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.6 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.5 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.4 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.3 lib/ohloh_scm/git/validation.rb
ohloh_scm-3.0.2 lib/ohloh_scm/git/validation.rb