Skip to content

Commit

Permalink
Merge branch 'release/0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Aug 13, 2013
2 parents e9a6143 + 4820299 commit 2f9ef77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-semver",
"description": "Semantic versioning for grunt",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "https://github.com/mikaelkaron/grunt-semver",
"author": {
"name": "Mikael Karon",
Expand Down
4 changes: 2 additions & 2 deletions tasks/semver.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function(grunt) {
grunt.log.verbose.writeflags(options);

switch (phase) {
case "valid" :
case "validate" :
if (part) {
try {
grunt.log.ok(format.call(build ? semver(semver(part) + "+" + build) : semver(part)));
Expand Down Expand Up @@ -75,7 +75,7 @@ module.exports = function(grunt) {
var version;

try {
version = json[VERSION] = format.call(build ? semver(semver(part) + "+" + build) : semver(part));
version = json[VERSION] = format.call(build ? semver(semver(part || json[VERSION]) + "+" + build) : semver(part || json[VERSION]));

grunt.log.ok(src + " : " + version);

Expand Down

0 comments on commit 2f9ef77

Please sign in to comment.