servant-auth-client 0.2.7.0 → 0.2.7.1
raw patch · 3 files changed
+16/−11 lines, 3 filesdep ~servantdep ~servant-clientnew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: servant, servant-client
API changes (from Hackage documentation)
Files
- package.yaml +3/−3
- servant-auth-client.cabal +7/−7
- test/Servant/Auth/ClientSpec.hs +6/−1
package.yaml view
@@ -1,5 +1,5 @@ name: servant-auth-client-version: 0.2.7.0+version: 0.2.7.1 synopsis: servant-client/servant-auth compatibility description: | This package provides instances that allow generating clients from@@ -27,9 +27,9 @@ - base >= 4.7 && < 4.10 - text - bytestring- - servant-client >= 0.7 && < 0.11+ - servant-client >= 0.7 && < 0.12 - servant-auth == 0.2.*- - servant >= 0.7 && < 0.11+ - servant >= 0.7 && < 0.12 default-extensions: - AutoDeriveTypeable
servant-auth-client.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: servant-auth-client-version: 0.2.7.0+version: 0.2.7.1 synopsis: servant-client/servant-auth compatibility description: This package provides instances that allow generating clients from <https://hackage.haskell.org/package/servant servant>@@ -39,9 +39,9 @@ base >= 4.7 && < 4.10 , text , bytestring- , servant-client >= 0.7 && < 0.11+ , servant-client >= 0.7 && < 0.12 , servant-auth == 0.2.*- , servant >= 0.7 && < 0.11+ , servant >= 0.7 && < 0.12 exposed-modules: Servant.Auth.Client Servant.Auth.Client.Internal@@ -58,9 +58,9 @@ base >= 4.7 && < 4.10 , text , bytestring- , servant-client >= 0.7 && < 0.11+ , servant-client >= 0.7 && < 0.12 , servant-auth == 0.2.*- , servant >= 0.7 && < 0.11+ , servant >= 0.7 && < 0.12 , doctest >= 0.9 && < 0.12 , Glob >= 0.7 && < 0.8 , yaml == 0.8.*@@ -80,9 +80,9 @@ base >= 4.7 && < 4.10 , text , bytestring- , servant-client >= 0.7 && < 0.11+ , servant-client >= 0.7 && < 0.12 , servant-auth == 0.2.*- , servant >= 0.7 && < 0.11+ , servant >= 0.7 && < 0.12 , servant-auth-client , hspec > 2 && < 3 , QuickCheck >= 2.8 && < 2.10
test/Servant/Auth/ClientSpec.hs view
@@ -60,7 +60,12 @@ it "fails when token is expired" $ \port -> property $ \user -> do tok <- mkTok user (Just past)- Left (FailureResponse stat _ _) <- getIntClient tok mgr (BaseUrl Http "localhost" port "")+#if MIN_VERSION_servant_client(0,11,0)+ Left (FailureResponse _ stat _ _)+#else+ Left (FailureResponse stat _ _)+#endif+ <- getIntClient tok mgr (BaseUrl Http "localhost" port "") stat `shouldBe` status401