GitHub PullRequestReviewCommentEvent at 2014-09-27 04:55:20
Repository: film_snob
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/comments/18121978","id":18121978,"diff_hunk":"@@ -0,0 +1,44 @@\n+require \"film_snob/coub\"\n+require \"film_snob/funny_or_die\"\n+require \"film_snob/hulu\"\n+require \"film_snob/instagram\"\n+require \"film_snob/vimeo\"\n+require \"film_snob/youtube\"\n+require \"film_snob/dailymotion\"\n+\n+class FilmSnob\n+  class UrlToVideo\n+\n+    VIDEO_SITES = [\n+      Vimeo,\n+      YouTube,\n+      Hulu,\n+      FunnyOrDie,\n+      Coub,\n+      Dailymotion,\n+      Instagram\n+    ]\n+\n+    attr_reader :url, :options\n+\n+    def initialize(url, options)\n+      @url = url\n+      @options = options\n+    end\n+\n+    def video\n+      site.nil?? nil : site.new(url, options)\n+    end\n+\n+    private\n+\n+      def site\n+        @site ||= VIDEO_SITES.find do |site|","path":"lib/film_snob/url_to_video.rb","position":36,"original_position":36,"commit_id":"ec98affefb6aa9e033c178f1ac87af3092e06e9c","original_commit_id":"ec98affefb6aa9e033c178f1ac87af3092e06e9c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer `detect` over `find`.","created_at":"2014-09-27T04:55:20Z","updated_at":"2014-09-27T04:55:20Z","html_url":"https://github.com/maxjacobson/film_snob/pull/47#discussion_r18121978","pull_request_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/comments/18121978"},"html":{"href":"https://github.com/maxjacobson/film_snob/pull/47#discussion_r18121978"},"pull_request":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47","id":21885952,"html_url":"https://github.com/maxjacobson/film_snob/pull/47","diff_url":"https://github.com/maxjacobson/film_snob/pull/47.diff","patch_url":"https://github.com/maxjacobson/film_snob/pull/47.patch","issue_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/47","number":47,"state":"open","locked":false,"title":"SOOTHE THAT BURN","user":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=2","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-27T04:55:13Z","updated_at":"2014-09-27T04:55:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e8d5f76c7920b97d81ff2da45ab252380df0776","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47/commits","review_comments_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47/comments","review_comment_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls/comments/{number}","comments_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/47/comments","statuses_url":"https://api.github.com/repos/maxjacobson/film_snob/statuses/ec98affefb6aa9e033c178f1ac87af3092e06e9c","head":{"label":"maxjacobson:hound-it-back-up","ref":"hound-it-back-up","sha":"ec98affefb6aa9e033c178f1ac87af3092e06e9c","user":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=2","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"repo":{"id":18712601,"name":"film_snob","full_name":"maxjacobson/film_snob","owner":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=2","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxjacobson/film_snob","description":"video site URL parser and embed code fetcher","fork":false,"url":"https://api.github.com/repos/maxjacobson/film_snob","forks_url":"https://api.github.com/repos/maxjacobson/film_snob/forks","keys_url":"https://api.github.com/repos/maxjacobson/film_snob/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxjacobson/film_snob/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxjacobson/film_snob/teams","hooks_url":"https://api.github.com/repos/maxjacobson/film_snob/hooks","issue_events_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/events{/number}","events_url":"https://api.github.com/repos/maxjacobson/film_snob/events","assignees_url":"https://api.github.com/repos/maxjacobson/film_snob/assignees{/user}","branches_url":"https://api.github.com/repos/maxjacobson/film_snob/branches{/branch}","tags_url":"https://api.github.com/repos/maxjacobson/film_snob/tags","blobs_url":"https://api.github.com/repos/maxjacobson/film_snob/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxjacobson/film_snob/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxjacobson/film_snob/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxjacobson/film_snob/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxjacobson/film_snob/statuses/{sha}","languages_url":"https://api.github.com/repos/maxjacobson/film_snob/languages","stargazers_url":"https://api.github.com/repos/maxjacobson/film_snob/stargazers","contributors_url":"https://api.github.com/repos/maxjacobson/film_snob/contributors","subscribers_url":"https://api.github.com/repos/maxjacobson/film_snob/subscribers","subscription_url":"https://api.github.com/repos/maxjacobson/film_snob/subscription","commits_url":"https://api.github.com/repos/maxjacobson/film_snob/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxjacobson/film_snob/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxjacobson/film_snob/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/comments/{number}","contents_url":"https://api.github.com/repos/maxjacobson/film_snob/contents/{+path}","compare_url":"https://api.github.com/repos/maxjacobson/film_snob/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxjacobson/film_snob/merges","archive_url":"https://api.github.com/repos/maxjacobson/film_snob/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxjacobson/film_snob/downloads","issues_url":"https://api.github.com/repos/maxjacobson/film_snob/issues{/number}","pulls_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls{/number}","milestones_url":"https://api.github.com/repos/maxjacobson/film_snob/milestones{/number}","notifications_url":"https://api.github.com/repos/maxjacobson/film_snob/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxjacobson/film_snob/labels{/name}","releases_url":"https://api.github.com/repos/maxjacobson/film_snob/releases{/id}","created_at":"2014-04-12T19:25:33Z","updated_at":"2014-07-09T13:30:24Z","pushed_at":"2014-09-27T04:54:07Z","git_url":"git://github.com/maxjacobson/film_snob.git","ssh_url":"git@github.com:maxjacobson/film_snob.git","clone_url":"https://github.com/maxjacobson/film_snob.git","svn_url":"https://github.com/maxjacobson/film_snob","homepage":"https://rubygems.org/gems/film_snob","size":1151,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":5,"default_branch":"master"}},"base":{"label":"maxjacobson:hound-it-up","ref":"hound-it-up","sha":"30cc5f027084886849a0c23b069fa279ce6a9a32","user":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=2","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"repo":{"id":18712601,"name":"film_snob","full_name":"maxjacobson/film_snob","owner":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=2","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxjacobson/film_snob","description":"video site URL parser and embed code fetcher","fork":false,"url":"https://api.github.com/repos/maxjacobson/film_snob","forks_url":"https://api.github.com/repos/maxjacobson/film_snob/forks","keys_url":"https://api.github.com/repos/maxjacobson/film_snob/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxjacobson/film_snob/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxjacobson/film_snob/teams","hooks_url":"https://api.github.com/repos/maxjacobson/film_snob/hooks","issue_events_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/events{/number}","events_url":"https://api.github.com/repos/maxjacobson/film_snob/events","assignees_url":"https://api.github.com/repos/maxjacobson/film_snob/assignees{/user}","branches_url":"https://api.github.com/repos/maxjacobson/film_snob/branches{/branch}","tags_url":"https://api.github.com/repos/maxjacobson/film_snob/tags","blobs_url":"https://api.github.com/repos/maxjacobson/film_snob/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxjacobson/film_snob/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxjacobson/film_snob/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxjacobson/film_snob/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxjacobson/film_snob/statuses/{sha}","languages_url":"https://api.github.com/repos/maxjacobson/film_snob/languages","stargazers_url":"https://api.github.com/repos/maxjacobson/film_snob/stargazers","contributors_url":"https://api.github.com/repos/maxjacobson/film_snob/contributors","subscribers_url":"https://api.github.com/repos/maxjacobson/film_snob/subscribers","subscription_url":"https://api.github.com/repos/maxjacobson/film_snob/subscription","commits_url":"https://api.github.com/repos/maxjacobson/film_snob/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxjacobson/film_snob/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxjacobson/film_snob/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxjacobson/film_snob/issues/comments/{number}","contents_url":"https://api.github.com/repos/maxjacobson/film_snob/contents/{+path}","compare_url":"https://api.github.com/repos/maxjacobson/film_snob/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxjacobson/film_snob/merges","archive_url":"https://api.github.com/repos/maxjacobson/film_snob/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxjacobson/film_snob/downloads","issues_url":"https://api.github.com/repos/maxjacobson/film_snob/issues{/number}","pulls_url":"https://api.github.com/repos/maxjacobson/film_snob/pulls{/number}","milestones_url":"https://api.github.com/repos/maxjacobson/film_snob/milestones{/number}","notifications_url":"https://api.github.com/repos/maxjacobson/film_snob/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxjacobson/film_snob/labels{/name}","releases_url":"https://api.github.com/repos/maxjacobson/film_snob/releases{/id}","created_at":"2014-04-12T19:25:33Z","updated_at":"2014-07-09T13:30:24Z","pushed_at":"2014-09-27T04:54:07Z","git_url":"git://github.com/maxjacobson/film_snob.git","ssh_url":"git@github.com:maxjacobson/film_snob.git","clone_url":"https://github.com/maxjacobson/film_snob.git","svn_url":"https://github.com/maxjacobson/film_snob","homepage":"https://rubygems.org/gems/film_snob","size":1151,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47"},"html":{"href":"https://github.com/maxjacobson/film_snob/pull/47"},"issue":{"href":"https://api.github.com/repos/maxjacobson/film_snob/issues/47"},"comments":{"href":"https://api.github.com/repos/maxjacobson/film_snob/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/maxjacobson/film_snob/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/maxjacobson/film_snob/statuses/ec98affefb6aa9e033c178f1ac87af3092e06e9c"}}}}