packages feed

wai-routes 0.9.1 → 0.9.2

raw patch · 4 files changed

+25/−7 lines, 4 filesbinary-addedPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.md view
@@ -1,4 +1,4 @@-[Wai-Routes](https://ajnsit.github.io/wai-routes) [![Hackage](https://img.shields.io/badge/hackage-v0.9.1-brightgreen.svg)](https://hackage.haskell.org/package/wai-routes) [![Hackage-Deps](https://img.shields.io/hackage-deps/v/wai-routes.svg)](http://packdeps.haskellers.com/feed?needle=wai-routes) [![Build Status](https://img.shields.io/travis/ajnsit/wai-routes.svg)](https://travis-ci.org/ajnsit/wai-routes) [![Join the chat at https://gitter.im/ajnsit/wai-routes](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%A3-blue.svg)](https://gitter.im/ajnsit/wai-routes)+[Wai-Routes](https://ajnsit.github.io/wai-routes) [![Hackage](https://img.shields.io/badge/hackage-v0.9.2-brightgreen.svg)](https://hackage.haskell.org/package/wai-routes) [![Hackage-Deps](https://img.shields.io/hackage-deps/v/wai-routes.svg)](http://packdeps.haskellers.com/feed?needle=wai-routes) [![Build Status](https://img.shields.io/travis/ajnsit/wai-routes.svg)](https://travis-ci.org/ajnsit/wai-routes) [![Join the chat at https://gitter.im/ajnsit/wai-routes](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%A3-blue.svg)](https://gitter.im/ajnsit/wai-routes) ====================================  Wai-routes is a micro web framework for Haskell that focuses on typesafe URLs.@@ -105,6 +105,7 @@ Changelog ========= +* 0.9.2 : Fix failing test in release tarball. (Only tests changed). * 0.9.1 : Greatly simplified subsites (simply use mkRouteSub). Added 'mountedAppHandler' to integrate external full wai apps. * 0.9.0 : Support for "unrouted" handlers. API changes to avoid returning lazy text or bytestring. Methods to fetch post/file params. Removed 'HandlerMM' and made 'Handler' more useful. * 0.8.1 : Bumped dependencies. Added 'HandlerMM' type alias
test/HelloSpec.hs view
@@ -47,7 +47,10 @@ /          HomeR GET /some-json FooR  GET /post      PostR POST-/sub       SubR SubRoute getSubRoute+/subsite   SubR SubRoute getSubRoute+/nested       NestedR:+  /             NRootR     GET+  /abcd         AbcdR      GET |]  getHomeR :: Handler MyRoute@@ -62,6 +65,11 @@   name <- getParam "name"   plain $ fromMaybe "unnamed" name +-- Nested routes+getNRootR, getAbcdR :: Handler MyRoute+getNRootR = runHandlerM $ plain "Nested ROOT"+getAbcdR  = runHandlerM $ plain "Nested ABCD"+ -- An example of an unrouted handler handleInfoRequest :: Handler DefaultMaster handleInfoRequest = runHandlerM $ do@@ -103,9 +111,17 @@     it "can read post body parameters" $       postHtmlForm "/post" [("name","foobar")] `shouldRespondWith` "foobar" {matchStatus = 200, matchHeaders = ["Content-Type" <:> "text/plain; charset=utf-8"]} -  describe "GET /sub" $+  describe "GET /subsite" $     it "can access the subsite correctly" $-      get "/sub" `shouldRespondWith` "subsite-MyRoute" {matchStatus = 200, matchHeaders = ["Content-Type" <:> "text/plain; charset=utf-8"]}+      get "/subsite" `shouldRespondWith` "subsite-MyRoute" {matchStatus = 200, matchHeaders = ["Content-Type" <:> "text/plain; charset=utf-8"]}++  describe "GET /nested" $+    it "can access nested routes root correctly" $+      get "/nested" `shouldRespondWith` "Nested ROOT" {matchStatus = 200, matchHeaders = ["Content-Type" <:> "text/plain; charset=utf-8"]}++  describe "GET /nested/abcd" $+    it "can access nested routes correctly" $+      get "/nested/abcd" `shouldRespondWith` "Nested ABCD" {matchStatus = 200, matchHeaders = ["Content-Type" <:> "text/plain; charset=utf-8"]}    describe "GET /lambda.png" $     it "returns a file correctly" $
+ test/static/lambda.png view

binary file changed (absent → 3056 bytes)

wai-routes.cabal view
@@ -1,5 +1,5 @@ name               : wai-routes-version            : 0.9.1+version            : 0.9.2 cabal-version      : >=1.18 build-type         : Simple license            : MIT@@ -13,6 +13,7 @@ author             : Anupam Jain data-dir           : "" extra-source-files : README.md+                   , test/static/lambda.png  source-repository head     type     : git@@ -20,8 +21,8 @@  source-repository this     type     : git-    location : http://github.com/ajnsit/wai-routes/tree/v0.9.1-    tag      : v0.9.1+    location : http://github.com/ajnsit/wai-routes/tree/v0.9.2+    tag      : v0.9.2  library     build-depends      : base               >= 4.7  && < 4.9