{"action":"created","issue":{"url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/7","labels_url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/7/comments","events_url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/7/events","html_url":"https://github.com/packsaddle/ruby-uri-ssh_git/pull/7","id":119677913,"number":7,"title":"support user-less URI","user":{"login":"apachelogger","id":809987,"avatar_url":"https://avatars.githubusercontent.com/u/809987?v=3","gravatar_id":"","url":"https://api.github.com/users/apachelogger","html_url":"https://github.com/apachelogger","followers_url":"https://api.github.com/users/apachelogger/followers","following_url":"https://api.github.com/users/apachelogger/following{/other_user}","gists_url":"https://api.github.com/users/apachelogger/gists{/gist_id}","starred_url":"https://api.github.com/users/apachelogger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apachelogger/subscriptions","organizations_url":"https://api.github.com/users/apachelogger/orgs","repos_url":"https://api.github.com/users/apachelogger/repos","events_url":"https://api.github.com/users/apachelogger/events{/privacy}","received_events_url":"https://api.github.com/users/apachelogger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T09:40:33Z","updated_at":"2015-12-01T10:31:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/pulls/7","html_url":"https://github.com/packsaddle/ruby-uri-ssh_git/pull/7","diff_url":"https://github.com/packsaddle/ruby-uri-ssh_git/pull/7.diff","patch_url":"https://github.com/packsaddle/ruby-uri-ssh_git/pull/7.patch"},"body":"git-clone samples the scp-like URI syntax as:\r\n> [user@]host.xz:path/to/repo.git/\r\nwhere [] denotes an optional element. Due to the way the parse method\r\nemployed string splits this actually was not supported as optional though.\r\n\r\nReverse the split order on the host_part, so that iff there is no @ in the\r\nhost_part the host variable gets assigned the not split host_part and the\r\nuserinfo becomes nil (instead of having it the other way around).\r\n\r\nAlso added a test for this."},"comment":{"url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/comments/160928376","html_url":"https://github.com/packsaddle/ruby-uri-ssh_git/pull/7#issuecomment-160928376","issue_url":"https://api.github.com/repos/packsaddle/ruby-uri-ssh_git/issues/7","id":160928376,"user":{"login":"sanemat","id":75448,"avatar_url":"https://avatars.githubusercontent.com/u/75448?v=3","gravatar_id":"","url":"https://api.github.com/users/sanemat","html_url":"https://github.com/sanemat","followers_url":"https://api.github.com/users/sanemat/followers","following_url":"https://api.github.com/users/sanemat/following{/other_user}","gists_url":"https://api.github.com/users/sanemat/gists{/gist_id}","starred_url":"https://api.github.com/users/sanemat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanemat/subscriptions","organizations_url":"https://api.github.com/users/sanemat/orgs","repos_url":"https://api.github.com/users/sanemat/repos","events_url":"https://api.github.com/users/sanemat/events{/privacy}","received_events_url":"https://api.github.com/users/sanemat/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T10:31:38Z","updated_at":"2015-12-01T10:31:38Z","body":"great!"}}