packages feed

hjsmin 0.0.8 → 0.0.9

raw patch · 2 files changed

+6/−6 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.8+version:         0.0.9 license:         BSD3 license-file:    LICENSE author:          Alan Zimmerman <alan.zimm@gmail.com>@@ -30,7 +30,7 @@                    , blaze-builder       >= 0.2     && < 1                    , text                >= 0.8     && < 1                    , containers          >= 0.2     && < 0.5-                   , language-javascript >= 0.2     && < 0.5+                   , language-javascript >= 0.3     && < 0.5     exposed-modules: Text.Jasmine     other-modules:   Text.Jasmine.Parse, Text.Jasmine.Pretty, Text.Jasmine.Token     ghc-options:     -Wall
runtests.hs view
@@ -176,17 +176,17 @@   testMinify "function Hello(a){ExprArray(1,1)}" src0_f    src01_semi1 = (-    "{zero.one;zero}\n"++-    "one\n"+++    "{zero.one1;zero}\n"+++    "one1\n"++     "two;three\n"++     "{{}} four;\n"++     "// five\n"++     "five")   case01_semi1 =-  "Right (JSSourceElementsTop [JSBlock (JSStatementList [JSExpression [JSMemberDot [JSIdentifier \"zero\"] (JSIdentifier \"one\")],JSLiteral \";\",JSExpression [JSIdentifier \"zero\"]]),JSExpression [JSIdentifier \"one\"],JSExpression [JSIdentifier \"two\"],JSLiteral \";\",JSExpression [JSIdentifier \"three\"],JSLiteral \";\",JSExpression [JSIdentifier \"four\"],JSLiteral \";\",JSExpression [JSIdentifier \"five\"]])"+  "Right (JSSourceElementsTop [JSBlock (JSStatementList [JSExpression [JSMemberDot [JSIdentifier \"zero\"] (JSIdentifier \"one1\")],JSLiteral \";\",JSExpression [JSIdentifier \"zero\"]]),JSExpression [JSIdentifier \"one1\"],JSExpression [JSIdentifier \"two\"],JSLiteral \";\",JSExpression [JSIdentifier \"three\"],JSLiteral \";\",JSExpression [JSIdentifier \"four\"],JSLiteral \";\",JSExpression [JSIdentifier \"five\"]])"   @=? (show $ parseProgram src01_semi1) caseMin01_semi1 =-  testMinify "{zero.one;zero};one;two;three;four;five" src01_semi1+  testMinify "{zero.one1;zero};one1;two;three;four;five" src01_semi1    src_min_100_animals = "function Animal(name){if(!name)throw new Error('Must specify an animal name');this.name=name};Animal.prototype.toString=function(){return this.name};o=new Animal(\"bob\");o.toString()==\"bob\""  case_min_100_animals =