{"action":"created","comment":{"url":"https://api.github.com/repos/solid/node-solid-server/pulls/comments/74171582","id":74171582,"diff_hunk":"@@ -0,0 +1,230 @@\n+'use strict'\n+\n+const async = require('async')\n+const path = require('path')\n+const url = require('url')\n+\n+const DEFAULT_ACL_SUFFIX = '.acl'\n+\n+class ACLChecker {\n+  constructor (options = {}) {\n+    this.debug = options.debug || console.log","path":"lib/acl-checker.js","position":11,"original_position":11,"commit_id":"1d1353a8eb58b763456235fa44e5e4ed140a3594","original_commit_id":"1d1353a8eb58b763456235fa44e5e4ed140a3594","user":{"login":"nicola","id":1424850,"avatar_url":"https://avatars.githubusercontent.com/u/1424850?v=3","gravatar_id":"","url":"https://api.github.com/users/nicola","html_url":"https://github.com/nicola","followers_url":"https://api.github.com/users/nicola/followers","following_url":"https://api.github.com/users/nicola/following{/other_user}","gists_url":"https://api.github.com/users/nicola/gists{/gist_id}","starred_url":"https://api.github.com/users/nicola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicola/subscriptions","organizations_url":"https://api.github.com/users/nicola/orgs","repos_url":"https://api.github.com/users/nicola/repos","events_url":"https://api.github.com/users/nicola/events{/privacy}","received_events_url":"https://api.github.com/users/nicola/received_events","type":"User","site_admin":false},"body":"console.log would not work, this should be console.log.bind(console)","created_at":"2016-08-10T01:05:22Z","updated_at":"2016-08-10T01:05:22Z","html_url":"https://github.com/solid/node-solid-server/pull/428#discussion_r74171582","pull_request_url":"https://api.github.com/repos/solid/node-solid-server/pulls/428","_links":{"self":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/comments/74171582"},"html":{"href":"https://github.com/solid/node-solid-server/pull/428#discussion_r74171582"},"pull_request":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/428"}}},"pull_request":{"url":"https://api.github.com/repos/solid/node-solid-server/pulls/428","id":80685103,"html_url":"https://github.com/solid/node-solid-server/pull/428","diff_url":"https://github.com/solid/node-solid-server/pull/428.diff","patch_url":"https://github.com/solid/node-solid-server/pull/428.patch","issue_url":"https://api.github.com/repos/solid/node-solid-server/issues/428","number":428,"state":"open","locked":false,"title":"Refactor acl.js to prep for external solid-permissions lib","user":{"login":"dmitrizagidulin","id":947005,"avatar_url":"https://avatars.githubusercontent.com/u/947005?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrizagidulin","html_url":"https://github.com/dmitrizagidulin","followers_url":"https://api.github.com/users/dmitrizagidulin/followers","following_url":"https://api.github.com/users/dmitrizagidulin/following{/other_user}","gists_url":"https://api.github.com/users/dmitrizagidulin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrizagidulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrizagidulin/subscriptions","organizations_url":"https://api.github.com/users/dmitrizagidulin/orgs","repos_url":"https://api.github.com/users/dmitrizagidulin/repos","events_url":"https://api.github.com/users/dmitrizagidulin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrizagidulin/received_events","type":"User","site_admin":false},"body":"- Move `lib/acl.js`/`allow()` handler to `lib/handlers/allow`\n- Extract ACL class to `lib/acl-checker.js` (convert to es6)\n- Remove S() usage (use native String functions instead)\n- Pass in the debug() logger as a dependency injection for ACLChecker\n- Use new rdflib graph.match() natively","created_at":"2016-08-09T20:04:40Z","updated_at":"2016-08-10T01:05:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad33d07880f52fc114c3b53fdd35ca7d0b81d55d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/solid/node-solid-server/pulls/428/commits","review_comments_url":"https://api.github.com/repos/solid/node-solid-server/pulls/428/comments","review_comment_url":"https://api.github.com/repos/solid/node-solid-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solid/node-solid-server/issues/428/comments","statuses_url":"https://api.github.com/repos/solid/node-solid-server/statuses/1d1353a8eb58b763456235fa44e5e4ed140a3594","head":{"label":"solid:dz_refactor_acl","ref":"dz_refactor_acl","sha":"1d1353a8eb58b763456235fa44e5e4ed140a3594","user":{"login":"solid","id":14262490,"avatar_url":"https://avatars.githubusercontent.com/u/14262490?v=3","gravatar_id":"","url":"https://api.github.com/users/solid","html_url":"https://github.com/solid","followers_url":"https://api.github.com/users/solid/followers","following_url":"https://api.github.com/users/solid/following{/other_user}","gists_url":"https://api.github.com/users/solid/gists{/gist_id}","starred_url":"https://api.github.com/users/solid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solid/subscriptions","organizations_url":"https://api.github.com/users/solid/orgs","repos_url":"https://api.github.com/users/solid/repos","events_url":"https://api.github.com/users/solid/events{/privacy}","received_events_url":"https://api.github.com/users/solid/received_events","type":"Organization","site_admin":false},"repo":{"id":24306004,"name":"node-solid-server","full_name":"solid/node-solid-server","owner":{"login":"solid","id":14262490,"avatar_url":"https://avatars.githubusercontent.com/u/14262490?v=3","gravatar_id":"","url":"https://api.github.com/users/solid","html_url":"https://github.com/solid","followers_url":"https://api.github.com/users/solid/followers","following_url":"https://api.github.com/users/solid/following{/other_user}","gists_url":"https://api.github.com/users/solid/gists{/gist_id}","starred_url":"https://api.github.com/users/solid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solid/subscriptions","organizations_url":"https://api.github.com/users/solid/orgs","repos_url":"https://api.github.com/users/solid/repos","events_url":"https://api.github.com/users/solid/events{/privacy}","received_events_url":"https://api.github.com/users/solid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solid/node-solid-server","description":"Solid server on top of the file-system in NodeJS","fork":false,"url":"https://api.github.com/repos/solid/node-solid-server","forks_url":"https://api.github.com/repos/solid/node-solid-server/forks","keys_url":"https://api.github.com/repos/solid/node-solid-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solid/node-solid-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solid/node-solid-server/teams","hooks_url":"https://api.github.com/repos/solid/node-solid-server/hooks","issue_events_url":"https://api.github.com/repos/solid/node-solid-server/issues/events{/number}","events_url":"https://api.github.com/repos/solid/node-solid-server/events","assignees_url":"https://api.github.com/repos/solid/node-solid-server/assignees{/user}","branches_url":"https://api.github.com/repos/solid/node-solid-server/branches{/branch}","tags_url":"https://api.github.com/repos/solid/node-solid-server/tags","blobs_url":"https://api.github.com/repos/solid/node-solid-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solid/node-solid-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solid/node-solid-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/solid/node-solid-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solid/node-solid-server/statuses/{sha}","languages_url":"https://api.github.com/repos/solid/node-solid-server/languages","stargazers_url":"https://api.github.com/repos/solid/node-solid-server/stargazers","contributors_url":"https://api.github.com/repos/solid/node-solid-server/contributors","subscribers_url":"https://api.github.com/repos/solid/node-solid-server/subscribers","subscription_url":"https://api.github.com/repos/solid/node-solid-server/subscription","commits_url":"https://api.github.com/repos/solid/node-solid-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/solid/node-solid-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/solid/node-solid-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/solid/node-solid-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/solid/node-solid-server/contents/{+path}","compare_url":"https://api.github.com/repos/solid/node-solid-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solid/node-solid-server/merges","archive_url":"https://api.github.com/repos/solid/node-solid-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solid/node-solid-server/downloads","issues_url":"https://api.github.com/repos/solid/node-solid-server/issues{/number}","pulls_url":"https://api.github.com/repos/solid/node-solid-server/pulls{/number}","milestones_url":"https://api.github.com/repos/solid/node-solid-server/milestones{/number}","notifications_url":"https://api.github.com/repos/solid/node-solid-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solid/node-solid-server/labels{/name}","releases_url":"https://api.github.com/repos/solid/node-solid-server/releases{/id}","deployments_url":"https://api.github.com/repos/solid/node-solid-server/deployments","created_at":"2014-09-21T22:05:03Z","updated_at":"2016-08-08T17:12:14Z","pushed_at":"2016-08-09T20:04:40Z","git_url":"git://github.com/solid/node-solid-server.git","ssh_url":"git@github.com:solid/node-solid-server.git","clone_url":"https://github.com/solid/node-solid-server.git","svn_url":"https://github.com/solid/node-solid-server","homepage":"https://solid.mit.edu/","size":1233,"stargazers_count":84,"watchers_count":84,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":54,"forks":30,"open_issues":54,"watchers":84,"default_branch":"master"}},"base":{"label":"solid:master","ref":"master","sha":"3227b911bf107fd41420042c0286e4b08c584872","user":{"login":"solid","id":14262490,"avatar_url":"https://avatars.githubusercontent.com/u/14262490?v=3","gravatar_id":"","url":"https://api.github.com/users/solid","html_url":"https://github.com/solid","followers_url":"https://api.github.com/users/solid/followers","following_url":"https://api.github.com/users/solid/following{/other_user}","gists_url":"https://api.github.com/users/solid/gists{/gist_id}","starred_url":"https://api.github.com/users/solid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solid/subscriptions","organizations_url":"https://api.github.com/users/solid/orgs","repos_url":"https://api.github.com/users/solid/repos","events_url":"https://api.github.com/users/solid/events{/privacy}","received_events_url":"https://api.github.com/users/solid/received_events","type":"Organization","site_admin":false},"repo":{"id":24306004,"name":"node-solid-server","full_name":"solid/node-solid-server","owner":{"login":"solid","id":14262490,"avatar_url":"https://avatars.githubusercontent.com/u/14262490?v=3","gravatar_id":"","url":"https://api.github.com/users/solid","html_url":"https://github.com/solid","followers_url":"https://api.github.com/users/solid/followers","following_url":"https://api.github.com/users/solid/following{/other_user}","gists_url":"https://api.github.com/users/solid/gists{/gist_id}","starred_url":"https://api.github.com/users/solid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solid/subscriptions","organizations_url":"https://api.github.com/users/solid/orgs","repos_url":"https://api.github.com/users/solid/repos","events_url":"https://api.github.com/users/solid/events{/privacy}","received_events_url":"https://api.github.com/users/solid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solid/node-solid-server","description":"Solid server on top of the file-system in NodeJS","fork":false,"url":"https://api.github.com/repos/solid/node-solid-server","forks_url":"https://api.github.com/repos/solid/node-solid-server/forks","keys_url":"https://api.github.com/repos/solid/node-solid-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solid/node-solid-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solid/node-solid-server/teams","hooks_url":"https://api.github.com/repos/solid/node-solid-server/hooks","issue_events_url":"https://api.github.com/repos/solid/node-solid-server/issues/events{/number}","events_url":"https://api.github.com/repos/solid/node-solid-server/events","assignees_url":"https://api.github.com/repos/solid/node-solid-server/assignees{/user}","branches_url":"https://api.github.com/repos/solid/node-solid-server/branches{/branch}","tags_url":"https://api.github.com/repos/solid/node-solid-server/tags","blobs_url":"https://api.github.com/repos/solid/node-solid-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solid/node-solid-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solid/node-solid-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/solid/node-solid-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solid/node-solid-server/statuses/{sha}","languages_url":"https://api.github.com/repos/solid/node-solid-server/languages","stargazers_url":"https://api.github.com/repos/solid/node-solid-server/stargazers","contributors_url":"https://api.github.com/repos/solid/node-solid-server/contributors","subscribers_url":"https://api.github.com/repos/solid/node-solid-server/subscribers","subscription_url":"https://api.github.com/repos/solid/node-solid-server/subscription","commits_url":"https://api.github.com/repos/solid/node-solid-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/solid/node-solid-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/solid/node-solid-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/solid/node-solid-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/solid/node-solid-server/contents/{+path}","compare_url":"https://api.github.com/repos/solid/node-solid-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solid/node-solid-server/merges","archive_url":"https://api.github.com/repos/solid/node-solid-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solid/node-solid-server/downloads","issues_url":"https://api.github.com/repos/solid/node-solid-server/issues{/number}","pulls_url":"https://api.github.com/repos/solid/node-solid-server/pulls{/number}","milestones_url":"https://api.github.com/repos/solid/node-solid-server/milestones{/number}","notifications_url":"https://api.github.com/repos/solid/node-solid-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solid/node-solid-server/labels{/name}","releases_url":"https://api.github.com/repos/solid/node-solid-server/releases{/id}","deployments_url":"https://api.github.com/repos/solid/node-solid-server/deployments","created_at":"2014-09-21T22:05:03Z","updated_at":"2016-08-08T17:12:14Z","pushed_at":"2016-08-09T20:04:40Z","git_url":"git://github.com/solid/node-solid-server.git","ssh_url":"git@github.com:solid/node-solid-server.git","clone_url":"https://github.com/solid/node-solid-server.git","svn_url":"https://github.com/solid/node-solid-server","homepage":"https://solid.mit.edu/","size":1233,"stargazers_count":84,"watchers_count":84,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":54,"forks":30,"open_issues":54,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/428"},"html":{"href":"https://github.com/solid/node-solid-server/pull/428"},"issue":{"href":"https://api.github.com/repos/solid/node-solid-server/issues/428"},"comments":{"href":"https://api.github.com/repos/solid/node-solid-server/issues/428/comments"},"review_comments":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/428/comments"},"review_comment":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solid/node-solid-server/pulls/428/commits"},"statuses":{"href":"https://api.github.com/repos/solid/node-solid-server/statuses/1d1353a8eb58b763456235fa44e5e4ed140a3594"}}}}
{"actor":{"display_login":"nicola"}}