packages feed

yesod-auth-hashdb 1.5.1 → 1.5.1.1

raw patch · 6 files changed

+22/−6 lines, 6 filesdep +basic-preludedep −classy-preludePVP ok

version bump matches the API change (PVP)

Dependencies added: basic-prelude

Dependencies removed: classy-prelude

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,8 @@+## 1.5.1.1++* Minor documentation improvement+* Reduce external-library dependencies for tests+ ## 1.5.1  * Include CSRF token in default form
Yesod/Auth/HashDB.hs view
@@ -101,6 +101,10 @@ -- >     <input type="password" name="password"> -- >     <input type="submit" value="Login"> --+-- If a CSRF token needs to be embedded in a custom form, code must be+-- included in the widget to add it - see @defaultForm@ in the source+-- code of this module for an example.+-- ------------------------------------------------------------------------------- module Yesod.Auth.HashDB     ( HashDBUser(..)
+ stack.yaml view
@@ -0,0 +1,4 @@+resolver: lts-5.4+packages: +- .+extra-deps: []
test/IntegrationTest.hs view
@@ -7,7 +7,7 @@     integrationSpec ) where -import ClassyPrelude+import BasicPrelude import Test.Hspec                   (Spec, SpecWith, before,                                      describe, context, it) import qualified Yesod.Test as YT
test/TestTools.hs view
@@ -13,7 +13,9 @@ ) where  import TestSite           (App(..))-import ClassyPrelude+import BasicPrelude+import Data.Text          (pack, unpack)+import Data.ByteString.Lazy (toStrict) import Yesod.Core         (RedirectUrl) import Yesod.Test import qualified Data.ByteString.Char8 as BC@@ -79,8 +81,8 @@     withResponse ( \ SResponse { simpleStatus = s, simpleHeaders = h } -> do                         let code = statusCode s                         assertEqual ("Expected a 302 or 303 redirection status "-                                     ++ "but received " ++ show code)-                                    (code `oelem` [302,303])+                                     ++ "but received " ++ unpack (show code))+                                    (code `elem` [302,303])                                     True                         return $ lookup "Location" h                  )
yesod-auth-hashdb.cabal view
@@ -1,5 +1,5 @@ name:            yesod-auth-hashdb-version:         1.5.1+version:         1.5.1.1 license:         MIT license-file:    LICENSE author:          Patrick Brisbin, later changes Paul Rouse@@ -27,6 +27,7 @@     package.  (Note that other authentication plugins may be more appropriate     if you wish to use email verification to set up accounts). extra-source-files:  ChangeLog.md+                     stack.yaml  library     build-depends:   base                    >= 4          && < 5@@ -65,7 +66,7 @@                    , TestTools     build-depends:   base >= 4 && < 5                    , bytestring-                   , classy-prelude+                   , basic-prelude                    , containers                    , hspec                   >= 2.0.0                    , http-conduit