Hello community, here is the log from the commit of package ghc-mustache for openSUSE:Factory checked in at 2017-06-04 01:57:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-mustache (Old) and /work/SRC/openSUSE:Factory/.ghc-mustache.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-mustache" Sun Jun 4 01:57:58 2017 rev:4 rq:499715 version:2.1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-mustache/ghc-mustache.changes 2017-04-18 13:50:58.337596055 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mustache.new/ghc-mustache.changes 2017-06-04 01:58:01.999421652 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:24 UTC 2017 - [email protected] + +- Update to version 2.1.4 with cabal2obs. + +------------------------------------------------------------------- Old: ---- mustache-2.1.3.tar.gz New: ---- mustache-2.1.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-mustache.spec ++++++ --- /var/tmp/diff_new_pack.XsNoJE/_old 2017-06-04 01:58:02.643330684 +0200 +++ /var/tmp/diff_new_pack.XsNoJE/_new 2017-06-04 01:58:02.647330119 +0200 @@ -19,7 +19,7 @@ %global pkg_name mustache %bcond_with tests Name: ghc-%{pkg_name} -Version: 2.1.3 +Version: 2.1.4 Release: 0 Summary: A mustache template parser library License: BSD-3-Clause ++++++ mustache-2.1.3.tar.gz -> mustache-2.1.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mustache-2.1.3/CHANGELOG.md new/mustache-2.1.4/CHANGELOG.md --- old/mustache-2.1.3/CHANGELOG.md 2017-03-30 19:37:00.000000000 +0200 +++ new/mustache-2.1.4/CHANGELOG.md 2017-05-13 21:10:14.000000000 +0200 @@ -1,5 +1,9 @@ # Mustache library changelog +## v2.1.4 + +- Treat Null as falsy in sections + ## v2.1.3 - Added excaping for the apostrophe "'" as per xml spec, courtesy to @tfausak diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mustache-2.1.3/mustache.cabal new/mustache-2.1.4/mustache.cabal --- old/mustache-2.1.3/mustache.cabal 2017-03-30 19:37:10.000000000 +0200 +++ new/mustache-2.1.4/mustache.cabal 2017-05-13 21:10:14.000000000 +0200 @@ -1,5 +1,5 @@ name: mustache -version: 2.1.3 +version: 2.1.4 synopsis: A mustache template parser library. description: Allows parsing and rendering template files with mustache markup. See the @@ -33,7 +33,7 @@ type: git branch: master location: git://github.com/JustusAdam/mustache.git - tag: v2.1.3 + tag: v2.1.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mustache-2.1.3/src/Text/Mustache/Render.hs new/mustache-2.1.4/src/Text/Mustache/Render.hs --- old/mustache-2.1.3/src/Text/Mustache/Render.hs 2017-03-30 19:35:27.000000000 +0200 +++ new/mustache-2.1.4/src/Text/Mustache/Render.hs 2017-05-13 21:10:14.000000000 +0200 @@ -150,6 +150,7 @@ in mapM_ (substitute' newContext) secSTree Just (Bool False) -> return () + Just Null -> return () Just (Lambda l) -> mapM_ (substitute' context) (l context secSTree) Just focus' -> let diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mustache-2.1.3/test/unit/Spec.hs new/mustache-2.1.4/test/unit/Spec.hs --- old/mustache-2.1.3/test/unit/Spec.hs 2017-03-30 19:35:27.000000000 +0200 +++ new/mustache-2.1.4/test/unit/Spec.hs 2017-05-13 21:10:14.000000000 +0200 @@ -173,6 +173,12 @@ (object ["section" ~> False]) `shouldBe` "" + it "does not substitute a section when the key is present (and null)" $ + substitute + (toTemplate [Section (NamedData ["section"]) [TextBlock "t"]]) + (object ["section" ~> Null]) + `shouldBe` "" + it "does not substitute a section when the key is present (and empty list)" $ substitute (toTemplate [Section (NamedData ["section"]) [TextBlock "t"]])
