Sha256: 833bd7c8e309b415e2dfc6689837e2eaae0d017a6ee64a459f9d299c473af10d
Contents?: true
Size: 610 Bytes
Versions: 6
Compression:
Stored size: 610 Bytes
Contents
module Repomen module Repo module Service class GitHub < Base SERVICE_REGEXP = /(https:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+)\.git$/ # @param url [String] def applicable? url =~ SERVICE_REGEXP end def handler_class Handler::Git end # overriding 'git_hub' here to make directories look prettier def name :github end def repo_name url =~ SERVICE_REGEXP && $3 end def user_name url =~ SERVICE_REGEXP && $2 end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems