{"action":"created","comment":{"url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/comments/29530322","id":29530322,"diff_hunk":"@@ -62,5 +63,36 @@\n \n       send_command(\"google ruby\")\n     end\n+\n+        it \"skips over domains that are blacklisted config\" do\n+          registry.config.handlers.google.excluded_domains = ['funnyjunk' ,'gawker']\n+\n+          allow(response).to receive(:body).and_return(\n+    <<-JSON.chomp\n+    {\n+      \"responseData\": {\n+        \"results\": [\n+          {\n+            \"unescapedUrl\": \"www.funnyjunk.com\",\n+            \"titleNoFormatting\": \"Funny pictures blah blah\"\n+          },\n+          {\n+            \"unescapedUrl\": \"http://theoatmeal.com/blog/funnyjunk2\",\n+            \"titleNoFormatting\": \"An update on the FunnyJunk situation\"\n+          }\n+      ]\n+      }\n+    }\n+    JSON\n+          )\n+\n+          send_command(\"google funnyjunk\")\n+\n+          expect(replies.last).to eq(\n+            \"An update on the FunnyJunk situation - http://theoatmeal.com/blog/funnyjunk2\"\n+          )\n+        end\n+\n+","path":"spec/lita/handlers/google_spec.rb","position":42,"original_position":42,"commit_id":"f12d7629821c97e1c4c05e7759bd2a8974466e60","original_commit_id":"f12d7629821c97e1c4c05e7759bd2a8974466e60","user":{"login":"jimmycuadra","id":122457,"avatar_url":"https://avatars.githubusercontent.com/u/122457?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmycuadra","html_url":"https://github.com/jimmycuadra","followers_url":"https://api.github.com/users/jimmycuadra/followers","following_url":"https://api.github.com/users/jimmycuadra/following{/other_user}","gists_url":"https://api.github.com/users/jimmycuadra/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmycuadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmycuadra/subscriptions","organizations_url":"https://api.github.com/users/jimmycuadra/orgs","repos_url":"https://api.github.com/users/jimmycuadra/repos","events_url":"https://api.github.com/users/jimmycuadra/events{/privacy}","received_events_url":"https://api.github.com/users/jimmycuadra/received_events","type":"User","site_admin":false},"body":"Remove two extra blank lines.","created_at":"2015-05-01T20:18:23Z","updated_at":"2015-05-01T20:18:23Z","html_url":"https://github.com/jimmycuadra/lita-google/pull/3#discussion_r29530322","pull_request_url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/comments/29530322"},"html":{"href":"https://github.com/jimmycuadra/lita-google/pull/3#discussion_r29530322"},"pull_request":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3","id":34525280,"html_url":"https://github.com/jimmycuadra/lita-google/pull/3","diff_url":"https://github.com/jimmycuadra/lita-google/pull/3.diff","patch_url":"https://github.com/jimmycuadra/lita-google/pull/3.patch","issue_url":"https://api.github.com/repos/jimmycuadra/lita-google/issues/3","number":3,"state":"open","locked":false,"title":"Add ecluded domains to config, reject any results with matching domains","user":{"login":"chriswoodrich","id":5343964,"avatar_url":"https://avatars.githubusercontent.com/u/5343964?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswoodrich","html_url":"https://github.com/chriswoodrich","followers_url":"https://api.github.com/users/chriswoodrich/followers","following_url":"https://api.github.com/users/chriswoodrich/following{/other_user}","gists_url":"https://api.github.com/users/chriswoodrich/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswoodrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswoodrich/subscriptions","organizations_url":"https://api.github.com/users/chriswoodrich/orgs","repos_url":"https://api.github.com/users/chriswoodrich/repos","events_url":"https://api.github.com/users/chriswoodrich/events{/privacy}","received_events_url":"https://api.github.com/users/chriswoodrich/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-01T07:31:19Z","updated_at":"2015-05-01T20:18:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76d1840905f5eeca8d467380d327f1effd8a9d67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3/commits","review_comments_url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3/comments","review_comment_url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jimmycuadra/lita-google/issues/3/comments","statuses_url":"https://api.github.com/repos/jimmycuadra/lita-google/statuses/f12d7629821c97e1c4c05e7759bd2a8974466e60","head":{"label":"chriswoodrich:config-exclude-domains","ref":"config-exclude-domains","sha":"f12d7629821c97e1c4c05e7759bd2a8974466e60","user":{"login":"chriswoodrich","id":5343964,"avatar_url":"https://avatars.githubusercontent.com/u/5343964?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswoodrich","html_url":"https://github.com/chriswoodrich","followers_url":"https://api.github.com/users/chriswoodrich/followers","following_url":"https://api.github.com/users/chriswoodrich/following{/other_user}","gists_url":"https://api.github.com/users/chriswoodrich/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswoodrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswoodrich/subscriptions","organizations_url":"https://api.github.com/users/chriswoodrich/orgs","repos_url":"https://api.github.com/users/chriswoodrich/repos","events_url":"https://api.github.com/users/chriswoodrich/events{/privacy}","received_events_url":"https://api.github.com/users/chriswoodrich/received_events","type":"User","site_admin":false},"repo":{"id":34891012,"name":"lita-google","full_name":"chriswoodrich/lita-google","owner":{"login":"chriswoodrich","id":5343964,"avatar_url":"https://avatars.githubusercontent.com/u/5343964?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswoodrich","html_url":"https://github.com/chriswoodrich","followers_url":"https://api.github.com/users/chriswoodrich/followers","following_url":"https://api.github.com/users/chriswoodrich/following{/other_user}","gists_url":"https://api.github.com/users/chriswoodrich/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswoodrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswoodrich/subscriptions","organizations_url":"https://api.github.com/users/chriswoodrich/orgs","repos_url":"https://api.github.com/users/chriswoodrich/repos","events_url":"https://api.github.com/users/chriswoodrich/events{/privacy}","received_events_url":"https://api.github.com/users/chriswoodrich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chriswoodrich/lita-google","description":"A Lita handler for returning Google search results.","fork":true,"url":"https://api.github.com/repos/chriswoodrich/lita-google","forks_url":"https://api.github.com/repos/chriswoodrich/lita-google/forks","keys_url":"https://api.github.com/repos/chriswoodrich/lita-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chriswoodrich/lita-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chriswoodrich/lita-google/teams","hooks_url":"https://api.github.com/repos/chriswoodrich/lita-google/hooks","issue_events_url":"https://api.github.com/repos/chriswoodrich/lita-google/issues/events{/number}","events_url":"https://api.github.com/repos/chriswoodrich/lita-google/events","assignees_url":"https://api.github.com/repos/chriswoodrich/lita-google/assignees{/user}","branches_url":"https://api.github.com/repos/chriswoodrich/lita-google/branches{/branch}","tags_url":"https://api.github.com/repos/chriswoodrich/lita-google/tags","blobs_url":"https://api.github.com/repos/chriswoodrich/lita-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chriswoodrich/lita-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chriswoodrich/lita-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/chriswoodrich/lita-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chriswoodrich/lita-google/statuses/{sha}","languages_url":"https://api.github.com/repos/chriswoodrich/lita-google/languages","stargazers_url":"https://api.github.com/repos/chriswoodrich/lita-google/stargazers","contributors_url":"https://api.github.com/repos/chriswoodrich/lita-google/contributors","subscribers_url":"https://api.github.com/repos/chriswoodrich/lita-google/subscribers","subscription_url":"https://api.github.com/repos/chriswoodrich/lita-google/subscription","commits_url":"https://api.github.com/repos/chriswoodrich/lita-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/chriswoodrich/lita-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/chriswoodrich/lita-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/chriswoodrich/lita-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/chriswoodrich/lita-google/contents/{+path}","compare_url":"https://api.github.com/repos/chriswoodrich/lita-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chriswoodrich/lita-google/merges","archive_url":"https://api.github.com/repos/chriswoodrich/lita-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chriswoodrich/lita-google/downloads","issues_url":"https://api.github.com/repos/chriswoodrich/lita-google/issues{/number}","pulls_url":"https://api.github.com/repos/chriswoodrich/lita-google/pulls{/number}","milestones_url":"https://api.github.com/repos/chriswoodrich/lita-google/milestones{/number}","notifications_url":"https://api.github.com/repos/chriswoodrich/lita-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chriswoodrich/lita-google/labels{/name}","releases_url":"https://api.github.com/repos/chriswoodrich/lita-google/releases{/id}","created_at":"2015-05-01T05:32:41Z","updated_at":"2015-05-01T05:32:41Z","pushed_at":"2015-05-01T07:29:28Z","git_url":"git://github.com/chriswoodrich/lita-google.git","ssh_url":"git@github.com:chriswoodrich/lita-google.git","clone_url":"https://github.com/chriswoodrich/lita-google.git","svn_url":"https://github.com/chriswoodrich/lita-google","homepage":null,"size":89,"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":"jimmycuadra:master","ref":"master","sha":"fa762c2f748deca611e0c489e5a4e07b417b23ef","user":{"login":"jimmycuadra","id":122457,"avatar_url":"https://avatars.githubusercontent.com/u/122457?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmycuadra","html_url":"https://github.com/jimmycuadra","followers_url":"https://api.github.com/users/jimmycuadra/followers","following_url":"https://api.github.com/users/jimmycuadra/following{/other_user}","gists_url":"https://api.github.com/users/jimmycuadra/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmycuadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmycuadra/subscriptions","organizations_url":"https://api.github.com/users/jimmycuadra/orgs","repos_url":"https://api.github.com/users/jimmycuadra/repos","events_url":"https://api.github.com/users/jimmycuadra/events{/privacy}","received_events_url":"https://api.github.com/users/jimmycuadra/received_events","type":"User","site_admin":false},"repo":{"id":14977287,"name":"lita-google","full_name":"jimmycuadra/lita-google","owner":{"login":"jimmycuadra","id":122457,"avatar_url":"https://avatars.githubusercontent.com/u/122457?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmycuadra","html_url":"https://github.com/jimmycuadra","followers_url":"https://api.github.com/users/jimmycuadra/followers","following_url":"https://api.github.com/users/jimmycuadra/following{/other_user}","gists_url":"https://api.github.com/users/jimmycuadra/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmycuadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmycuadra/subscriptions","organizations_url":"https://api.github.com/users/jimmycuadra/orgs","repos_url":"https://api.github.com/users/jimmycuadra/repos","events_url":"https://api.github.com/users/jimmycuadra/events{/privacy}","received_events_url":"https://api.github.com/users/jimmycuadra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimmycuadra/lita-google","description":"A Lita handler for returning Google search results.","fork":false,"url":"https://api.github.com/repos/jimmycuadra/lita-google","forks_url":"https://api.github.com/repos/jimmycuadra/lita-google/forks","keys_url":"https://api.github.com/repos/jimmycuadra/lita-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimmycuadra/lita-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimmycuadra/lita-google/teams","hooks_url":"https://api.github.com/repos/jimmycuadra/lita-google/hooks","issue_events_url":"https://api.github.com/repos/jimmycuadra/lita-google/issues/events{/number}","events_url":"https://api.github.com/repos/jimmycuadra/lita-google/events","assignees_url":"https://api.github.com/repos/jimmycuadra/lita-google/assignees{/user}","branches_url":"https://api.github.com/repos/jimmycuadra/lita-google/branches{/branch}","tags_url":"https://api.github.com/repos/jimmycuadra/lita-google/tags","blobs_url":"https://api.github.com/repos/jimmycuadra/lita-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimmycuadra/lita-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimmycuadra/lita-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimmycuadra/lita-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimmycuadra/lita-google/statuses/{sha}","languages_url":"https://api.github.com/repos/jimmycuadra/lita-google/languages","stargazers_url":"https://api.github.com/repos/jimmycuadra/lita-google/stargazers","contributors_url":"https://api.github.com/repos/jimmycuadra/lita-google/contributors","subscribers_url":"https://api.github.com/repos/jimmycuadra/lita-google/subscribers","subscription_url":"https://api.github.com/repos/jimmycuadra/lita-google/subscription","commits_url":"https://api.github.com/repos/jimmycuadra/lita-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimmycuadra/lita-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimmycuadra/lita-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimmycuadra/lita-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimmycuadra/lita-google/contents/{+path}","compare_url":"https://api.github.com/repos/jimmycuadra/lita-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimmycuadra/lita-google/merges","archive_url":"https://api.github.com/repos/jimmycuadra/lita-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimmycuadra/lita-google/downloads","issues_url":"https://api.github.com/repos/jimmycuadra/lita-google/issues{/number}","pulls_url":"https://api.github.com/repos/jimmycuadra/lita-google/pulls{/number}","milestones_url":"https://api.github.com/repos/jimmycuadra/lita-google/milestones{/number}","notifications_url":"https://api.github.com/repos/jimmycuadra/lita-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimmycuadra/lita-google/labels{/name}","releases_url":"https://api.github.com/repos/jimmycuadra/lita-google/releases{/id}","created_at":"2013-12-06T08:15:33Z","updated_at":"2015-01-22T18:21:17Z","pushed_at":"2015-05-01T07:31:19Z","git_url":"git://github.com/jimmycuadra/lita-google.git","ssh_url":"git@github.com:jimmycuadra/lita-google.git","clone_url":"https://github.com/jimmycuadra/lita-google.git","svn_url":"https://github.com/jimmycuadra/lita-google","homepage":null,"size":234,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3"},"html":{"href":"https://github.com/jimmycuadra/lita-google/pull/3"},"issue":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/issues/3"},"comments":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/jimmycuadra/lita-google/statuses/f12d7629821c97e1c4c05e7759bd2a8974466e60"}}}}