summaryrefslogtreecommitdiffhomepage
path: root/vendor
diff options
context:
space:
mode:
authorCameron Moore <[email protected]>2016-12-26 15:23:20 -0600
committerBjørn Erik Pedersen <[email protected]>2017-03-11 17:52:25 +0100
commitf039e3be9e4a11808508c8cd3043b340deea040f (patch)
treedf3e709fc6321fd2a3e1d23efa2c3512d8ed4a94 /vendor
parentddc8cc0082965143a650052a9aa538bac9133481 (diff)
downloadhugo-f039e3be9e4a11808508c8cd3043b340deea040f.tar.gz
hugo-f039e3be9e4a11808508c8cd3043b340deea040f.zip
parser: Refactor frontmatter parser and add tests
Lots of cleanups here: - Refactor InterfaceToConfig and InterfaceToFrontMatter to use io.Writer. - Simplify InterfaceToFrontMatter by wrapping InterfaceToConfig. - Export FrontmatterType since we return it in DetectFrontMatter. - Refactor removeTOMLIdentifier to avoid blindly replacing "+++". - Update HandleJSONMetaData to return an empty map on nil input. - Updates vendored goorgeous package and test for org-mode frontmatter. - Add tests and godoc comments. Coverage for parser package increased from 45.2% to 85.2%.
Diffstat (limited to 'vendor')
-rw-r--r--vendor/vendor.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 738eddfe6..7891d3ef4 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -33,10 +33,10 @@
"revisionTime": "2016-04-08T19:03:23Z"
},
{
- "checksumSHA1": "RxIwAgjIuBpwde5BCZRLLK7VRG8=",
+ "checksumSHA1": "tOtpDG/zYOvYRQeSHcg8IhZnRHQ=",
"path": "github.com/chaseadamsio/goorgeous",
- "revision": "72a06e1b07db57f3931f5a9c00f3f04e636ad0a8",
- "revisionTime": "2017-02-17T13:03:04Z"
+ "revision": "054aba677f27bd60872cfe68f8145dc57bdf4746",
+ "revisionTime": "2017-02-22T05:25:03Z"
},
{
"checksumSHA1": "ntacCkWfMT63DaehXLG5FeXWyNM=",