{"action":"created","comment":{"url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/comments/44868003","id":44868003,"diff_hunk":"@@ -0,0 +1,99 @@\n+if module?\n+  global._ = require('lodash')\n+  global.Logger = require('./logger.coffee')\n+  global.DependencyGraph = require('dependencies-online')\n+\n+(() ->\n+  class PluginDatabaseAccess\n+    constructor: (@data, @pluginName) ->\n+\n+    getVersion: () ->\n+      @data.store.getPluginVersion @pluginName\n+    setVersion: (version) ->\n+      @data.store.setPluginVersion @pluginName, version\n+    setRowData: (row, args...) ->\n+      if args.length == 1\n+        [key, [data]] = ['data', args]\n+      else if args.length == 2\n+        [key, data] = args","path":"assets/js/plugins.coffee","position":18,"original_position":18,"commit_id":"797d20c36466617db480e0a6cbd1731621a1540d","original_commit_id":"797d20c36466617db480e0a6cbd1731621a1540d","user":{"login":"WuTheFWasThat","id":1479648,"avatar_url":"https://avatars.githubusercontent.com/u/1479648?v=3","gravatar_id":"","url":"https://api.github.com/users/WuTheFWasThat","html_url":"https://github.com/WuTheFWasThat","followers_url":"https://api.github.com/users/WuTheFWasThat/followers","following_url":"https://api.github.com/users/WuTheFWasThat/following{/other_user}","gists_url":"https://api.github.com/users/WuTheFWasThat/gists{/gist_id}","starred_url":"https://api.github.com/users/WuTheFWasThat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuTheFWasThat/subscriptions","organizations_url":"https://api.github.com/users/WuTheFWasThat/orgs","repos_url":"https://api.github.com/users/WuTheFWasThat/repos","events_url":"https://api.github.com/users/WuTheFWasThat/events{/privacy}","received_events_url":"https://api.github.com/users/WuTheFWasThat/received_events","type":"User","site_admin":false},"body":"perhaps \r\nelse throw exception","created_at":"2015-11-15T06:17:12Z","updated_at":"2015-11-15T06:17:12Z","html_url":"https://github.com/WuTheFWasThat/vimflowy/pull/95#discussion_r44868003","pull_request_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/comments/44868003"},"html":{"href":"https://github.com/WuTheFWasThat/vimflowy/pull/95#discussion_r44868003"},"pull_request":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95","id":49634441,"html_url":"https://github.com/WuTheFWasThat/vimflowy/pull/95","diff_url":"https://github.com/WuTheFWasThat/vimflowy/pull/95.diff","patch_url":"https://github.com/WuTheFWasThat/vimflowy/pull/95.patch","issue_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/95","number":95,"state":"open","locked":false,"title":"Plugins","user":{"login":"za3k","id":726482,"avatar_url":"https://avatars.githubusercontent.com/u/726482?v=3","gravatar_id":"","url":"https://api.github.com/users/za3k","html_url":"https://github.com/za3k","followers_url":"https://api.github.com/users/za3k/followers","following_url":"https://api.github.com/users/za3k/following{/other_user}","gists_url":"https://api.github.com/users/za3k/gists{/gist_id}","starred_url":"https://api.github.com/users/za3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za3k/subscriptions","organizations_url":"https://api.github.com/users/za3k/orgs","repos_url":"https://api.github.com/users/za3k/repos","events_url":"https://api.github.com/users/za3k/events{/privacy}","received_events_url":"https://api.github.com/users/za3k/received_events","type":"User","site_admin":false},"body":"Adds a simple plugin API and file system. See the example plugin.\r\n\r\nPlugins are included when they are placed in the 'plugins' directory in the root folder of vimflowy.\r\nA plugin is passed a reference to the API when it is loaded. I do support plugin dependencies. The API currently doesn't do anything (it has a reference to the view, but no convenience methods yet).\r\n\r\nI think this will be a good place for us to both work from compatibly, but it's just scaffolding.","created_at":"2015-11-04T00:48:41Z","updated_at":"2015-11-15T06:17:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ec2c0b5d58c2b0a615f68f702ffa9d957b357a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95/commits","review_comments_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95/comments","review_comment_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/95/comments","statuses_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/statuses/797d20c36466617db480e0a6cbd1731621a1540d","head":{"label":"WuTheFWasThat:plugins","ref":"plugins","sha":"797d20c36466617db480e0a6cbd1731621a1540d","user":{"login":"WuTheFWasThat","id":1479648,"avatar_url":"https://avatars.githubusercontent.com/u/1479648?v=3","gravatar_id":"","url":"https://api.github.com/users/WuTheFWasThat","html_url":"https://github.com/WuTheFWasThat","followers_url":"https://api.github.com/users/WuTheFWasThat/followers","following_url":"https://api.github.com/users/WuTheFWasThat/following{/other_user}","gists_url":"https://api.github.com/users/WuTheFWasThat/gists{/gist_id}","starred_url":"https://api.github.com/users/WuTheFWasThat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuTheFWasThat/subscriptions","organizations_url":"https://api.github.com/users/WuTheFWasThat/orgs","repos_url":"https://api.github.com/users/WuTheFWasThat/repos","events_url":"https://api.github.com/users/WuTheFWasThat/events{/privacy}","received_events_url":"https://api.github.com/users/WuTheFWasThat/received_events","type":"User","site_admin":false},"repo":{"id":35233843,"name":"vimflowy","full_name":"WuTheFWasThat/vimflowy","owner":{"login":"WuTheFWasThat","id":1479648,"avatar_url":"https://avatars.githubusercontent.com/u/1479648?v=3","gravatar_id":"","url":"https://api.github.com/users/WuTheFWasThat","html_url":"https://github.com/WuTheFWasThat","followers_url":"https://api.github.com/users/WuTheFWasThat/followers","following_url":"https://api.github.com/users/WuTheFWasThat/following{/other_user}","gists_url":"https://api.github.com/users/WuTheFWasThat/gists{/gist_id}","starred_url":"https://api.github.com/users/WuTheFWasThat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuTheFWasThat/subscriptions","organizations_url":"https://api.github.com/users/WuTheFWasThat/orgs","repos_url":"https://api.github.com/users/WuTheFWasThat/repos","events_url":"https://api.github.com/users/WuTheFWasThat/events{/privacy}","received_events_url":"https://api.github.com/users/WuTheFWasThat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WuTheFWasThat/vimflowy","description":"","fork":false,"url":"https://api.github.com/repos/WuTheFWasThat/vimflowy","forks_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/forks","keys_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/teams","hooks_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/hooks","issue_events_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/events{/number}","events_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/events","assignees_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/assignees{/user}","branches_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/branches{/branch}","tags_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/tags","blobs_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/refs{/sha}","trees_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/statuses/{sha}","languages_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/languages","stargazers_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/stargazers","contributors_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/contributors","subscribers_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/subscribers","subscription_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/subscription","commits_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/commits{/sha}","git_commits_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/commits{/sha}","comments_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/comments{/number}","issue_comment_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/comments{/number}","contents_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/contents/{+path}","compare_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/merges","archive_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/downloads","issues_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues{/number}","pulls_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls{/number}","milestones_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/milestones{/number}","notifications_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/labels{/name}","releases_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/releases{/id}","created_at":"2015-05-07T17:30:49Z","updated_at":"2015-11-14T21:00:52Z","pushed_at":"2015-11-14T01:46:44Z","git_url":"git://github.com/WuTheFWasThat/vimflowy.git","ssh_url":"git@github.com:WuTheFWasThat/vimflowy.git","clone_url":"https://github.com/WuTheFWasThat/vimflowy.git","svn_url":"https://github.com/WuTheFWasThat/vimflowy","homepage":null,"size":2231,"stargazers_count":12,"watchers_count":12,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":37,"forks":1,"open_issues":37,"watchers":12,"default_branch":"master"}},"base":{"label":"WuTheFWasThat:master","ref":"master","sha":"cf5f2673f2443c25090225c8d45aece1bf4caecf","user":{"login":"WuTheFWasThat","id":1479648,"avatar_url":"https://avatars.githubusercontent.com/u/1479648?v=3","gravatar_id":"","url":"https://api.github.com/users/WuTheFWasThat","html_url":"https://github.com/WuTheFWasThat","followers_url":"https://api.github.com/users/WuTheFWasThat/followers","following_url":"https://api.github.com/users/WuTheFWasThat/following{/other_user}","gists_url":"https://api.github.com/users/WuTheFWasThat/gists{/gist_id}","starred_url":"https://api.github.com/users/WuTheFWasThat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuTheFWasThat/subscriptions","organizations_url":"https://api.github.com/users/WuTheFWasThat/orgs","repos_url":"https://api.github.com/users/WuTheFWasThat/repos","events_url":"https://api.github.com/users/WuTheFWasThat/events{/privacy}","received_events_url":"https://api.github.com/users/WuTheFWasThat/received_events","type":"User","site_admin":false},"repo":{"id":35233843,"name":"vimflowy","full_name":"WuTheFWasThat/vimflowy","owner":{"login":"WuTheFWasThat","id":1479648,"avatar_url":"https://avatars.githubusercontent.com/u/1479648?v=3","gravatar_id":"","url":"https://api.github.com/users/WuTheFWasThat","html_url":"https://github.com/WuTheFWasThat","followers_url":"https://api.github.com/users/WuTheFWasThat/followers","following_url":"https://api.github.com/users/WuTheFWasThat/following{/other_user}","gists_url":"https://api.github.com/users/WuTheFWasThat/gists{/gist_id}","starred_url":"https://api.github.com/users/WuTheFWasThat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WuTheFWasThat/subscriptions","organizations_url":"https://api.github.com/users/WuTheFWasThat/orgs","repos_url":"https://api.github.com/users/WuTheFWasThat/repos","events_url":"https://api.github.com/users/WuTheFWasThat/events{/privacy}","received_events_url":"https://api.github.com/users/WuTheFWasThat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WuTheFWasThat/vimflowy","description":"","fork":false,"url":"https://api.github.com/repos/WuTheFWasThat/vimflowy","forks_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/forks","keys_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/teams","hooks_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/hooks","issue_events_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/events{/number}","events_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/events","assignees_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/assignees{/user}","branches_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/branches{/branch}","tags_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/tags","blobs_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/refs{/sha}","trees_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/statuses/{sha}","languages_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/languages","stargazers_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/stargazers","contributors_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/contributors","subscribers_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/subscribers","subscription_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/subscription","commits_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/commits{/sha}","git_commits_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/git/commits{/sha}","comments_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/comments{/number}","issue_comment_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/comments{/number}","contents_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/contents/{+path}","compare_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/merges","archive_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/downloads","issues_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues{/number}","pulls_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls{/number}","milestones_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/milestones{/number}","notifications_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/labels{/name}","releases_url":"https://api.github.com/repos/WuTheFWasThat/vimflowy/releases{/id}","created_at":"2015-05-07T17:30:49Z","updated_at":"2015-11-14T21:00:52Z","pushed_at":"2015-11-14T01:46:44Z","git_url":"git://github.com/WuTheFWasThat/vimflowy.git","ssh_url":"git@github.com:WuTheFWasThat/vimflowy.git","clone_url":"https://github.com/WuTheFWasThat/vimflowy.git","svn_url":"https://github.com/WuTheFWasThat/vimflowy","homepage":null,"size":2231,"stargazers_count":12,"watchers_count":12,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":37,"forks":1,"open_issues":37,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95"},"html":{"href":"https://github.com/WuTheFWasThat/vimflowy/pull/95"},"issue":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/95"},"comments":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/WuTheFWasThat/vimflowy/statuses/797d20c36466617db480e0a6cbd1731621a1540d"}}}}