CRDoc::Shards::Spec
A parsed add argument: a git remote (with optional ref) or a local directory.
Constants
HOSTED_PATTERN = /\A(github|gitlab|codeberg):([\w.\-]+)\/([\w.\-]+?)(?:\.git)?(?:@(\S+))?\z/
HOSTS = {"github" => "github.com", "gitlab" => "gitlab.com", "codeberg" => "codeberg.org"}
URL_REF_PATTERN = /\A(.+?)@([^@\/:\s]+)\z/
A trailing @ref. The ref has no / or :, so the @ in
git@host:path and user@host/path never matches.
Constructors
Instance methods
kind
Sourceref
Source