{"action":"created","comment":{"url":"https://api.github.com/repos/capripot/markdown_videos/pulls/comments/56211753","id":56211753,"diff_hunk":"@@ -1,33 +1,21 @@\n module MarkdownVideos\n \n-  #\n-  # Supported services list\n-  #\n-  # regexp:         Regexp must capture in 1) title, 2) full url and 3) video id\n-  # markup:         HTML markup rendered with first %s being altertive text and second %s being the video URL (iFrame src)\n-  #                   and third %s being class attribute declaration location (make sure there is only one space after, not before)\n-  # url:            URL of service included in the markup, with first %s corresponding to video's ID\n-  # url_parameters: List of authorized URL parameters\n-  #\n+  # This file `require` the ServiceBase class\n+  # and all `_service` files present in services folder\n \n-  SERVICES = {\n+  require File.expand_path(\"../services/service_base\", __FILE__)","path":"lib/markdown_videos/services.rb","position":16,"original_position":16,"commit_id":"001b4601b6341b843b87ae1480e2243ec95acc28","original_commit_id":"001b4601b6341b843b87ae1480e2243ec95acc28","user":{"login":"niuage","id":208622,"avatar_url":"https://avatars.githubusercontent.com/u/208622?v=3","gravatar_id":"","url":"https://api.github.com/users/niuage","html_url":"https://github.com/niuage","followers_url":"https://api.github.com/users/niuage/followers","following_url":"https://api.github.com/users/niuage/following{/other_user}","gists_url":"https://api.github.com/users/niuage/gists{/gist_id}","starred_url":"https://api.github.com/users/niuage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niuage/subscriptions","organizations_url":"https://api.github.com/users/niuage/orgs","repos_url":"https://api.github.com/users/niuage/repos","events_url":"https://api.github.com/users/niuage/events{/privacy}","received_events_url":"https://api.github.com/users/niuage/received_events","type":"User","site_admin":false},"body":"Can you use `require_relative`?","created_at":"2016-03-15T18:05:44Z","updated_at":"2016-03-15T18:05:44Z","html_url":"https://github.com/capripot/markdown_videos/pull/2#discussion_r56211753","pull_request_url":"https://api.github.com/repos/capripot/markdown_videos/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/capripot/markdown_videos/pulls/comments/56211753"},"html":{"href":"https://github.com/capripot/markdown_videos/pull/2#discussion_r56211753"},"pull_request":{"href":"https://api.github.com/repos/capripot/markdown_videos/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/capripot/markdown_videos/pulls/2","id":62835067,"html_url":"https://github.com/capripot/markdown_videos/pull/2","diff_url":"https://github.com/capripot/markdown_videos/pull/2.diff","patch_url":"https://github.com/capripot/markdown_videos/pull/2.patch","issue_url":"https://api.github.com/repos/capripot/markdown_videos/issues/2","number":2,"state":"open","locked":false,"title":"Classier implementation","user":{"login":"capripot","id":190479,"avatar_url":"https://avatars.githubusercontent.com/u/190479?v=3","gravatar_id":"","url":"https://api.github.com/users/capripot","html_url":"https://github.com/capripot","followers_url":"https://api.github.com/users/capripot/followers","following_url":"https://api.github.com/users/capripot/following{/other_user}","gists_url":"https://api.github.com/users/capripot/gists{/gist_id}","starred_url":"https://api.github.com/users/capripot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capripot/subscriptions","organizations_url":"https://api.github.com/users/capripot/orgs","repos_url":"https://api.github.com/users/capripot/repos","events_url":"https://api.github.com/users/capripot/events{/privacy}","received_events_url":"https://api.github.com/users/capripot/received_events","type":"User","site_admin":false},"body":"Better implementation of service concept. Gives ability to extend the renderer easily.","created_at":"2016-03-14T23:42:44Z","updated_at":"2016-03-15T18:05:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7433bbfb1e03ec1712d78f6e320b41968d9fdce1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/capripot/markdown_videos/pulls/2/commits","review_comments_url":"https://api.github.com/repos/capripot/markdown_videos/pulls/2/comments","review_comment_url":"https://api.github.com/repos/capripot/markdown_videos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/capripot/markdown_videos/issues/2/comments","statuses_url":"https://api.github.com/repos/capripot/markdown_videos/statuses/001b4601b6341b843b87ae1480e2243ec95acc28","head":{"label":"capripot:classier_implementation","ref":"classier_implementation","sha":"001b4601b6341b843b87ae1480e2243ec95acc28","user":{"login":"capripot","id":190479,"avatar_url":"https://avatars.githubusercontent.com/u/190479?v=3","gravatar_id":"","url":"https://api.github.com/users/capripot","html_url":"https://github.com/capripot","followers_url":"https://api.github.com/users/capripot/followers","following_url":"https://api.github.com/users/capripot/following{/other_user}","gists_url":"https://api.github.com/users/capripot/gists{/gist_id}","starred_url":"https://api.github.com/users/capripot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capripot/subscriptions","organizations_url":"https://api.github.com/users/capripot/orgs","repos_url":"https://api.github.com/users/capripot/repos","events_url":"https://api.github.com/users/capripot/events{/privacy}","received_events_url":"https://api.github.com/users/capripot/received_events","type":"User","site_admin":false},"repo":{"id":53816873,"name":"markdown_videos","full_name":"capripot/markdown_videos","owner":{"login":"capripot","id":190479,"avatar_url":"https://avatars.githubusercontent.com/u/190479?v=3","gravatar_id":"","url":"https://api.github.com/users/capripot","html_url":"https://github.com/capripot","followers_url":"https://api.github.com/users/capripot/followers","following_url":"https://api.github.com/users/capripot/following{/other_user}","gists_url":"https://api.github.com/users/capripot/gists{/gist_id}","starred_url":"https://api.github.com/users/capripot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capripot/subscriptions","organizations_url":"https://api.github.com/users/capripot/orgs","repos_url":"https://api.github.com/users/capripot/repos","events_url":"https://api.github.com/users/capripot/events{/privacy}","received_events_url":"https://api.github.com/users/capripot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/capripot/markdown_videos","description":"","fork":false,"url":"https://api.github.com/repos/capripot/markdown_videos","forks_url":"https://api.github.com/repos/capripot/markdown_videos/forks","keys_url":"https://api.github.com/repos/capripot/markdown_videos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capripot/markdown_videos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capripot/markdown_videos/teams","hooks_url":"https://api.github.com/repos/capripot/markdown_videos/hooks","issue_events_url":"https://api.github.com/repos/capripot/markdown_videos/issues/events{/number}","events_url":"https://api.github.com/repos/capripot/markdown_videos/events","assignees_url":"https://api.github.com/repos/capripot/markdown_videos/assignees{/user}","branches_url":"https://api.github.com/repos/capripot/markdown_videos/branches{/branch}","tags_url":"https://api.github.com/repos/capripot/markdown_videos/tags","blobs_url":"https://api.github.com/repos/capripot/markdown_videos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capripot/markdown_videos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capripot/markdown_videos/git/refs{/sha}","trees_url":"https://api.github.com/repos/capripot/markdown_videos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capripot/markdown_videos/statuses/{sha}","languages_url":"https://api.github.com/repos/capripot/markdown_videos/languages","stargazers_url":"https://api.github.com/repos/capripot/markdown_videos/stargazers","contributors_url":"https://api.github.com/repos/capripot/markdown_videos/contributors","subscribers_url":"https://api.github.com/repos/capripot/markdown_videos/subscribers","subscription_url":"https://api.github.com/repos/capripot/markdown_videos/subscription","commits_url":"https://api.github.com/repos/capripot/markdown_videos/commits{/sha}","git_commits_url":"https://api.github.com/repos/capripot/markdown_videos/git/commits{/sha}","comments_url":"https://api.github.com/repos/capripot/markdown_videos/comments{/number}","issue_comment_url":"https://api.github.com/repos/capripot/markdown_videos/issues/comments{/number}","contents_url":"https://api.github.com/repos/capripot/markdown_videos/contents/{+path}","compare_url":"https://api.github.com/repos/capripot/markdown_videos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capripot/markdown_videos/merges","archive_url":"https://api.github.com/repos/capripot/markdown_videos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capripot/markdown_videos/downloads","issues_url":"https://api.github.com/repos/capripot/markdown_videos/issues{/number}","pulls_url":"https://api.github.com/repos/capripot/markdown_videos/pulls{/number}","milestones_url":"https://api.github.com/repos/capripot/markdown_videos/milestones{/number}","notifications_url":"https://api.github.com/repos/capripot/markdown_videos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capripot/markdown_videos/labels{/name}","releases_url":"https://api.github.com/repos/capripot/markdown_videos/releases{/id}","deployments_url":"https://api.github.com/repos/capripot/markdown_videos/deployments","created_at":"2016-03-14T01:09:11Z","updated_at":"2016-03-14T01:13:57Z","pushed_at":"2016-03-14T23:42:45Z","git_url":"git://github.com/capripot/markdown_videos.git","ssh_url":"git@github.com:capripot/markdown_videos.git","clone_url":"https://github.com/capripot/markdown_videos.git","svn_url":"https://github.com/capripot/markdown_videos","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"capripot:master","ref":"master","sha":"11de8293276d8154369df8121859528b674911c0","user":{"login":"capripot","id":190479,"avatar_url":"https://avatars.githubusercontent.com/u/190479?v=3","gravatar_id":"","url":"https://api.github.com/users/capripot","html_url":"https://github.com/capripot","followers_url":"https://api.github.com/users/capripot/followers","following_url":"https://api.github.com/users/capripot/following{/other_user}","gists_url":"https://api.github.com/users/capripot/gists{/gist_id}","starred_url":"https://api.github.com/users/capripot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capripot/subscriptions","organizations_url":"https://api.github.com/users/capripot/orgs","repos_url":"https://api.github.com/users/capripot/repos","events_url":"https://api.github.com/users/capripot/events{/privacy}","received_events_url":"https://api.github.com/users/capripot/received_events","type":"User","site_admin":false},"repo":{"id":53816873,"name":"markdown_videos","full_name":"capripot/markdown_videos","owner":{"login":"capripot","id":190479,"avatar_url":"https://avatars.githubusercontent.com/u/190479?v=3","gravatar_id":"","url":"https://api.github.com/users/capripot","html_url":"https://github.com/capripot","followers_url":"https://api.github.com/users/capripot/followers","following_url":"https://api.github.com/users/capripot/following{/other_user}","gists_url":"https://api.github.com/users/capripot/gists{/gist_id}","starred_url":"https://api.github.com/users/capripot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capripot/subscriptions","organizations_url":"https://api.github.com/users/capripot/orgs","repos_url":"https://api.github.com/users/capripot/repos","events_url":"https://api.github.com/users/capripot/events{/privacy}","received_events_url":"https://api.github.com/users/capripot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/capripot/markdown_videos","description":"","fork":false,"url":"https://api.github.com/repos/capripot/markdown_videos","forks_url":"https://api.github.com/repos/capripot/markdown_videos/forks","keys_url":"https://api.github.com/repos/capripot/markdown_videos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capripot/markdown_videos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capripot/markdown_videos/teams","hooks_url":"https://api.github.com/repos/capripot/markdown_videos/hooks","issue_events_url":"https://api.github.com/repos/capripot/markdown_videos/issues/events{/number}","events_url":"https://api.github.com/repos/capripot/markdown_videos/events","assignees_url":"https://api.github.com/repos/capripot/markdown_videos/assignees{/user}","branches_url":"https://api.github.com/repos/capripot/markdown_videos/branches{/branch}","tags_url":"https://api.github.com/repos/capripot/markdown_videos/tags","blobs_url":"https://api.github.com/repos/capripot/markdown_videos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capripot/markdown_videos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capripot/markdown_videos/git/refs{/sha}","trees_url":"https://api.github.com/repos/capripot/markdown_videos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capripot/markdown_videos/statuses/{sha}","languages_url":"https://api.github.com/repos/capripot/markdown_videos/languages","stargazers_url":"https://api.github.com/repos/capripot/markdown_videos/stargazers","contributors_url":"https://api.github.com/repos/capripot/markdown_videos/contributors","subscribers_url":"https://api.github.com/repos/capripot/markdown_videos/subscribers","subscription_url":"https://api.github.com/repos/capripot/markdown_videos/subscription","commits_url":"https://api.github.com/repos/capripot/markdown_videos/commits{/sha}","git_commits_url":"https://api.github.com/repos/capripot/markdown_videos/git/commits{/sha}","comments_url":"https://api.github.com/repos/capripot/markdown_videos/comments{/number}","issue_comment_url":"https://api.github.com/repos/capripot/markdown_videos/issues/comments{/number}","contents_url":"https://api.github.com/repos/capripot/markdown_videos/contents/{+path}","compare_url":"https://api.github.com/repos/capripot/markdown_videos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capripot/markdown_videos/merges","archive_url":"https://api.github.com/repos/capripot/markdown_videos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capripot/markdown_videos/downloads","issues_url":"https://api.github.com/repos/capripot/markdown_videos/issues{/number}","pulls_url":"https://api.github.com/repos/capripot/markdown_videos/pulls{/number}","milestones_url":"https://api.github.com/repos/capripot/markdown_videos/milestones{/number}","notifications_url":"https://api.github.com/repos/capripot/markdown_videos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capripot/markdown_videos/labels{/name}","releases_url":"https://api.github.com/repos/capripot/markdown_videos/releases{/id}","deployments_url":"https://api.github.com/repos/capripot/markdown_videos/deployments","created_at":"2016-03-14T01:09:11Z","updated_at":"2016-03-14T01:13:57Z","pushed_at":"2016-03-14T23:42:45Z","git_url":"git://github.com/capripot/markdown_videos.git","ssh_url":"git@github.com:capripot/markdown_videos.git","clone_url":"https://github.com/capripot/markdown_videos.git","svn_url":"https://github.com/capripot/markdown_videos","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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/capripot/markdown_videos/pulls/2"},"html":{"href":"https://github.com/capripot/markdown_videos/pull/2"},"issue":{"href":"https://api.github.com/repos/capripot/markdown_videos/issues/2"},"comments":{"href":"https://api.github.com/repos/capripot/markdown_videos/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/capripot/markdown_videos/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/capripot/markdown_videos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/capripot/markdown_videos/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/capripot/markdown_videos/statuses/001b4601b6341b843b87ae1480e2243ec95acc28"}}}}