Skip to content

Commit

Permalink
move docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Sep 14, 2014
1 parent 39ad456 commit 41c5740
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/getBlacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ var wreck = require('wreck');

var url = 'http://gulpjs.com/plugins/blackList.json';

/**
* Given a collection of plugin names verifies this collection against
* the blacklist. Invokes callback with an object:
* [plugin name]=>[blacklisting reason]
* or an empty object if none of the plugins to check are blacklisted.
*
* @param cb
*/
function getBlacklist(cb) {
wreck.get(url, { json: true }, function (err, res, blacklist) {
if (err) {
Expand Down
9 changes: 9 additions & 0 deletions lib/verifyDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ var logVerify = require('./log/verify');
var getBlacklist = require('./getBlacklist');
var logBlacklistError = require('./log/blacklistError');

/**
* Given a collection of plugin names verifies this collection against
* the blacklist. Returns an object with:
* [plugin name]=>[blacklisting reason]
* or an empty object if none of the dependencies to check are blacklisted.
*
* @param pkg - package.json contents
* @param blacklist - contents of the blacklist in JSON format
*/
function verify(pkg, blacklist) {
var blacklisted = matchdep
.filterAll(Object.keys(blacklist), pkg)
Expand Down

0 comments on commit 41c5740

Please sign in to comment.