{"action":"created","comment":{"url":"https://api.github.com/repos/listia/walmart_open/pulls/comments/62407144","id":62407144,"diff_hunk":"@@ -1,6 +1,6 @@\n source \"https://rubygems.org\"\n \n-ruby \"2.0.0\", patchlevel: \"645\"\n+ruby \"2.3.0\"","path":"Gemfile","position":4,"original_position":4,"commit_id":"af542557cce616bf85eb6d799e52f4beab3d34c5","original_commit_id":"af542557cce616bf85eb6d799e52f4beab3d34c5","user":{"login":"ngan","id":16579,"avatar_url":"https://avatars.githubusercontent.com/u/16579?v=3","gravatar_id":"","url":"https://api.github.com/users/ngan","html_url":"https://github.com/ngan","followers_url":"https://api.github.com/users/ngan/followers","following_url":"https://api.github.com/users/ngan/following{/other_user}","gists_url":"https://api.github.com/users/ngan/gists{/gist_id}","starred_url":"https://api.github.com/users/ngan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngan/subscriptions","organizations_url":"https://api.github.com/users/ngan/orgs","repos_url":"https://api.github.com/users/ngan/repos","events_url":"https://api.github.com/users/ngan/events{/privacy}","received_events_url":"https://api.github.com/users/ngan/received_events","type":"User","site_admin":false},"body":"Can you remove this change? I'd rather discuss this separately in a different issue/PR.","created_at":"2016-05-07T00:29:41Z","updated_at":"2016-05-07T00:29:41Z","html_url":"https://github.com/listia/walmart_open/pull/23#discussion_r62407144","pull_request_url":"https://api.github.com/repos/listia/walmart_open/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/comments/62407144"},"html":{"href":"https://github.com/listia/walmart_open/pull/23#discussion_r62407144"},"pull_request":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/listia/walmart_open/pulls/23","id":69226512,"html_url":"https://github.com/listia/walmart_open/pull/23","diff_url":"https://github.com/listia/walmart_open/pull/23.diff","patch_url":"https://github.com/listia/walmart_open/pull/23.patch","issue_url":"https://api.github.com/repos/listia/walmart_open/issues/23","number":23,"state":"open","locked":false,"title":"Return an empty array when the API responds with nil for [\"items\"] in the search results.","user":{"login":"coolbox","id":5084,"avatar_url":"https://avatars.githubusercontent.com/u/5084?v=3","gravatar_id":"","url":"https://api.github.com/users/coolbox","html_url":"https://github.com/coolbox","followers_url":"https://api.github.com/users/coolbox/followers","following_url":"https://api.github.com/users/coolbox/following{/other_user}","gists_url":"https://api.github.com/users/coolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/coolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolbox/subscriptions","organizations_url":"https://api.github.com/users/coolbox/orgs","repos_url":"https://api.github.com/users/coolbox/repos","events_url":"https://api.github.com/users/coolbox/events{/privacy}","received_events_url":"https://api.github.com/users/coolbox/received_events","type":"User","site_admin":false},"body":"This PR is to resolve Issue #13. Instead of blowing up when the API returns `nil` for the `\"items\"` key in the search results, the change catches the nil and returns an empty array instead.\r\n\r\nThis is my first ever Open Source contribution so please feedback if there is anything I should change to make this easier to merge. Thanks.","created_at":"2016-05-07T00:20:17Z","updated_at":"2016-05-07T00:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16abdb7b0e2f642611a671ed9e42410e6332f40b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/listia/walmart_open/pulls/23/commits","review_comments_url":"https://api.github.com/repos/listia/walmart_open/pulls/23/comments","review_comment_url":"https://api.github.com/repos/listia/walmart_open/pulls/comments{/number}","comments_url":"https://api.github.com/repos/listia/walmart_open/issues/23/comments","statuses_url":"https://api.github.com/repos/listia/walmart_open/statuses/af542557cce616bf85eb6d799e52f4beab3d34c5","head":{"label":"coolbox:bugfix/explosion-when-no-results","ref":"bugfix/explosion-when-no-results","sha":"af542557cce616bf85eb6d799e52f4beab3d34c5","user":{"login":"coolbox","id":5084,"avatar_url":"https://avatars.githubusercontent.com/u/5084?v=3","gravatar_id":"","url":"https://api.github.com/users/coolbox","html_url":"https://github.com/coolbox","followers_url":"https://api.github.com/users/coolbox/followers","following_url":"https://api.github.com/users/coolbox/following{/other_user}","gists_url":"https://api.github.com/users/coolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/coolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolbox/subscriptions","organizations_url":"https://api.github.com/users/coolbox/orgs","repos_url":"https://api.github.com/users/coolbox/repos","events_url":"https://api.github.com/users/coolbox/events{/privacy}","received_events_url":"https://api.github.com/users/coolbox/received_events","type":"User","site_admin":false},"repo":{"id":58241256,"name":"walmart_open","full_name":"coolbox/walmart_open","owner":{"login":"coolbox","id":5084,"avatar_url":"https://avatars.githubusercontent.com/u/5084?v=3","gravatar_id":"","url":"https://api.github.com/users/coolbox","html_url":"https://github.com/coolbox","followers_url":"https://api.github.com/users/coolbox/followers","following_url":"https://api.github.com/users/coolbox/following{/other_user}","gists_url":"https://api.github.com/users/coolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/coolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolbox/subscriptions","organizations_url":"https://api.github.com/users/coolbox/orgs","repos_url":"https://api.github.com/users/coolbox/repos","events_url":"https://api.github.com/users/coolbox/events{/privacy}","received_events_url":"https://api.github.com/users/coolbox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coolbox/walmart_open","description":"Ruby implementation for Walmart Open API.","fork":true,"url":"https://api.github.com/repos/coolbox/walmart_open","forks_url":"https://api.github.com/repos/coolbox/walmart_open/forks","keys_url":"https://api.github.com/repos/coolbox/walmart_open/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coolbox/walmart_open/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coolbox/walmart_open/teams","hooks_url":"https://api.github.com/repos/coolbox/walmart_open/hooks","issue_events_url":"https://api.github.com/repos/coolbox/walmart_open/issues/events{/number}","events_url":"https://api.github.com/repos/coolbox/walmart_open/events","assignees_url":"https://api.github.com/repos/coolbox/walmart_open/assignees{/user}","branches_url":"https://api.github.com/repos/coolbox/walmart_open/branches{/branch}","tags_url":"https://api.github.com/repos/coolbox/walmart_open/tags","blobs_url":"https://api.github.com/repos/coolbox/walmart_open/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coolbox/walmart_open/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coolbox/walmart_open/git/refs{/sha}","trees_url":"https://api.github.com/repos/coolbox/walmart_open/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coolbox/walmart_open/statuses/{sha}","languages_url":"https://api.github.com/repos/coolbox/walmart_open/languages","stargazers_url":"https://api.github.com/repos/coolbox/walmart_open/stargazers","contributors_url":"https://api.github.com/repos/coolbox/walmart_open/contributors","subscribers_url":"https://api.github.com/repos/coolbox/walmart_open/subscribers","subscription_url":"https://api.github.com/repos/coolbox/walmart_open/subscription","commits_url":"https://api.github.com/repos/coolbox/walmart_open/commits{/sha}","git_commits_url":"https://api.github.com/repos/coolbox/walmart_open/git/commits{/sha}","comments_url":"https://api.github.com/repos/coolbox/walmart_open/comments{/number}","issue_comment_url":"https://api.github.com/repos/coolbox/walmart_open/issues/comments{/number}","contents_url":"https://api.github.com/repos/coolbox/walmart_open/contents/{+path}","compare_url":"https://api.github.com/repos/coolbox/walmart_open/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coolbox/walmart_open/merges","archive_url":"https://api.github.com/repos/coolbox/walmart_open/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coolbox/walmart_open/downloads","issues_url":"https://api.github.com/repos/coolbox/walmart_open/issues{/number}","pulls_url":"https://api.github.com/repos/coolbox/walmart_open/pulls{/number}","milestones_url":"https://api.github.com/repos/coolbox/walmart_open/milestones{/number}","notifications_url":"https://api.github.com/repos/coolbox/walmart_open/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coolbox/walmart_open/labels{/name}","releases_url":"https://api.github.com/repos/coolbox/walmart_open/releases{/id}","deployments_url":"https://api.github.com/repos/coolbox/walmart_open/deployments","created_at":"2016-05-07T00:04:31Z","updated_at":"2016-05-07T00:04:32Z","pushed_at":"2016-05-07T00:05:24Z","git_url":"git://github.com/coolbox/walmart_open.git","ssh_url":"git@github.com:coolbox/walmart_open.git","clone_url":"https://github.com/coolbox/walmart_open.git","svn_url":"https://github.com/coolbox/walmart_open","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"listia:master","ref":"master","sha":"8af4bb867a6d495c8ab0931c6ce38544366d132b","user":{"login":"listia","id":376402,"avatar_url":"https://avatars.githubusercontent.com/u/376402?v=3","gravatar_id":"","url":"https://api.github.com/users/listia","html_url":"https://github.com/listia","followers_url":"https://api.github.com/users/listia/followers","following_url":"https://api.github.com/users/listia/following{/other_user}","gists_url":"https://api.github.com/users/listia/gists{/gist_id}","starred_url":"https://api.github.com/users/listia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/listia/subscriptions","organizations_url":"https://api.github.com/users/listia/orgs","repos_url":"https://api.github.com/users/listia/repos","events_url":"https://api.github.com/users/listia/events{/privacy}","received_events_url":"https://api.github.com/users/listia/received_events","type":"Organization","site_admin":false},"repo":{"id":14247681,"name":"walmart_open","full_name":"listia/walmart_open","owner":{"login":"listia","id":376402,"avatar_url":"https://avatars.githubusercontent.com/u/376402?v=3","gravatar_id":"","url":"https://api.github.com/users/listia","html_url":"https://github.com/listia","followers_url":"https://api.github.com/users/listia/followers","following_url":"https://api.github.com/users/listia/following{/other_user}","gists_url":"https://api.github.com/users/listia/gists{/gist_id}","starred_url":"https://api.github.com/users/listia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/listia/subscriptions","organizations_url":"https://api.github.com/users/listia/orgs","repos_url":"https://api.github.com/users/listia/repos","events_url":"https://api.github.com/users/listia/events{/privacy}","received_events_url":"https://api.github.com/users/listia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/listia/walmart_open","description":"Ruby implementation for Walmart Open API.","fork":false,"url":"https://api.github.com/repos/listia/walmart_open","forks_url":"https://api.github.com/repos/listia/walmart_open/forks","keys_url":"https://api.github.com/repos/listia/walmart_open/keys{/key_id}","collaborators_url":"https://api.github.com/repos/listia/walmart_open/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/listia/walmart_open/teams","hooks_url":"https://api.github.com/repos/listia/walmart_open/hooks","issue_events_url":"https://api.github.com/repos/listia/walmart_open/issues/events{/number}","events_url":"https://api.github.com/repos/listia/walmart_open/events","assignees_url":"https://api.github.com/repos/listia/walmart_open/assignees{/user}","branches_url":"https://api.github.com/repos/listia/walmart_open/branches{/branch}","tags_url":"https://api.github.com/repos/listia/walmart_open/tags","blobs_url":"https://api.github.com/repos/listia/walmart_open/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/listia/walmart_open/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/listia/walmart_open/git/refs{/sha}","trees_url":"https://api.github.com/repos/listia/walmart_open/git/trees{/sha}","statuses_url":"https://api.github.com/repos/listia/walmart_open/statuses/{sha}","languages_url":"https://api.github.com/repos/listia/walmart_open/languages","stargazers_url":"https://api.github.com/repos/listia/walmart_open/stargazers","contributors_url":"https://api.github.com/repos/listia/walmart_open/contributors","subscribers_url":"https://api.github.com/repos/listia/walmart_open/subscribers","subscription_url":"https://api.github.com/repos/listia/walmart_open/subscription","commits_url":"https://api.github.com/repos/listia/walmart_open/commits{/sha}","git_commits_url":"https://api.github.com/repos/listia/walmart_open/git/commits{/sha}","comments_url":"https://api.github.com/repos/listia/walmart_open/comments{/number}","issue_comment_url":"https://api.github.com/repos/listia/walmart_open/issues/comments{/number}","contents_url":"https://api.github.com/repos/listia/walmart_open/contents/{+path}","compare_url":"https://api.github.com/repos/listia/walmart_open/compare/{base}...{head}","merges_url":"https://api.github.com/repos/listia/walmart_open/merges","archive_url":"https://api.github.com/repos/listia/walmart_open/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/listia/walmart_open/downloads","issues_url":"https://api.github.com/repos/listia/walmart_open/issues{/number}","pulls_url":"https://api.github.com/repos/listia/walmart_open/pulls{/number}","milestones_url":"https://api.github.com/repos/listia/walmart_open/milestones{/number}","notifications_url":"https://api.github.com/repos/listia/walmart_open/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/listia/walmart_open/labels{/name}","releases_url":"https://api.github.com/repos/listia/walmart_open/releases{/id}","deployments_url":"https://api.github.com/repos/listia/walmart_open/deployments","created_at":"2013-11-08T23:56:07Z","updated_at":"2016-04-27T15:14:05Z","pushed_at":"2016-05-07T00:20:17Z","git_url":"git://github.com/listia/walmart_open.git","ssh_url":"git@github.com:listia/walmart_open.git","clone_url":"https://github.com/listia/walmart_open.git","svn_url":"https://github.com/listia/walmart_open","homepage":null,"size":204,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/23"},"html":{"href":"https://github.com/listia/walmart_open/pull/23"},"issue":{"href":"https://api.github.com/repos/listia/walmart_open/issues/23"},"comments":{"href":"https://api.github.com/repos/listia/walmart_open/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/listia/walmart_open/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/listia/walmart_open/statuses/af542557cce616bf85eb6d799e52f4beab3d34c5"}}}}