{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/104","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/104/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/104/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-php/pull/104","id":172298810,"number":104,"title":"Add PubSub emulator support","user":{"login":"kop","id":645148,"avatar_url":"https://avatars.githubusercontent.com/u/645148?v=3","gravatar_id":"","url":"https://api.github.com/users/kop","html_url":"https://github.com/kop","followers_url":"https://api.github.com/users/kop/followers","following_url":"https://api.github.com/users/kop/following{/other_user}","gists_url":"https://api.github.com/users/kop/gists{/gist_id}","starred_url":"https://api.github.com/users/kop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kop/subscriptions","organizations_url":"https://api.github.com/users/kop/orgs","repos_url":"https://api.github.com/users/kop/repos","events_url":"https://api.github.com/users/kop/events{/privacy}","received_events_url":"https://api.github.com/users/kop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-21T01:00:34Z","updated_at":"2016-08-22T20:46:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/pulls/104","html_url":"https://github.com/GoogleCloudPlatform/gcloud-php/pull/104","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-php/pull/104.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-php/pull/104.patch"},"body":"Solves #103 by recognizing `PUBSUB_EMULATOR_HOST` environment variable."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/comments/241544763","html_url":"https://github.com/GoogleCloudPlatform/gcloud-php/pull/104#issuecomment-241544763","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-php/issues/104","id":241544763,"user":{"login":"jdpedrie","id":89034,"avatar_url":"https://avatars.githubusercontent.com/u/89034?v=3","gravatar_id":"","url":"https://api.github.com/users/jdpedrie","html_url":"https://github.com/jdpedrie","followers_url":"https://api.github.com/users/jdpedrie/followers","following_url":"https://api.github.com/users/jdpedrie/following{/other_user}","gists_url":"https://api.github.com/users/jdpedrie/gists{/gist_id}","starred_url":"https://api.github.com/users/jdpedrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdpedrie/subscriptions","organizations_url":"https://api.github.com/users/jdpedrie/orgs","repos_url":"https://api.github.com/users/jdpedrie/repos","events_url":"https://api.github.com/users/jdpedrie/events{/privacy}","received_events_url":"https://api.github.com/users/jdpedrie/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T20:46:23Z","updated_at":"2016-08-22T20:46:23Z","body":"Hey @kop, my changes are here: https://github.com/jdpedrie/gcloud-php/commit/c95a29a895b4500224161eb65116284db5cfaa15\r\n\r\n* I added test coverage to the emulator setup\r\n* I moved the code from `Google\\Cloud\\PubSub\\Connection\\Rest` to `Google\\Cloud\\RestTrait` and made it more generic so that we can reuse it in other services that offer emulators.\r\n\r\nLet me know what you think. You can copy/paste or pull my changes into your PR once you are satisfied. Please make sure it works in a real emulation setting too. I did a bit of cursory testing, but a second person verifying would be appreciated.\r\n\r\nThanks again for the contribution!"}}
{"actor":{"display_login":"jdpedrie"}}