Hello community,

here is the log from the commit of package ghc-mustache for openSUSE:Factory 
checked in at 2017-04-18 13:50:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-mustache (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-mustache.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-mustache"

Tue Apr 18 13:50:56 2017 rev:3 rq:489018 version:2.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-mustache/ghc-mustache.changes        
2017-04-11 09:37:50.355157122 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mustache.new/ghc-mustache.changes   
2017-04-18 13:50:58.337596055 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 11:04:06 UTC 2017 - psim...@suse.com
+
+- Update to version 2.1.3 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  mustache-2.1.2.tar.gz

New:
----
  mustache-2.1.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-mustache.spec ++++++
--- /var/tmp/diff_new_pack.LUb1pf/_old  2017-04-18 13:50:58.845524165 +0200
+++ /var/tmp/diff_new_pack.LUb1pf/_new  2017-04-18 13:50:58.849523599 +0200
@@ -19,7 +19,7 @@
 %global pkg_name mustache
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        2.1.2
+Version:        2.1.3
 Release:        0
 Summary:        A mustache template parser library
 License:        BSD-3-Clause

++++++ mustache-2.1.2.tar.gz -> mustache-2.1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.1.2/CHANGELOG.md 
new/mustache-2.1.3/CHANGELOG.md
--- old/mustache-2.1.2/CHANGELOG.md     2016-11-11 11:54:51.000000000 +0100
+++ new/mustache-2.1.3/CHANGELOG.md     2017-03-30 19:37:00.000000000 +0200
@@ -1,5 +1,9 @@
 # Mustache library changelog
 
+## v2.1.3
+
+- Added excaping for the apostrophe "'" as per xml spec, courtesy to @tfausak
+
 ## v2.1.2
 
 - Fixed template cahce again, as the spec requires access to the previous 
cache in partials as well
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.1.2/README.md new/mustache-2.1.3/README.md
--- old/mustache-2.1.2/README.md        2015-10-25 12:29:42.000000000 +0100
+++ new/mustache-2.1.3/README.md        2017-03-30 19:35:27.000000000 +0200
@@ -37,6 +37,10 @@
 
 Current implementation substitutes the `TEMPLATE` once with each `DATA-FILE`
 
+#### Example
+
+    $ haskell-mustache my-template-file data-file-1.json data-file-2.json 
data-file-3.json
+
 ## Roadmap
 
 - [x] String parser for mustache templates
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.1.2/mustache.cabal 
new/mustache-2.1.3/mustache.cabal
--- old/mustache-2.1.2/mustache.cabal   2016-11-11 11:54:53.000000000 +0100
+++ new/mustache-2.1.3/mustache.cabal   2017-03-30 19:37:10.000000000 +0200
@@ -1,5 +1,5 @@
 name:                mustache
-version:             2.1.2
+version:             2.1.3
 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
+  tag:      v2.1.3
 
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.1.2/src/Text/Mustache/Internal.hs 
new/mustache-2.1.3/src/Text/Mustache/Internal.hs
--- old/mustache-2.1.2/src/Text/Mustache/Internal.hs    2016-06-30 
11:01:45.000000000 +0200
+++ new/mustache-2.1.3/src/Text/Mustache/Internal.hs    2017-03-30 
19:35:27.000000000 +0200
@@ -34,6 +34,7 @@
 xmlEntities :: [(String, String)]
 xmlEntities =
   [ ("quot", "\"")
+  , ("#39", "'")
   , ("amp" , "&")
   , ("lt"  , "<")
   , ("gt"  , ">")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.1.2/test/unit/Spec.hs 
new/mustache-2.1.3/test/unit/Spec.hs
--- old/mustache-2.1.2/test/unit/Spec.hs        2016-08-14 10:31:34.000000000 
+0200
+++ new/mustache-2.1.3/test/unit/Spec.hs        2017-03-30 19:35:27.000000000 
+0200
@@ -116,14 +116,14 @@
     it "substitutes a html escaped value for a variable" $
       substitute
         (toTemplate [Variable escaped (NamedData ["name"])])
-        (object ["name" ~> ("<tag>" :: T.Text)])
-      `shouldBe` "&lt;tag&gt;"
+        (object ["name" ~> ("\" ' < > &" :: T.Text)])
+      `shouldBe` "&quot; &#39; &lt; &gt; &amp;"
 
     it "substitutes raw value for an unescaped variable" $
       substitute
         (toTemplate [Variable unescaped (NamedData ["name"])])
-        (object ["name" ~> ("<tag>" :: T.Text)])
-      `shouldBe` "<tag>"
+        (object ["name" ~> ("\" ' < > &" :: T.Text)])
+      `shouldBe` "\" ' < > &"
 
     it "substitutes a section when the key is present (and an empty object)" $
       substitute


Reply via email to