renamed project to gemcap

It was brought to my attention that there is a rust package named gemserv. I changed the name to avoid any potential confusion.
This commit is contained in:
Jonathan Lamothe 2021-11-17 13:15:36 -05:00
parent 735719aaa7
commit f751ccf191
8 changed files with 42 additions and 42 deletions

View File

@ -4,10 +4,10 @@ cabal-version: 2.2
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
name: gemserv name: gemcap
version: 0.0.0 version: 0.0.0
synopsis: simple Gemini server synopsis: a simple Gemini capsule (server)
description: simple Gemini server - see README.md for details description: a simple Gemini capsule (server) - see README.md for details
category: Gemini category: Gemini
homepage: https://codeberg.org/jlamothe/gemserv homepage: https://codeberg.org/jlamothe/gemserv
author: Jonathan Lamothe author: Jonathan Lamothe
@ -22,11 +22,11 @@ extra-source-files:
library library
exposed-modules: exposed-modules:
Network.GemServ Network.Gemini.Capsule
Network.GemServ.Internal Network.Gemini.Capsule.Internal
Network.GemServ.Types Network.Gemini.Capsule.Types
other-modules: other-modules:
Paths_gemserv Paths_gemcap
hs-source-dirs: hs-source-dirs:
src src
ghc-options: -Wall ghc-options: -Wall
@ -39,22 +39,22 @@ library
, tls , tls
, x509 , x509
default-language: Haskell2010 default-language: Haskell2010
autogen-modules: Paths_gemserv autogen-modules: Paths_gemcap
test-suite gemserv-test test-suite gemcap-test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: Spec.hs main-is: Spec.hs
other-modules: other-modules:
Network.GemServ.InternalSpec Network.Gemini.Capsule.InternalSpec
Network.GemServSpec Network.Gemini.CapsuleSpec
Paths_gemserv Paths_gemcap
hs-source-dirs: hs-source-dirs:
test test
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: build-depends:
base >=4.7 && <5 base >=4.7 && <5
, bytestring >=0.10.12.0 && <0.11 , bytestring >=0.10.12.0 && <0.11
, gemserv , gemcap
, hspec >=2.7.10 && <2.8 , hspec >=2.7.10 && <2.8
, network , network
, tcp-streams >=1.0.1.1 && <1.1 , tcp-streams >=1.0.1.1 && <1.1
@ -62,4 +62,4 @@ test-suite gemserv-test
, tls , tls
, x509 , x509
default-language: Haskell2010 default-language: Haskell2010
autogen-modules: Paths_gemserv autogen-modules: Paths_gemcap

View File

@ -1,4 +1,4 @@
name: gemserv name: gemcap
version: 0.0.0 version: 0.0.0
license: AGPL-3.0-or-later license: AGPL-3.0-or-later
author: "Jonathan Lamothe" author: "Jonathan Lamothe"
@ -10,14 +10,14 @@ extra-source-files:
- ChangeLog.md - ChangeLog.md
# Metadata used when publishing your package # Metadata used when publishing your package
synopsis: simple Gemini server synopsis: a simple Gemini capsule (server)
category: Gemini category: Gemini
homepage: https://codeberg.org/jlamothe/gemserv homepage: https://codeberg.org/jlamothe/gemserv
# To avoid duplicated efforts in documentation and dealing with the # To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is # complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file. # common to point users to the README.md file.
description: simple Gemini server - see README.md for details description: a simple Gemini capsule (server) - see README.md for details
ghc-options: ghc-options:
- -Wall - -Wall
@ -34,10 +34,10 @@ dependencies:
library: library:
source-dirs: src source-dirs: src
verbatim: &paths verbatim: &paths
autogen-modules: Paths_gemserv autogen-modules: Paths_gemcap
tests: tests:
gemserv-test: gemcap-test:
main: Spec.hs main: Spec.hs
source-dirs: test source-dirs: test
ghc-options: ghc-options:
@ -45,7 +45,7 @@ tests:
- -rtsopts - -rtsopts
- -with-rtsopts=-N - -with-rtsopts=-N
dependencies: dependencies:
- gemserv - gemcap
- hspec >= 2.7.10 && < 2.8 - hspec >= 2.7.10 && < 2.8
verbatim: verbatim:
<<: *paths <<: *paths

View File

