Comparing version 0.0.10 to 0.0.11
@@ -26,3 +26,3 @@ | ||
, mocha: { | ||
src: 'test/distancss.js' | ||
src: 'test/*.js' | ||
, options: { | ||
@@ -29,0 +29,0 @@ ui: 'tdd' |
@@ -365,6 +365,5 @@ var walk = require('./walk.js'), | ||
reference; | ||
if((tag = getTag(sectionData, 'section'))) { | ||
// is semver? | ||
if((match = tag.value().match(/([0-9\.]*)/i))) { | ||
if((match = tag.value().match(/([0-9\.]+)/i))) { | ||
reference = match[1]; | ||
@@ -374,15 +373,11 @@ } else | ||
if((match = tag.value().match(/#next-(reset|major|minor|patch)/i))) { | ||
if (bump && bump[1]) { | ||
if(bump[1] === "reset") { | ||
sectionSemver = '1.0.0'; | ||
} else { | ||
sectionSemver = semver.inc(sectionSemver, bump[1]); | ||
} | ||
return sectionSemver.replace(/^\.|\.$|(\.0){1,}$/g, ''); | ||
if(match[1] === "reset") { | ||
sectionSemver = '1.0.0'; | ||
} else { | ||
sectionSemver = semver.inc(sectionSemver, match[1]); | ||
} | ||
return sectionSemver.replace(/^\.|\.$|(\.0){1,}$/g, ''); | ||
} | ||
return reference.replace(/^\.|\.$|(\.0){1,}$/g, ''); // Removes trailing 0's and .'s | ||
} | ||
return false; | ||
@@ -389,0 +384,0 @@ }; |
@@ -31,2 +31,10 @@ /** | ||
}); | ||
this.data.deprecated = !!this.tags().filter(function(tag) { | ||
return tag.data.name.match(/deprecated/i); | ||
}).length; | ||
this.data.experimental = !!this.tags().filter(function(tag) { | ||
return tag.data.name.match(/experimental/i); | ||
}).length; | ||
} | ||
@@ -52,11 +60,7 @@ }; | ||
Section.prototype.deprecated = function() { | ||
return !!this.tags().filter(function(tag) { | ||
return tag.data.name.match(/deprecated/i); | ||
}).length; | ||
return this.data.deprecated; | ||
}; | ||
Section.prototype.experimental = function() { | ||
return !!this.tags().filter(function(tag) { | ||
return tag.data.name.match(/experimental/i); | ||
}).length; | ||
return this.data.experimental; | ||
}; | ||
@@ -63,0 +67,0 @@ |
{ | ||
"name": "distancss", | ||
"description": "Automated CSS styleguides generation heavily influences by KSS and *doc forked from node-kss", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"homepage": "http://xzyfer.github.com/distancss", | ||
@@ -6,0 +6,0 @@ "author": { |
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
188361