grunt-templated-changelog
Advanced tools
Comparing version 0.1.1 to 0.1.2
# 0.1.2 | ||
- `bugfix` allow empty target in subjects with `label()` `a69dee4` | ||
# 0.1.1 | ||
@@ -3,0 +7,0 @@ |
{ | ||
"name": "grunt-templated-changelog", | ||
"description": "Generates customized changelog file from git logs.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -18,9 +18,9 @@ | ||
// subject with "label(target)" stripped | ||
subject : /^[^\(]+\([^\)]+\)\s+(.*)(?:\n\n|$)/, | ||
subject : /^[^\(]+\([^\)]*\)\s+(.*)(?:\n\n|$)/, | ||
// label, assuming line starts with "label(target)" | ||
label : /^([^\(]+)\([^\)]+\)\s+/, | ||
label : /^([^\(]+)\([^\)]*\)\s+/, | ||
// target, assuming line starts with "label(target)" | ||
target : /^[^\(]+\(([^\)]+)\)\s+/, | ||
target : /^[^\(]+\(([^\)]*)\)\s+/, | ||
@@ -27,0 +27,0 @@ // breaking changes |
@@ -112,2 +112,28 @@ | ||
it('should parse `label()` with no target', function(done) { | ||
var parser = new Parser(); | ||
git.log('log.notarget') | ||
.pipe(parser); | ||
parser.on('data', function(commit) { | ||
expect(commit) | ||
.to.eql({ | ||
hash : 'fade3f6d3532d5b915226d59d68884b7e602991f', | ||
hash_abbr : 'fade3f6', | ||
author_name : 'John Doe', | ||
author_email : 'john.doe@domain.com', | ||
date : '2014-02-24 11:43:58 -0800', | ||
body : 'bugfix() Another fix\n\nnext line', | ||
subject : 'Another fix', | ||
label : 'bugfix' | ||
}); | ||
done(); | ||
}); | ||
}); | ||
it('should parse `Issues #issue[, #issue[, #issue]]`', function(done) { | ||
@@ -114,0 +140,0 @@ |
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
46673
44
929