@ -1,7 +1,7 @@
{-| {-|
Module : Network.GemServ Module : Network.Gemini.Capsule
Description : Gemini Server Stuff Description : Gemini capsule stuff
Copyright : (C) Jonathan Lamothe Copyright : (C) Jonathan Lamothe
License : AGPL-3.0-or-later License : AGPL-3.0-or-later
Maintainer : jonathan@jlamothe.net Maintainer : jonathan@jlamothe.net
@ -30,7 +30,7 @@ License along with this program. If not, see
ScopedTypeVariables, ScopedTypeVariables,
RecordWildCards #-} RecordWildCards #-}
module Network.GemServ ( module Network.Gemini.Capsule (
-- * Running a Gemini Server -- * Running a Gemini Server
runGemServer, runGemServer,
-- * Encoding/Decoding Functions -- * Encoding/Decoding Functions
@ -61,8 +61,8 @@ import Network.TLS (ServerParams, onClientCertificate, serverHooks)
import System.IO.Streams.TCP (bindAndListen) import System.IO.Streams.TCP (bindAndListen)
import System.IO.Streams.TLS (accept) import System.IO.Streams.TLS (accept)
import Network.GemServ.Internal import Network.Gemini.Capsule.Internal
import Network.GemServ.Types import Network.Gemini.Capsule.Types
-- | Builds and runs a Gemini server -- | Builds and runs a Gemini server
runGemServer runGemServer

View File

@ -1,6 +1,6 @@
{-| {-|
Module : Network.GemServ.Internal Module : Network.Gemini.Capsule.Internal
Description : internal functions (do not use) Description : internal functions (do not use)
Copyright : (C) Jonathan Lamothe Copyright : (C) Jonathan Lamothe
License : AGPL-3.0-or-later License : AGPL-3.0-or-later
@ -30,14 +30,14 @@ time.
-} -}
module Network.GemServ.Internal ( module Network.Gemini.Capsule.Internal (
readURL, readURL,
sendResponse sendResponse
) where ) where
import Data.Connection (Connection) import Data.Connection (Connection)
import Network.GemServ.Types import Network.Gemini.Capsule.Types
-- | Reads a 'GemURL' from a 'Connection' -- | Reads a 'GemURL' from a 'Connection'
readURL readURL

View File

@ -1,7 +1,7 @@
{-| {-|
Module : Network.GemServ.Types Module : Network.Gemini.Capsule.Types
Description : Gemini Server Types Description : Gemini capsule types
Copyright : (C) Jonathan Lamothe Copyright : (C) Jonathan Lamothe
License : AGPL-3.0-or-later License : AGPL-3.0-or-later
Maintainer : jonathan@jlamothe.net Maintainer : jonathan@jlamothe.net
@ -24,7 +24,7 @@ License along with this program. If not, see
-} -}
module Network.GemServ.Types ( module Network.Gemini.Capsule.Types (
-- * Types -- * Types
GemURL (..), GemURL (..),
GemRequest (..), GemRequest (..),

View File

@ -1,6 +1,6 @@
{- {-
gemserv gemcap
Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net> Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
@ -20,7 +20,7 @@ License along with this program. If not, see
-} -}
module Network.GemServ.InternalSpec (spec) where module Network.Gemini.Capsule.InternalSpec (spec) where
import Test.Hspec (Spec, describe) import Test.Hspec (Spec, describe)

View File

@ -1,6 +1,6 @@
{- {-
gemserv gemcap
Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net> Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
@ -20,17 +20,17 @@ License along with this program. If not, see
-} -}
module Network.GemServSpec (spec) where module Network.Gemini.CapsuleSpec (spec) where
import Test.Hspec (Spec, context, describe, it, shouldBe) import Test.Hspec (Spec, context, describe, it, shouldBe)
import qualified Network.GemServ.InternalSpec as Internal import qualified Network.Gemini.Capsule.InternalSpec as Internal
import Network.GemServ import Network.Gemini.Capsule
import Network.GemServ.Types import Network.Gemini.Capsule.Types
spec :: Spec spec :: Spec
spec = describe "Network.GemServ" $ do spec = describe "Network.Gemini.Capsule" $ do
Internal.spec Internal.spec
encodeGemURLSpec encodeGemURLSpec
decodeGemURLSpec decodeGemURLSpec

View File

@ -1,6 +1,6 @@
{- {-
gemserv gemcap
Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net> Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
@ -23,9 +23,9 @@ License along with this program. If not, see
module Main (main) where module Main (main) where
import Test.Hspec (hspec) import Test.Hspec (hspec)
import qualified Network.GemServSpec as GemServ import qualified Network.Gemini.CapsuleSpec as GemCap
main :: IO () main :: IO ()
main = hspec GemServ.spec main = hspec GemCap.spec
--jl --jl