spacecookie 1.1.0.0 → 1.1.0.1
raw patch · 4 files changed
+34/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +14/−0
- spacecookie.cabal +14/−5
- src/Network/Gopher.hs +1/−1
- test/Test/Integration.hs +5/−1
CHANGELOG.md view
@@ -1,5 +1,19 @@ # Revision history for spacecookie +I am currently trying to decide on the maintenance mode of+spacecookie going forward, especially the included server daemon.+It would help me to hear from users of this software, in particular+what parts of it they're using. If you count yourself among those users,+I'd be grateful if you'd reach out to me at <sternenseemann@systemli.org>.++## 1.1.0.1++2026-04-17++* Fix menu responses not being terminated by the _Lastline_ pattern.+* Add `install-daemon` Cabal flag (on by default) which controls+ whether the executable component of the package is built.+ ## 1.1.0.0 2026-04-06
spacecookie.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: spacecookie-version: 1.1.0.0+version: 1.1.0.1 synopsis: Gopher server library and daemon description: Simple gopher library that allows writing custom gopher applications. Also includes a fully-featured gopher server@@ -13,15 +13,15 @@ build-type: Simple homepage: https://github.com/sternenseemann/spacecookie bug-reports: https://github.com/sternenseemann/spacecookie/issues-extra-source-files: CHANGELOG.md+extra-doc-files: CHANGELOG.md README.md- etc/spacecookie.json- etc/spacecookie.service- etc/spacecookie.socket docs/rfc1436.txt docs/man/spacecookie.1 docs/man/spacecookie.json.5 docs/man/spacecookie.gophermap.5+extra-source-files: etc/spacecookie.json+ etc/spacecookie.service+ etc/spacecookie.socket test/data/pygopherd.gophermap test/data/bucktooth.gophermap test/integration/root/.gophermap@@ -33,6 +33,11 @@ test/integration/root/plain.txt test/integration/spacecookie.json +flag install-daemon+ description: Whether to build and install the executable spacecookie gopher daemon+ default: True+ manual: True+ common common default-language: Haskell2010 build-depends: base >= 4.9 && <5@@ -62,6 +67,10 @@ executable spacecookie import: common, common-executables , lib-exec-deps, exec-test-deps++ if !flag(install-daemon)+ buildable: False+ main-is: Main.hs build-depends: spacecookie , aeson >= 1.5 && < 2.3
src/Network/Gopher.hs view
@@ -416,4 +416,4 @@ ] in do cfg <- serverConfig <$> ask- pure $ foldl (appendItem cfg) mempty items+ pure $ foldl (appendItem cfg) mempty items <> BB.byteString ".\r\n"
test/Test/Integration.hs view
@@ -125,6 +125,7 @@ , "i\t\tlocalhost\t7000\r\n" , "1external 1\t/\tthis.is.bogus.org\t7000\r\n" , "1external 2\t/\tsdf.org\t70\r\n"+ , ".\r\n" ] expectedDir :: [ByteString]@@ -133,9 +134,12 @@ , "0mystery-file\t/dir/mystery-file\tlocalhost\t7000\r" , "0strange.tXT\t/dir/strange.tXT\tlocalhost\t7000\r" , "4macintosh.hqx\t/dir/macintosh.hqx\tlocalhost\t7000\r"+ , ".\r" ] expectedErrorMessage :: ByteString expectedErrorMessage = mconcat [ "3The requested resource '/not-here.txt' does not exist"- , " or is not available.\tErr\tlocalhost\t7000\r\n" ]+ , " or is not available.\tErr\tlocalhost\t7000\r\n"+ , ".\r\n"+ ]