packages feed

wai-session-postgresql 0.2.0.3 → 0.2.0.4

raw patch · 3 files changed

+25/−7 lines, 3 filesdep ~timedep ~waiPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: time, wai

API changes (from Hackage documentation)

Files

changelog.md view
@@ -1,3 +1,8 @@+0.2.0.4 / 2016-01-09+--------------------++- Make compatible with the newest versions of wai (3.2.0) and time (1.6)+ 0.2.0.1 / 2016-01-03 -------------------- 
test/Spec.hs view
@@ -1,6 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} module Main where +import Control.Concurrent (threadDelay) import Control.Exception.Base (assert) import Control.Monad import Data.Default (def)@@ -17,8 +18,8 @@ main = do     conn <- dbconnect     conn' <- fromSimpleConnection conn-    store <- dbStore conn' def-    purger conn' def+    store <- dbStore conn' testSettings+    purger conn' testSettings      ((lookupSess1, insertSess1), mknewsessid) <- store Nothing     sessid <- mknewsessid@@ -46,10 +47,19 @@     assert (newsessid2 /= newsessid) it     assert (newsessid2 /= invalidsessid) it -    l3 <- lookupSess3 "foo"-    assert (l3 == Nothing) it+    l4 <- lookupSess3 "foo"+    assert (l4 == Nothing) it +    ((lookupSess4, insertSess4), mknewsessid) <- store $ Just sessid+    l5 <- lookupSess4 "foo"+    assert (l5 == (Just "bar")) it +    threadDelay 6000000++    ((lookupSess5, insertSess5), mknewsessid) <- store $ Just sessid+    l6 <- lookupSess5 "foo"+    assert (l6 == Nothing) it+ it :: IO () it = return () @@ -62,3 +72,6 @@         , connectPassword = "omed"         , connectDatabase = "demodb" }     connectPostgreSQL $ postgreSQLConnectionString connectInfo++testSettings :: StoreSettings+testSettings = def { storeSettingsSessionTimeout=5 }
wai-session-postgresql.cabal view
@@ -1,5 +1,5 @@ name:                wai-session-postgresql-version:             0.2.0.3+version:             0.2.0.4 synopsis:            PostgreSQL backed Wai session store description:         Provides a PostgreSQL backed session store for the Network.Wai.Session interface. homepage:            https://github.com/hce/postgresql-session#readme@@ -28,9 +28,9 @@                      , postgresql-simple >= 0.4.0 && < 0.6                      , resource-pool >= 0.2.3 && < 0.3                      , text >= 0.11.3.1 && < 1.3-                     , time >= 1.4.0.1 && < 1.6+                     , time >= 1.4.0.1 && < 1.7                      , transformers >= 0.3.0 && < 0.5-                     , wai >= 3.0.2.3 && < 3.1+                     , wai >= 3.0.2.3 && < 3.3                      , wai-session >= 0.3.2 && < 0.4   default-language:    Haskell2010   default-extensions:  OverloadedStrings