packages feed

hjsmin 0.0.12 → 0.0.13

raw patch · 2 files changed

+11/−2 lines, 2 filesdep ~language-javascriptPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: language-javascript

API changes (from Hackage documentation)

Files

hjsmin.cabal view
@@ -1,5 +1,5 @@ name:            hjsmin-version:         0.0.12+version:         0.0.13 license:         BSD3 license-file:    LICENSE author:          Alan Zimmerman <alan.zimm@gmail.com>@@ -29,7 +29,7 @@                    , blaze-builder       >= 0.2     && < 1                    , text                >= 0.8     && < 1                    , containers          >= 0.2     && < 0.5-                   , language-javascript >= 0.4     && < 0.5+                   , language-javascript >= 0.4.3   && < 0.5     exposed-modules: Text.Jasmine     other-modules:   Text.Jasmine.Pretty     ghc-options:     -Wall
runtests.hs view
@@ -32,6 +32,7 @@     , testCase "TrailingCommas"   caseTrailingCommas     , testCase "GetSet"           caseGetSet     , testCase "Unicode"          caseUnicode+    , testCase "Issue3"           caseIssue3     ]  testSuiteMin :: Test@@ -51,6 +52,7 @@     , testCase "TrailingCommas"   caseMinTrailingCommas     , testCase "GetSet"           caseMinGetSet     , testCase "Unicode"          caseMinUnicode+    , testCase "MinIssue3"        caseMinIssue3     ]  testSuiteFiles :: Test@@ -239,6 +241,13 @@   @=? (showStrippedMaybe $ parseProgram srcUnicode) caseMinUnicode =     testMinify "var x=\"שלום\"" srcUnicode++srcIssue3 = "var myLatlng = new google.maps.LatLng(56.8379100, 60.5806664);"+caseIssue3 =+  "Right (JSSourceElementsTop [JSVariables \"var\" [JSVarDecl (JSIdentifier \"myLatlng\") [JSLiteral \"new \",JSMemberDot [JSMemberDot [JSIdentifier \"google\"] (JSIdentifier \"maps\")] (JSIdentifier \"LatLng\"),JSArguments [[JSDecimal \"56.8379100\"],[JSDecimal \"60.5806664\"]]]]])"+  @=? (showStrippedMaybe $ parseProgram srcIssue3)+caseMinIssue3 =  +  testMinify "var myLatlng=new google.maps.LatLng(56.8379100,60.5806664)" srcIssue3  -- --------------------------------------------------------------------- -- utilities