diff --git a/README.md b/README.md index f49c4cf..3bd2362 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# grunt-contrib-compress v0.7.0 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-compress.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) +# grunt-contrib-compress v0.7.1 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-compress.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) > Compress files and folders. @@ -164,4 +164,4 @@ compress: { Task submitted by [Chris Talkington](http://christalkington.com/) -*This file was generated on Mon Feb 17 2014 14:40:18.* +*This file was generated on Sat Mar 15 2014 13:33:33.* diff --git a/package.json b/package.json index 42347c7..568cf70 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-contrib-compress", "description": "Compress files and folders.", - "version": "0.7.0", + "version": "0.8.1", "homepage": "https://github.com/gruntjs/grunt-contrib-compress", "author": { "name": "Grunt Team", diff --git a/tasks/lib/compress.js b/tasks/lib/compress.js index 74a0f2e..4a17759 100644 --- a/tasks/lib/compress.js +++ b/tasks/lib/compress.js @@ -44,15 +44,6 @@ module.exports = function(grunt) { return nextFile(); } - // Append ext if the specified one isnt there - if (typeof filePair.orig.ext === 'undefined') { - var ext = '.' + extension; - // if the chosen ext is different then the dest ext lets use it - if (String(filePair.dest).slice(-ext.length) !== ext) { - filePair.dest += ext; - } - } - // Ensure the dest folder exists grunt.file.mkdir(path.dirname(filePair.dest)); diff --git a/test/compress_test.js b/test/compress_test.js index 5a08300..9ada8db 100644 --- a/test/compress_test.js +++ b/test/compress_test.js @@ -74,7 +74,7 @@ exports.compress = { ], function(file, next) { var expected = grunt.file.read(path.join('test', 'fixtures', file)); var actual = ''; - fs.createReadStream(path.join('tmp', 'gzip', file + '.gz')) + fs.createReadStream(path.join('tmp', 'gzip', file)) .pipe(zlib.createGunzip()) .on('data', function(buf) { actual += buf.toString(); @@ -106,7 +106,7 @@ exports.compress = { ], function(file, next) { var expected = grunt.file.read(path.join('test', 'fixtures', file)); var actual = ''; - fs.createReadStream(path.join('tmp', 'deflate', file + '.deflate')) + fs.createReadStream(path.join('tmp', 'deflate', file)) .pipe(zlib.createInflate()) .on('data', function(buf) { actual += buf.toString(); @@ -126,7 +126,7 @@ exports.compress = { ], function(file, next) { var expected = grunt.file.read(path.join('test', 'fixtures', file)); var actual = ''; - fs.createReadStream(path.join('tmp', 'deflateRaw', file + '.deflate')) + fs.createReadStream(path.join('tmp', 'deflateRaw', file)) .pipe(zlib.createInflateRaw()) .on('data', function(buf) { actual += buf.toString();