Skip to content

Commit

Permalink
3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Dec 21, 2013
1 parent c17cbf9 commit d569557
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# gulp changelog

## 3.2

- File object is now [vinyl](https://github.com/wearefractal/vinyl)
- .watch() is now [glob-watcher](https://github.com/wearefractal/glob-watcher)
- Fix CLI -v when no gulpfile found
- gulp-util updated
- Logging moved to CLI bin file
- Will cause double logging if you update global CLI to 3.2 but not local
- Will cause no logging if you update local to 3.1 but not global CLI

## 3.1.3

- Move isStream and isBuffer to gulp-util
Expand Down
5 changes: 2 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
- Keep creating documentation in the README
- More task documentation for the README
- Create gulp-www for the website
- Site should have plugin search
- Site plugin search should utilize github stars for sorting
- Site plugin search should have a blacklist for bad plugins that don't pass acceptance tests
- gulp plugin acceptance tests that tell you if plugins work correctly
- Split gulp-util.File object out into a well tested individual repo (spec?)
- gulp plugin acceptance tests that tell you if plugins work correctly
6 changes: 3 additions & 3 deletions lib/createOutputStream/writeFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ var gutil = require('gulp-util');

module.exports = function (writePath, file, cb) {
// if no contents then do nothing
if (typeof file.contents === "undefined") return cb(null, file);
if (file.isNull()) return cb(null, file);

// stream it to disk yo
if (gutil.isStream(file.contents)) {
if (file.isStream()) {
var outStream = fs.createWriteStream(writePath);
file.contents.once('end', function(){
cb(null, file);
Expand All @@ -21,7 +21,7 @@ module.exports = function (writePath, file, cb) {
return;
}

if (gutil.isBuffer(file.contents)) {
if (file.isBuffer()) {
// write it like normal
fs.writeFile(writePath, file.contents, function(err){
if (err) return cb(err);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gulp",
"description": "The streaming build system",
"version": "3.1.6",
"version": "3.2.0",
"homepage": "http://github.com/wearefractal/gulp",
"repository": "git://github.com/wearefractal/gulp.git",
"author": "Fractal <[email protected]> (http://wearefractal.com/)",
Expand All @@ -19,7 +19,7 @@
"glob-stream": "~3.0.2",
"mkdirp": "~0.3.5",
"optimist": "~0.6.0",
"gulp-util": "~2.1.3",
"gulp-util": "~2.2.0",
"orchestrator": "~0.2.1",
"resolve": "~0.6.1",
"semver": "~2.2.1",
Expand All @@ -35,7 +35,7 @@
"jshint": "*"
},
"scripts": {
"test": "mocha && jshint"
"test": "mocha --reporter spec && jshint"
},
"engines": {
"node": ">= 0.7"
Expand Down
11 changes: 0 additions & 11 deletions test/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ var should = require('should');
require('mocha');

describe('gulp tasks', function() {
// Don't bleed previous test into subsequent test
var stdout_write;
beforeEach(function () {
stdout_write = process.stdout.write;
process.stdout.write = function() {};
gulp.reset();
});
afterEach(function () {
process.stdout.write = stdout_write;
gulp.reset();
});
describe('task()', function() {
it('should define a task', function(done) {
var fn;
Expand Down

0 comments on commit d569557

Please sign in to comment.