Comparing version 2.0.1 to 2.1.0
@@ -33,3 +33,10 @@ 'use strict'; | ||
} | ||
file.contents = new Buffer(res); | ||
file.contents = new Buffer(res.str); | ||
if (!opts.quiet) { | ||
log('Bumped', log.colors.cyan(res.prev), | ||
'to', log.colors.magenta(res.new), | ||
'with type:', log.colors.cyan(res.type)); | ||
} | ||
file.bumpData = res; | ||
cb(null, file); | ||
@@ -36,0 +43,0 @@ }); |
{ | ||
"name": "gulp-bump", | ||
"description": "Bump npm versions with Gulp (gulpjs.com)", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"homepage": "http://github.com/stevelacy/gulp-bump", | ||
@@ -10,7 +10,7 @@ "repository": "git://github.com/stevelacy/gulp-bump.git", | ||
"dependencies": { | ||
"bump-regex": "^2.0.0", | ||
"plugin-error": "^0.1.2", | ||
"plugin-log": "^0.1.0", | ||
"semver": "^5.0.3", | ||
"through2": "^0.5.1", | ||
"bump-regex": "^1.0.0" | ||
"through2": "^0.5.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -137,2 +137,23 @@ 'use strict'; | ||
}); | ||
it('should return bumpData', function(done) { | ||
var fakeFile = new File({ | ||
contents: new Buffer('{ "version": "0.1.0-zeta.1"}'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
var bumpS = bump({type: 'minor'}); | ||
bumpS.once('data', function(newFile) { | ||
should.exist(newFile); | ||
should.exist(newFile.contents); | ||
should.exist(newFile.bumpData); | ||
should.exist(newFile.bumpData.new); | ||
should.exist(newFile.bumpData.prev); | ||
should.exist(newFile.bumpData.type); | ||
return done(); | ||
}); | ||
bumpS.write(fakeFile); | ||
bumpS.end(); | ||
}); | ||
}); |
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
22238
477
+ Addedbump-regex@2.9.0(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedbump-regex@1.0.0(transitive)
Updatedbump-regex@^2.0.0