{"action":"created","comment":{"url":"https://api.github.com/repos/bem/gemini/pulls/comments/27098492","id":27098492,"diff_hunk":"@@ -0,0 +1,19 @@\n+'use strict';\n+var _ = require('lodash');\n+var prefix = 'gemini-';\n+\n+module.exports = {\n+    load: function(gemini, options) {\n+        var enabledPlugins = _.reject(_.pairs(options.plugins), function(p) {\n+            return !p[1];\n+        });\n+\n+        _.forEach(enabledPlugins, function(plugin) {\n+            var shortName = plugin[0].replace(prefix, '');\n+            var packageName = prefix + shortName;","path":"lib/plugins.js","position":13,"original_position":13,"commit_id":"718f1cafc3d7b35c4baa4d027d14b01686b03bb4","original_commit_id":"718f1cafc3d7b35c4baa4d027d14b01686b03bb4","user":{"login":"Saulis","id":1039468,"avatar_url":"https://avatars.githubusercontent.com/u/1039468?v=3","gravatar_id":"","url":"https://api.github.com/users/Saulis","html_url":"https://github.com/Saulis","followers_url":"https://api.github.com/users/Saulis/followers","following_url":"https://api.github.com/users/Saulis/following{/other_user}","gists_url":"https://api.github.com/users/Saulis/gists{/gist_id}","starred_url":"https://api.github.com/users/Saulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saulis/subscriptions","organizations_url":"https://api.github.com/users/Saulis/orgs","repos_url":"https://api.github.com/users/Saulis/repos","events_url":"https://api.github.com/users/Saulis/events{/privacy}","received_events_url":"https://api.github.com/users/Saulis/received_events","type":"User","site_admin":false},"body":"That's a good idea, will do","created_at":"2015-03-25T07:00:19Z","updated_at":"2015-03-25T07:00:19Z","html_url":"https://github.com/bem/gemini/pull/127#discussion_r27098492","pull_request_url":"https://api.github.com/repos/bem/gemini/pulls/127","_links":{"self":{"href":"https://api.github.com/repos/bem/gemini/pulls/comments/27098492"},"html":{"href":"https://github.com/bem/gemini/pull/127#discussion_r27098492"},"pull_request":{"href":"https://api.github.com/repos/bem/gemini/pulls/127"}}},"pull_request":{"url":"https://api.github.com/repos/bem/gemini/pulls/127","id":31825529,"html_url":"https://github.com/bem/gemini/pull/127","diff_url":"https://github.com/bem/gemini/pull/127.diff","patch_url":"https://github.com/bem/gemini/pull/127.patch","issue_url":"https://api.github.com/repos/bem/gemini/issues/127","number":127,"state":"open","locked":false,"title":"Feature/plugins","user":{"login":"Saulis","id":1039468,"avatar_url":"https://avatars.githubusercontent.com/u/1039468?v=3","gravatar_id":"","url":"https://api.github.com/users/Saulis","html_url":"https://github.com/Saulis","followers_url":"https://api.github.com/users/Saulis/followers","following_url":"https://api.github.com/users/Saulis/following{/other_user}","gists_url":"https://api.github.com/users/Saulis/gists{/gist_id}","starred_url":"https://api.github.com/users/Saulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saulis/subscriptions","organizations_url":"https://api.github.com/users/Saulis/orgs","repos_url":"https://api.github.com/users/Saulis/repos","events_url":"https://api.github.com/users/Saulis/events{/privacy}","received_events_url":"https://api.github.com/users/Saulis/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nNeeded to do some plugins for gemini (starting up express, sauce-connect, etc) so I made a really simple plugin loader. What do you think?\r\n\r\n","created_at":"2015-03-24T13:26:20Z","updated_at":"2015-03-25T07:00:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41b0c55473f1b4745601d405be4b58b13b456041","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bem/gemini/pulls/127/commits","review_comments_url":"https://api.github.com/repos/bem/gemini/pulls/127/comments","review_comment_url":"https://api.github.com/repos/bem/gemini/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bem/gemini/issues/127/comments","statuses_url":"https://api.github.com/repos/bem/gemini/statuses/718f1cafc3d7b35c4baa4d027d14b01686b03bb4","head":{"label":"Saulis:feature/plugins","ref":"feature/plugins","sha":"718f1cafc3d7b35c4baa4d027d14b01686b03bb4","user":{"login":"Saulis","id":1039468,"avatar_url":"https://avatars.githubusercontent.com/u/1039468?v=3","gravatar_id":"","url":"https://api.github.com/users/Saulis","html_url":"https://github.com/Saulis","followers_url":"https://api.github.com/users/Saulis/followers","following_url":"https://api.github.com/users/Saulis/following{/other_user}","gists_url":"https://api.github.com/users/Saulis/gists{/gist_id}","starred_url":"https://api.github.com/users/Saulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saulis/subscriptions","organizations_url":"https://api.github.com/users/Saulis/orgs","repos_url":"https://api.github.com/users/Saulis/repos","events_url":"https://api.github.com/users/Saulis/events{/privacy}","received_events_url":"https://api.github.com/users/Saulis/received_events","type":"User","site_admin":false},"repo":{"id":32579611,"name":"gemini","full_name":"Saulis/gemini","owner":{"login":"Saulis","id":1039468,"avatar_url":"https://avatars.githubusercontent.com/u/1039468?v=3","gravatar_id":"","url":"https://api.github.com/users/Saulis","html_url":"https://github.com/Saulis","followers_url":"https://api.github.com/users/Saulis/followers","following_url":"https://api.github.com/users/Saulis/following{/other_user}","gists_url":"https://api.github.com/users/Saulis/gists{/gist_id}","starred_url":"https://api.github.com/users/Saulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saulis/subscriptions","organizations_url":"https://api.github.com/users/Saulis/orgs","repos_url":"https://api.github.com/users/Saulis/repos","events_url":"https://api.github.com/users/Saulis/events{/privacy}","received_events_url":"https://api.github.com/users/Saulis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Saulis/gemini","description":"Utility for regression testing of web pages using screenshots","fork":true,"url":"https://api.github.com/repos/Saulis/gemini","forks_url":"https://api.github.com/repos/Saulis/gemini/forks","keys_url":"https://api.github.com/repos/Saulis/gemini/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Saulis/gemini/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Saulis/gemini/teams","hooks_url":"https://api.github.com/repos/Saulis/gemini/hooks","issue_events_url":"https://api.github.com/repos/Saulis/gemini/issues/events{/number}","events_url":"https://api.github.com/repos/Saulis/gemini/events","assignees_url":"https://api.github.com/repos/Saulis/gemini/assignees{/user}","branches_url":"https://api.github.com/repos/Saulis/gemini/branches{/branch}","tags_url":"https://api.github.com/repos/Saulis/gemini/tags","blobs_url":"https://api.github.com/repos/Saulis/gemini/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Saulis/gemini/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Saulis/gemini/git/refs{/sha}","trees_url":"https://api.github.com/repos/Saulis/gemini/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Saulis/gemini/statuses/{sha}","languages_url":"https://api.github.com/repos/Saulis/gemini/languages","stargazers_url":"https://api.github.com/repos/Saulis/gemini/stargazers","contributors_url":"https://api.github.com/repos/Saulis/gemini/contributors","subscribers_url":"https://api.github.com/repos/Saulis/gemini/subscribers","subscription_url":"https://api.github.com/repos/Saulis/gemini/subscription","commits_url":"https://api.github.com/repos/Saulis/gemini/commits{/sha}","git_commits_url":"https://api.github.com/repos/Saulis/gemini/git/commits{/sha}","comments_url":"https://api.github.com/repos/Saulis/gemini/comments{/number}","issue_comment_url":"https://api.github.com/repos/Saulis/gemini/issues/comments{/number}","contents_url":"https://api.github.com/repos/Saulis/gemini/contents/{+path}","compare_url":"https://api.github.com/repos/Saulis/gemini/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Saulis/gemini/merges","archive_url":"https://api.github.com/repos/Saulis/gemini/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Saulis/gemini/downloads","issues_url":"https://api.github.com/repos/Saulis/gemini/issues{/number}","pulls_url":"https://api.github.com/repos/Saulis/gemini/pulls{/number}","milestones_url":"https://api.github.com/repos/Saulis/gemini/milestones{/number}","notifications_url":"https://api.github.com/repos/Saulis/gemini/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Saulis/gemini/labels{/name}","releases_url":"https://api.github.com/repos/Saulis/gemini/releases{/id}","created_at":"2015-03-20T11:15:39Z","updated_at":"2015-03-20T11:15:39Z","pushed_at":"2015-03-24T13:45:00Z","git_url":"git://github.com/Saulis/gemini.git","ssh_url":"git@github.com:Saulis/gemini.git","clone_url":"https://github.com/Saulis/gemini.git","svn_url":"https://github.com/Saulis/gemini","homepage":null,"size":2948,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bem:master","ref":"master","sha":"e26f42ed306ee94d69cb072a97d4b8f8d6f0c129","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":16734168,"name":"gemini","full_name":"bem/gemini","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/gemini","description":"Utility for regression testing of web pages using screenshots","fork":false,"url":"https://api.github.com/repos/bem/gemini","forks_url":"https://api.github.com/repos/bem/gemini/forks","keys_url":"https://api.github.com/repos/bem/gemini/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/gemini/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/gemini/teams","hooks_url":"https://api.github.com/repos/bem/gemini/hooks","issue_events_url":"https://api.github.com/repos/bem/gemini/issues/events{/number}","events_url":"https://api.github.com/repos/bem/gemini/events","assignees_url":"https://api.github.com/repos/bem/gemini/assignees{/user}","branches_url":"https://api.github.com/repos/bem/gemini/branches{/branch}","tags_url":"https://api.github.com/repos/bem/gemini/tags","blobs_url":"https://api.github.com/repos/bem/gemini/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/gemini/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/gemini/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/gemini/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/gemini/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/gemini/languages","stargazers_url":"https://api.github.com/repos/bem/gemini/stargazers","contributors_url":"https://api.github.com/repos/bem/gemini/contributors","subscribers_url":"https://api.github.com/repos/bem/gemini/subscribers","subscription_url":"https://api.github.com/repos/bem/gemini/subscription","commits_url":"https://api.github.com/repos/bem/gemini/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/gemini/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/gemini/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/gemini/issues/comments{/number}","contents_url":"https://api.github.com/repos/bem/gemini/contents/{+path}","compare_url":"https://api.github.com/repos/bem/gemini/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/gemini/merges","archive_url":"https://api.github.com/repos/bem/gemini/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/gemini/downloads","issues_url":"https://api.github.com/repos/bem/gemini/issues{/number}","pulls_url":"https://api.github.com/repos/bem/gemini/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/gemini/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/gemini/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/gemini/labels{/name}","releases_url":"https://api.github.com/repos/bem/gemini/releases{/id}","created_at":"2014-02-11T14:58:41Z","updated_at":"2015-03-24T16:13:32Z","pushed_at":"2015-03-24T13:45:00Z","git_url":"git://github.com/bem/gemini.git","ssh_url":"git@github.com:bem/gemini.git","clone_url":"https://github.com/bem/gemini.git","svn_url":"https://github.com/bem/gemini","homepage":null,"size":2948,"stargazers_count":310,"watchers_count":310,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":40,"forks":30,"open_issues":40,"watchers":310,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bem/gemini/pulls/127"},"html":{"href":"https://github.com/bem/gemini/pull/127"},"issue":{"href":"https://api.github.com/repos/bem/gemini/issues/127"},"comments":{"href":"https://api.github.com/repos/bem/gemini/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/bem/gemini/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/bem/gemini/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bem/gemini/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/bem/gemini/statuses/718f1cafc3d7b35c4baa4d027d14b01686b03bb4"}}}}