Permalink
Browse files

Version 0.4.1 bump.

  • Loading branch information...
outaTiME committed Apr 2, 2013
1 parent d75ed34 commit c3f6a20e33ca7d930976312f2c4d19c0e061e739
Showing with 4 additions and 4 deletions.
  1. +1 −0 README.md
  2. +1 −1 package.json
  3. +2 −3 tasks/replace.js
View
@@ -186,6 +186,7 @@ replace: {
## Release History
+ * 2013-04-02   v0.4.1   Add trace when force flag.
* 2013-02-28   v0.4.0   First official release for Grunt 0.4.0.
* 2012-11-20   v0.3.2   New examples added.
* 2012-09-25   v0.3.1   Rename grunt-contrib-lib dep to grunt-lib-contrib, add force flag.
View
@@ -1,6 +1,6 @@
{
"name": "grunt-replace",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Grunt task to replace inline patterns with custom variables.",
"homepage": "http://github.com/outaTiME/grunt-replace",
"author": {
View
@@ -156,11 +156,10 @@ module.exports = function (grunt) {
updated = updated || contents.match(re);
contents = contents.replace(re, value);
});
- if (updated) {
- grunt.log.writeln('Replace ' + srcFile.cyan + ' -> ' + destFile.cyan);
- } else if (options.force === false) {
+ if (!updated && options.force === false) {
return false;
}
+ grunt.log.writeln('Replace ' + srcFile.cyan + ' -> ' + destFile.cyan);
return contents;
}
});

0 comments on commit c3f6a20

Please sign in to comment.