gulp-rename
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -1,2 +0,2 @@ | ||
var es = require("event-stream"), | ||
var map = require("map-stream"), | ||
path = require("path"); | ||
@@ -45,3 +45,3 @@ | ||
return es.map(rename); | ||
return map(rename); | ||
}; |
{ | ||
"name": "gulp-rename", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Rename files", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"dependencies": { | ||
"event-stream": "*" | ||
"map-stream": "~0.0.4" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -7,3 +7,4 @@ /*global describe, it*/ | ||
var gulp = require("gulp"), | ||
var path = require("path"), | ||
gulp = require("gulp"), | ||
rename = require("../"); | ||
@@ -21,3 +22,4 @@ | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/hola.md"); | ||
var expectedPath = path.resolve("test/fixtures/hola.md"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -40,3 +42,4 @@ stream.on("end", function () { | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/hello-hola.txt"); | ||
var expectedPath = path.resolve("test/fixtures/hello-hola.txt"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -61,3 +64,4 @@ stream.on("end", function () { | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/bonjour-hello-hola.md"); | ||
var expectedPath = path.resolve("test/fixtures/bonjour-hello-hola.md"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -78,3 +82,4 @@ stream.on("end", function () { | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/hello.txt"); | ||
var expectedPath = path.resolve("test/fixtures/hello.txt"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -97,3 +102,4 @@ stream.on("end", function () { | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/hello.min.md"); | ||
var expectedPath = path.resolve("test/fixtures/hello.min.md"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -118,3 +124,4 @@ stream.on("end", function () { | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal("test/fixtures/bonjour-hello-hola.min.md"); | ||
var expectedPath = path.resolve("test/fixtures/bonjour-hello-hola.min.md"); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -129,6 +136,8 @@ stream.on("end", function () { | ||
var path = "test/fixtures/hello.min.txt"; | ||
var filePath = "test/fixtures/hello.min.txt"; | ||
var obj = function (dir, base, ext) { | ||
dir.should.equal("test/fixtures"); | ||
var resolvedDir = path.resolve(dir); | ||
var expectedDir = path.resolve("test/fixtures"); | ||
resolvedDir.should.equal(expectedDir); | ||
base.should.equal("hello.min"); | ||
@@ -140,7 +149,8 @@ ext.should.equal(".txt"); | ||
var stream = gulp.src(path).pipe(rename(obj)); | ||
var stream = gulp.src(filePath).pipe(rename(obj)); | ||
stream.on("error", done); | ||
stream.on("data", function (file) { | ||
String(file.base + file.relative).should.equal(path); | ||
var expectedPath = path.resolve(filePath); | ||
String(file.base + file.relative).should.equal(expectedPath); | ||
}); | ||
@@ -147,0 +157,0 @@ stream.on("end", function () { |
Sorry, the diff of this file is not supported yet
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
9619
199
0
13
+ Addedmap-stream@~0.0.4
- Removedevent-stream@*
- Removedduplexer@0.1.2(transitive)
- Removedevent-stream@4.0.1(transitive)
- Removedfrom@0.1.7(transitive)
- Removedpause-stream@0.0.11(transitive)
- Removedsplit@1.0.1(transitive)
- Removedstream-combiner@0.2.2(transitive)
- Removedthrough@2.3.8(transitive)