gengojs-core-modules
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -0,1 +1,12 @@ | ||
2.0.5 / 2015-10-04 | ||
================== | ||
* Release v2.0.5. | ||
* Release v2.0.4. | ||
* Release v2.0.3. | ||
* Update | ||
updated change log. | ||
* Test Fix | ||
Should fix an issue where the duplicates were found in the options. | ||
2.0.2 / 2015-10-04 | ||
@@ -2,0 +13,0 @@ ================== |
@@ -42,5 +42,3 @@ var | ||
.pipe(sourcemaps.write("./source maps/")) | ||
.pipe(gulp.dest(function(file){ | ||
return file.base.replace('lib/',''); | ||
})); | ||
.pipe(gulp.dest('src/')); | ||
}); | ||
@@ -47,0 +45,0 @@ |
@@ -46,7 +46,5 @@ import _ from 'lodash'; | ||
// Set the default options by merging with user's | ||
options = _.merge({}, { | ||
_.merge(options, { | ||
[type]: defaults | ||
}, _.isEmpty(options) ? { | ||
[type]: {} | ||
} : options); | ||
}, options); | ||
} | ||
@@ -53,0 +51,0 @@ /** |
{ | ||
"name": "gengojs-core-modules", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "gengo.js core modules is a set of modules that helps the core to function properly.", | ||
"main": "./modules/index.js", | ||
"main": "src/modules/index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "gulp test" |
var assert = require('chai').assert; | ||
var __ = require('../../modules/inputify'); | ||
var __ = require('../../src/modules/inputify'); | ||
@@ -4,0 +4,0 @@ describe("Inputify", function () { |
var assert = require('chai').assert; | ||
var optify = require('../../modules/optify'); | ||
var optify = require('../../src/modules/optify'); | ||
var path = require('path'); | ||
@@ -4,0 +4,0 @@ var fixtures = path.resolve(__dirname, '../optify/fixtures/'); |
var assert = require('chai').assert; | ||
var plugify = require('../../modules/plugify'); | ||
var plugify = require('../../src/modules/plugify'); | ||
var path = require('path'); | ||
@@ -7,18 +7,69 @@ var fixtures = path.resolve(__dirname, '../plugify/fixtures/'); | ||
describe("Plugify", function() { | ||
describe("plugins", function() { | ||
var plugins = plugify(plugs()); | ||
it("should return the correct plugins", function(){ | ||
assert.isFunction(plugs); | ||
assert.isObject(plugins); | ||
assert.notDeepEqual(plugins, { | ||
parser: [], | ||
router: [], | ||
backend: [], | ||
api: [], | ||
header: [], | ||
localize: [] | ||
}); | ||
}); | ||
}); | ||
describe("Plugify", function () { | ||
describe("plugins", function () { | ||
var plugins = plugify(plugs()); | ||
it("should return the correct plugins", function () { | ||
assert.isFunction(plugs); | ||
assert.isObject(plugins); | ||
assert.notDeepEqual(plugins, { | ||
parser: [], | ||
router: [], | ||
backend: [], | ||
api: [], | ||
header: [], | ||
localize: [] | ||
}); | ||
}); | ||
}); | ||
describe("options", function () { | ||
var options = { | ||
parser: { | ||
shout: 'hello', | ||
}, | ||
router: { | ||
shout2: 'hello' | ||
}, | ||
backend: { | ||
shout2: 'hello' | ||
}, | ||
api: { | ||
shout2: 'hello' | ||
}, | ||
header: { | ||
shout2: 'hello' | ||
}, | ||
localize: { | ||
shout2: 'hello' | ||
} | ||
}; | ||
var plugins = plugify(plugs(), options); | ||
it("should merge user settings", function () { | ||
assert.deepEqual(options, { | ||
parser: { | ||
shout: 'hello', | ||
greet :'hello', | ||
}, | ||
router: { | ||
shout2: 'hello', | ||
greet2 :'hello', | ||
}, | ||
backend: { | ||
shout2: 'hello', | ||
greet3 :'hello', | ||
}, | ||
api: { | ||
shout2: 'hello', | ||
greet4 :'hello', | ||
}, | ||
header: { | ||
shout2: 'hello', | ||
greet5 :'hello', | ||
}, | ||
localize: { | ||
shout2: 'hello', | ||
greet6 :'hello', | ||
} | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1727
96941
34