Comparing version 0.0.6 to 0.0.7
@@ -11,2 +11,3 @@ var walk = require('./walk.js'), | ||
marked = require('marked'), | ||
semver = require('semver'), | ||
traverse, parse, parseChunk, checkReference, findBlocks, processMarkup, | ||
@@ -24,3 +25,4 @@ isDeprecated, isExperimental, hasPrefix, | ||
end: /\s*?@endsection/ | ||
}; | ||
}, | ||
sectionSemver = '0.0.0'; | ||
@@ -467,3 +469,4 @@ | ||
styleWord, | ||
numbers; | ||
numbers, | ||
bump; | ||
@@ -477,2 +480,12 @@ options = options || {}; | ||
} | ||
bump = paragraph.match(/section\s*#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; | ||
} | ||
} | ||
@@ -479,0 +492,0 @@ |
{ | ||
"name": "distancss", | ||
"description": "Automated CSS styleguides generation heavily influences by KSS and *doc forked from node-kss", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"homepage": "http://xzyfer.github.com/distancss", | ||
@@ -43,3 +43,4 @@ "author": { | ||
"handlebars": "1.0.x", | ||
"marked": "0.2.x" | ||
"marked": "0.2.x", | ||
"semver": "~2.0.10" | ||
}, | ||
@@ -46,0 +47,0 @@ "devDependencies": { |
@@ -132,2 +132,7 @@ /*global suite, test, setup, teardown*/ | ||
}); | ||
suite('.semver', function() { | ||
common.testAllSections('semver', 'sections-semver.less', function(section) { | ||
assert.equal(section.data.reference, section.data.header); | ||
}) | ||
}); | ||
suite('.description/.header', function() { | ||
@@ -134,0 +139,0 @@ common.testSection('3.2.1', 'sections-description.less', function(section) { |
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
189412
49
2584
10
+ Addedsemver@~2.0.10
+ Addedsemver@2.0.11(transitive)