{"action":"created","comment":{"url":"https://api.github.com/repos/amaabca/lita-animate/pulls/comments/42919472","id":42919472,"diff_hunk":"@@ -44,6 +52,27 @@ def safe_value\n         safe = \"active\" unless [\"active\", \"moderate\", \"off\"].include?(safe)\n         safe\n       end\n+\n+      def valid_extension?(result)\n+        if /^.*\\.(jpg|JPG|png|PNG|jpeg|JPEG)/.match(result)","path":"lib/lita/handlers/animate.rb","position":63,"original_position":63,"commit_id":"d0785806268872dc528ac6b24ee0a684482510a2","original_commit_id":"d0785806268872dc528ac6b24ee0a684482510a2","user":{"login":"mvandenbeuken","id":1053677,"avatar_url":"https://avatars.githubusercontent.com/u/1053677?v=3","gravatar_id":"","url":"https://api.github.com/users/mvandenbeuken","html_url":"https://github.com/mvandenbeuken","followers_url":"https://api.github.com/users/mvandenbeuken/followers","following_url":"https://api.github.com/users/mvandenbeuken/following{/other_user}","gists_url":"https://api.github.com/users/mvandenbeuken/gists{/gist_id}","starred_url":"https://api.github.com/users/mvandenbeuken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvandenbeuken/subscriptions","organizations_url":"https://api.github.com/users/mvandenbeuken/orgs","repos_url":"https://api.github.com/users/mvandenbeuken/repos","events_url":"https://api.github.com/users/mvandenbeuken/events{/privacy}","received_events_url":"https://api.github.com/users/mvandenbeuken/received_events","type":"User","site_admin":false},"body":"wait a sec. what about ```/.*\\.gif$/.match(result)```?","created_at":"2015-10-23T22:04:57Z","updated_at":"2015-10-23T22:04:57Z","html_url":"https://github.com/amaabca/lita-animate/pull/2#discussion_r42919472","pull_request_url":"https://api.github.com/repos/amaabca/lita-animate/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/comments/42919472"},"html":{"href":"https://github.com/amaabca/lita-animate/pull/2#discussion_r42919472"},"pull_request":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/amaabca/lita-animate/pulls/2","id":48612557,"html_url":"https://github.com/amaabca/lita-animate/pull/2","diff_url":"https://github.com/amaabca/lita-animate/pull/2.diff","patch_url":"https://github.com/amaabca/lita-animate/pull/2.patch","issue_url":"https://api.github.com/repos/amaabca/lita-animate/issues/2","number":2,"state":"open","locked":false,"title":"gifs only!","user":{"login":"ryanjones","id":350391,"avatar_url":"https://avatars.githubusercontent.com/u/350391?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanjones","html_url":"https://github.com/ryanjones","followers_url":"https://api.github.com/users/ryanjones/followers","following_url":"https://api.github.com/users/ryanjones/following{/other_user}","gists_url":"https://api.github.com/users/ryanjones/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjones/subscriptions","organizations_url":"https://api.github.com/users/ryanjones/orgs","repos_url":"https://api.github.com/users/ryanjones/repos","events_url":"https://api.github.com/users/ryanjones/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjones/received_events","type":"User","site_admin":false},"body":"- Append 'gif' to search query - more likely to return gifs\r\n- Only ever return gifs (discard anything that could possibly NOT be a gif (.png.gif for ex)\r\n- Add tests/simplecov checking to make sure we have everything covered.","created_at":"2015-10-23T18:19:26Z","updated_at":"2015-10-23T22:04:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"942ea551f8c6ab393e92758267027739e24e6b98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amaabca/lita-animate/pulls/2/commits","review_comments_url":"https://api.github.com/repos/amaabca/lita-animate/pulls/2/comments","review_comment_url":"https://api.github.com/repos/amaabca/lita-animate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amaabca/lita-animate/issues/2/comments","statuses_url":"https://api.github.com/repos/amaabca/lita-animate/statuses/d0785806268872dc528ac6b24ee0a684482510a2","head":{"label":"amaabca:disable_junk_gifs","ref":"disable_junk_gifs","sha":"d0785806268872dc528ac6b24ee0a684482510a2","user":{"login":"amaabca","id":1038934,"avatar_url":"https://avatars.githubusercontent.com/u/1038934?v=3","gravatar_id":"","url":"https://api.github.com/users/amaabca","html_url":"https://github.com/amaabca","followers_url":"https://api.github.com/users/amaabca/followers","following_url":"https://api.github.com/users/amaabca/following{/other_user}","gists_url":"https://api.github.com/users/amaabca/gists{/gist_id}","starred_url":"https://api.github.com/users/amaabca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaabca/subscriptions","organizations_url":"https://api.github.com/users/amaabca/orgs","repos_url":"https://api.github.com/users/amaabca/repos","events_url":"https://api.github.com/users/amaabca/events{/privacy}","received_events_url":"https://api.github.com/users/amaabca/received_events","type":"Organization","site_admin":false},"repo":{"id":24765990,"name":"lita-animate","full_name":"amaabca/lita-animate","owner":{"login":"amaabca","id":1038934,"avatar_url":"https://avatars.githubusercontent.com/u/1038934?v=3","gravatar_id":"","url":"https://api.github.com/users/amaabca","html_url":"https://github.com/amaabca","followers_url":"https://api.github.com/users/amaabca/followers","following_url":"https://api.github.com/users/amaabca/following{/other_user}","gists_url":"https://api.github.com/users/amaabca/gists{/gist_id}","starred_url":"https://api.github.com/users/amaabca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaabca/subscriptions","organizations_url":"https://api.github.com/users/amaabca/orgs","repos_url":"https://api.github.com/users/amaabca/repos","events_url":"https://api.github.com/users/amaabca/events{/privacy}","received_events_url":"https://api.github.com/users/amaabca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amaabca/lita-animate","description":"Allows searching for animations with Lita","fork":true,"url":"https://api.github.com/repos/amaabca/lita-animate","forks_url":"https://api.github.com/repos/amaabca/lita-animate/forks","keys_url":"https://api.github.com/repos/amaabca/lita-animate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amaabca/lita-animate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amaabca/lita-animate/teams","hooks_url":"https://api.github.com/repos/amaabca/lita-animate/hooks","issue_events_url":"https://api.github.com/repos/amaabca/lita-animate/issues/events{/number}","events_url":"https://api.github.com/repos/amaabca/lita-animate/events","assignees_url":"https://api.github.com/repos/amaabca/lita-animate/assignees{/user}","branches_url":"https://api.github.com/repos/amaabca/lita-animate/branches{/branch}","tags_url":"https://api.github.com/repos/amaabca/lita-animate/tags","blobs_url":"https://api.github.com/repos/amaabca/lita-animate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amaabca/lita-animate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amaabca/lita-animate/git/refs{/sha}","trees_url":"https://api.github.com/repos/amaabca/lita-animate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amaabca/lita-animate/statuses/{sha}","languages_url":"https://api.github.com/repos/amaabca/lita-animate/languages","stargazers_url":"https://api.github.com/repos/amaabca/lita-animate/stargazers","contributors_url":"https://api.github.com/repos/amaabca/lita-animate/contributors","subscribers_url":"https://api.github.com/repos/amaabca/lita-animate/subscribers","subscription_url":"https://api.github.com/repos/amaabca/lita-animate/subscription","commits_url":"https://api.github.com/repos/amaabca/lita-animate/commits{/sha}","git_commits_url":"https://api.github.com/repos/amaabca/lita-animate/git/commits{/sha}","comments_url":"https://api.github.com/repos/amaabca/lita-animate/comments{/number}","issue_comment_url":"https://api.github.com/repos/amaabca/lita-animate/issues/comments{/number}","contents_url":"https://api.github.com/repos/amaabca/lita-animate/contents/{+path}","compare_url":"https://api.github.com/repos/amaabca/lita-animate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amaabca/lita-animate/merges","archive_url":"https://api.github.com/repos/amaabca/lita-animate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amaabca/lita-animate/downloads","issues_url":"https://api.github.com/repos/amaabca/lita-animate/issues{/number}","pulls_url":"https://api.github.com/repos/amaabca/lita-animate/pulls{/number}","milestones_url":"https://api.github.com/repos/amaabca/lita-animate/milestones{/number}","notifications_url":"https://api.github.com/repos/amaabca/lita-animate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amaabca/lita-animate/labels{/name}","releases_url":"https://api.github.com/repos/amaabca/lita-animate/releases{/id}","created_at":"2014-10-03T16:45:07Z","updated_at":"2014-10-03T17:41:15Z","pushed_at":"2015-10-23T18:19:26Z","git_url":"git://github.com/amaabca/lita-animate.git","ssh_url":"git@github.com:amaabca/lita-animate.git","clone_url":"https://github.com/amaabca/lita-animate.git","svn_url":"https://github.com/amaabca/lita-animate","homepage":"","size":126,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"amaabca:master","ref":"master","sha":"47bf01ec02c7848baaf2e4a6ed9e0db1a0c49dad","user":{"login":"amaabca","id":1038934,"avatar_url":"https://avatars.githubusercontent.com/u/1038934?v=3","gravatar_id":"","url":"https://api.github.com/users/amaabca","html_url":"https://github.com/amaabca","followers_url":"https://api.github.com/users/amaabca/followers","following_url":"https://api.github.com/users/amaabca/following{/other_user}","gists_url":"https://api.github.com/users/amaabca/gists{/gist_id}","starred_url":"https://api.github.com/users/amaabca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaabca/subscriptions","organizations_url":"https://api.github.com/users/amaabca/orgs","repos_url":"https://api.github.com/users/amaabca/repos","events_url":"https://api.github.com/users/amaabca/events{/privacy}","received_events_url":"https://api.github.com/users/amaabca/received_events","type":"Organization","site_admin":false},"repo":{"id":24765990,"name":"lita-animate","full_name":"amaabca/lita-animate","owner":{"login":"amaabca","id":1038934,"avatar_url":"https://avatars.githubusercontent.com/u/1038934?v=3","gravatar_id":"","url":"https://api.github.com/users/amaabca","html_url":"https://github.com/amaabca","followers_url":"https://api.github.com/users/amaabca/followers","following_url":"https://api.github.com/users/amaabca/following{/other_user}","gists_url":"https://api.github.com/users/amaabca/gists{/gist_id}","starred_url":"https://api.github.com/users/amaabca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaabca/subscriptions","organizations_url":"https://api.github.com/users/amaabca/orgs","repos_url":"https://api.github.com/users/amaabca/repos","events_url":"https://api.github.com/users/amaabca/events{/privacy}","received_events_url":"https://api.github.com/users/amaabca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amaabca/lita-animate","description":"Allows searching for animations with Lita","fork":true,"url":"https://api.github.com/repos/amaabca/lita-animate","forks_url":"https://api.github.com/repos/amaabca/lita-animate/forks","keys_url":"https://api.github.com/repos/amaabca/lita-animate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amaabca/lita-animate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amaabca/lita-animate/teams","hooks_url":"https://api.github.com/repos/amaabca/lita-animate/hooks","issue_events_url":"https://api.github.com/repos/amaabca/lita-animate/issues/events{/number}","events_url":"https://api.github.com/repos/amaabca/lita-animate/events","assignees_url":"https://api.github.com/repos/amaabca/lita-animate/assignees{/user}","branches_url":"https://api.github.com/repos/amaabca/lita-animate/branches{/branch}","tags_url":"https://api.github.com/repos/amaabca/lita-animate/tags","blobs_url":"https://api.github.com/repos/amaabca/lita-animate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amaabca/lita-animate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amaabca/lita-animate/git/refs{/sha}","trees_url":"https://api.github.com/repos/amaabca/lita-animate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amaabca/lita-animate/statuses/{sha}","languages_url":"https://api.github.com/repos/amaabca/lita-animate/languages","stargazers_url":"https://api.github.com/repos/amaabca/lita-animate/stargazers","contributors_url":"https://api.github.com/repos/amaabca/lita-animate/contributors","subscribers_url":"https://api.github.com/repos/amaabca/lita-animate/subscribers","subscription_url":"https://api.github.com/repos/amaabca/lita-animate/subscription","commits_url":"https://api.github.com/repos/amaabca/lita-animate/commits{/sha}","git_commits_url":"https://api.github.com/repos/amaabca/lita-animate/git/commits{/sha}","comments_url":"https://api.github.com/repos/amaabca/lita-animate/comments{/number}","issue_comment_url":"https://api.github.com/repos/amaabca/lita-animate/issues/comments{/number}","contents_url":"https://api.github.com/repos/amaabca/lita-animate/contents/{+path}","compare_url":"https://api.github.com/repos/amaabca/lita-animate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amaabca/lita-animate/merges","archive_url":"https://api.github.com/repos/amaabca/lita-animate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amaabca/lita-animate/downloads","issues_url":"https://api.github.com/repos/amaabca/lita-animate/issues{/number}","pulls_url":"https://api.github.com/repos/amaabca/lita-animate/pulls{/number}","milestones_url":"https://api.github.com/repos/amaabca/lita-animate/milestones{/number}","notifications_url":"https://api.github.com/repos/amaabca/lita-animate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amaabca/lita-animate/labels{/name}","releases_url":"https://api.github.com/repos/amaabca/lita-animate/releases{/id}","created_at":"2014-10-03T16:45:07Z","updated_at":"2014-10-03T17:41:15Z","pushed_at":"2015-10-23T18:19:26Z","git_url":"git://github.com/amaabca/lita-animate.git","ssh_url":"git@github.com:amaabca/lita-animate.git","clone_url":"https://github.com/amaabca/lita-animate.git","svn_url":"https://github.com/amaabca/lita-animate","homepage":"","size":126,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/2"},"html":{"href":"https://github.com/amaabca/lita-animate/pull/2"},"issue":{"href":"https://api.github.com/repos/amaabca/lita-animate/issues/2"},"comments":{"href":"https://api.github.com/repos/amaabca/lita-animate/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amaabca/lita-animate/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/amaabca/lita-animate/statuses/d0785806268872dc528ac6b24ee0a684482510a2"}}}}