gulp-awspublish
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -0,1 +1,7 @@ | ||
0.0.20 / 2014-07-18 | ||
================== | ||
* dont use file.clone when gzip file to conserve file custom ppties | ||
0.0.19 / 2014-07-15 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -92,3 +92,3 @@ var Stream = require('stream'), | ||
file = initFile(file.clone()); | ||
initFile(file); | ||
@@ -242,3 +242,3 @@ // add content-type header | ||
file = initFile(file); | ||
initFile(file); | ||
@@ -245,0 +245,0 @@ // calculate etag |
{ | ||
"name": "gulp-awspublish", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "gulp plugin to publish files to amazon s3", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,3 +15,3 @@ /* global describe, before, it */ | ||
this.timeout(5000); | ||
this.timeout(10000); | ||
@@ -81,6 +81,7 @@ var credentials = JSON.parse(fs.readFileSync('aws-credentials.json', 'utf8')), | ||
var gzip = awspublish.gzip({ ext: '.gz' }); | ||
var contents = new Buffer('hello world'); | ||
var srcFile = new gutil.File({ | ||
path: '/test/hello.txt', | ||
base: '/', | ||
contents: new Buffer('hello world') | ||
contents: contents | ||
}); | ||
@@ -93,4 +94,3 @@ | ||
expect(files).to.have.length(1); | ||
expect(files[0]).to.not.eq(srcFile); | ||
expect(files[0].path).to.eq(srcFile.path + '.gz'); | ||
expect(files[0].path).to.eq('/test/hello.txt.gz'); | ||
expect(files[0].s3.path).to.eq('test/hello.txt.gz'); | ||
@@ -102,3 +102,3 @@ expect(files[0].s3.headers['Content-Encoding']).to.eq('gzip'); | ||
var newFileContent = buf.toString('utf8', 0, buf.length), | ||
srcFileContent = srcFile.contents.toString('utf8', 0, srcFile.contents.length); | ||
srcFileContent = contents.toString('utf8', 0, contents.length); | ||
expect(newFileContent).to.eq(srcFileContent); | ||
@@ -105,0 +105,0 @@ done(); |
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
30027