{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments/54775083","id":54775083,"diff_hunk":"@@ -0,0 +1,146 @@\n+# Copyright 2015 Google, Inc\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+require_relative \"../sample\"\n+require \"spec_helper\"\n+\n+describe \"Pub/Sub sample\" do\n+  TOPIC_NAME = \"my-topic\".freeze","path":"pubsub/spec/sample_spec.rb","position":null,"original_position":19,"commit_id":"dd3fca839a50ece6e148219fef1d99959c901587","original_commit_id":"cc17500bf35883a8a106eada636085c87e4105c1","user":{"login":"jeffmendoza","id":771387,"avatar_url":"https://avatars.githubusercontent.com/u/771387?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmendoza","html_url":"https://github.com/jeffmendoza","followers_url":"https://api.github.com/users/jeffmendoza/followers","following_url":"https://api.github.com/users/jeffmendoza/following{/other_user}","gists_url":"https://api.github.com/users/jeffmendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmendoza/subscriptions","organizations_url":"https://api.github.com/users/jeffmendoza/orgs","repos_url":"https://api.github.com/users/jeffmendoza/repos","events_url":"https://api.github.com/users/jeffmendoza/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmendoza/received_events","type":"User","site_admin":false},"body":"Fixed. added:\r\n```\r\nStyle/MutableConstant:\r\n  Enabled: false\r\n```\r\nto rubocop","created_at":"2016-03-02T19:18:19Z","updated_at":"2016-03-02T19:18:19Z","html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10#discussion_r54775083","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments/54775083"},"html":{"href":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10#discussion_r54775083"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10","id":57712810,"html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10","diff_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10.diff","patch_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/10","number":10,"state":"open","locked":false,"title":"Pub/Sub sample.","user":{"login":"jeffmendoza","id":771387,"avatar_url":"https://avatars.githubusercontent.com/u/771387?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmendoza","html_url":"https://github.com/jeffmendoza","followers_url":"https://api.github.com/users/jeffmendoza/followers","following_url":"https://api.github.com/users/jeffmendoza/following{/other_user}","gists_url":"https://api.github.com/users/jeffmendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmendoza/subscriptions","organizations_url":"https://api.github.com/users/jeffmendoza/orgs","repos_url":"https://api.github.com/users/jeffmendoza/repos","events_url":"https://api.github.com/users/jeffmendoza/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmendoza/received_events","type":"User","site_admin":false},"body":"Add full Pub/Sub sample","created_at":"2016-01-29T22:37:31Z","updated_at":"2016-03-02T19:18:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0094f928cec32a1e28e94deead9361865f802f97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/10/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/dd3fca839a50ece6e148219fef1d99959c901587","head":{"label":"GoogleCloudPlatform:pubsub-sample","ref":"pubsub-sample","sha":"dd3fca839a50ece6e148219fef1d99959c901587","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":41501829,"name":"ruby-docs-samples","full_name":"GoogleCloudPlatform/ruby-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","description":"Ruby code samples used on https://cloud.google.com","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/deployments","created_at":"2015-08-27T17:40:52Z","updated_at":"2016-02-05T23:51:14Z","pushed_at":"2016-03-02T19:14:45Z","git_url":"git://github.com/GoogleCloudPlatform/ruby-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/ruby-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","homepage":"","size":33,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"94f55bad082a08cf418bf049fd35d67d2347298f","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":41501829,"name":"ruby-docs-samples","full_name":"GoogleCloudPlatform/ruby-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","description":"Ruby code samples used on https://cloud.google.com","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/deployments","created_at":"2015-08-27T17:40:52Z","updated_at":"2016-02-05T23:51:14Z","pushed_at":"2016-03-02T19:14:45Z","git_url":"git://github.com/GoogleCloudPlatform/ruby-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/ruby-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","homepage":"","size":33,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10"},"html":{"href":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/10"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/10"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/dd3fca839a50ece6e148219fef1d99959c901587"}}}}