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:
parent
735719aaa7
commit
f751ccf191
|
@ -4,10 +4,10 @@ cabal-version: 2.2
|
|||
--
|
||||
-- see: https://github.com/sol/hpack
|
||||
|
||||
name: gemserv
|
||||
name: gemcap
|
||||
version: 0.0.0
|
||||
synopsis: simple Gemini server
|
||||
description: simple Gemini server - see README.md for details
|
||||
synopsis: a simple Gemini capsule (server)
|
||||
description: a simple Gemini capsule (server) - see README.md for details
|
||||
category: Gemini
|
||||
homepage: https://codeberg.org/jlamothe/gemserv
|
||||
author: Jonathan Lamothe
|
||||
|
@ -22,11 +22,11 @@ extra-source-files:
|
|||
|
||||
library
|
||||
exposed-modules:
|
||||
Network.GemServ
|
||||
Network.GemServ.Internal
|
||||
Network.GemServ.Types
|
||||
Network.Gemini.Capsule
|
||||
Network.Gemini.Capsule.Internal
|
||||
Network.Gemini.Capsule.Types
|
||||
other-modules:
|
||||
Paths_gemserv
|
||||
Paths_gemcap
|
||||
hs-source-dirs:
|
||||
src
|
||||
ghc-options: -Wall
|
||||
|
@ -39,22 +39,22 @@ library
|
|||
, tls
|
||||
, x509
|
||||
default-language: Haskell2010
|
||||
autogen-modules: Paths_gemserv
|
||||
autogen-modules: Paths_gemcap
|
||||
|
||||
test-suite gemserv-test
|
||||
test-suite gemcap-test
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: Spec.hs
|
||||
other-modules:
|
||||
Network.GemServ.InternalSpec
|
||||
Network.GemServSpec
|
||||
Paths_gemserv
|
||||
Network.Gemini.Capsule.InternalSpec
|
||||
Network.Gemini.CapsuleSpec
|
||||
Paths_gemcap
|
||||
hs-source-dirs:
|
||||
test
|
||||
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends:
|
||||
base >=4.7 && <5
|
||||
, bytestring >=0.10.12.0 && <0.11
|
||||
, gemserv
|
||||
, gemcap
|
||||
, hspec >=2.7.10 && <2.8
|
||||
, network
|
||||
, tcp-streams >=1.0.1.1 && <1.1
|
||||
|
@ -62,4 +62,4 @@ test-suite gemserv-test
|
|||
, tls
|
||||
, x509
|
||||
default-language: Haskell2010
|
||||
autogen-modules: Paths_gemserv
|
||||
autogen-modules: Paths_gemcap
|
12
package.yaml
12
package.yaml
|
@ -1,4 +1,4 @@
|
|||
name: gemserv
|
||||
name: gemcap
|
||||
version: 0.0.0
|
||||
license: AGPL-3.0-or-later
|
||||
author: "Jonathan Lamothe"
|
||||
|
@ -10,14 +10,14 @@ extra-source-files:
|
|||
- ChangeLog.md
|
||||
|
||||
# Metadata used when publishing your package
|
||||
synopsis: simple Gemini server
|
||||
synopsis: a simple Gemini capsule (server)
|
||||
category: Gemini
|
||||
homepage: https://codeberg.org/jlamothe/gemserv
|
||||
|
||||
# To avoid duplicated efforts in documentation and dealing with the
|
||||
# complications of embedding Haddock markup inside cabal files, it is
|
||||
# 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:
|
||||
- -Wall
|
||||
|
@ -34,10 +34,10 @@ dependencies:
|
|||
library:
|
||||
source-dirs: src
|
||||
verbatim: &paths
|
||||
autogen-modules: Paths_gemserv
|
||||
autogen-modules: Paths_gemcap
|
||||
|
||||
tests:
|
||||
gemserv-test:
|
||||
gemcap-test:
|
||||
main: Spec.hs
|
||||
source-dirs: test
|
||||
ghc-options:
|
||||
|
@ -45,7 +45,7 @@ tests:
|
|||
- -rtsopts
|
||||
- -with-rtsopts=-N
|
||||
dependencies:
|
||||
- gemserv
|
||||
- gemcap
|
||||
- hspec >= 2.7.10 && < 2.8
|
||||
verbatim:
|
||||
<<: *paths
|
|
@ -1,7 +1,7 @@
|
|||
{-|
|
||||
|
||||
Module : Network.GemServ
|
||||
Description : Gemini Server Stuff
|
||||
Module : Network.Gemini.Capsule
|
||||
Description : Gemini capsule stuff
|
||||
Copyright : (C) Jonathan Lamothe
|
||||
License : AGPL-3.0-or-later
|
||||
Maintainer : jonathan@jlamothe.net
|
||||
|
@ -30,7 +30,7 @@ License along with this program. If not, see
|
|||
ScopedTypeVariables,
|
||||
RecordWildCards #-}
|
||||
|
||||
module Network.GemServ (
|
||||
module Network.Gemini.Capsule (
|
||||
-- * Running a Gemini Server
|
||||
runGemServer,
|
||||
-- * Encoding/Decoding Functions
|
||||
|
@ -61,8 +61,8 @@ import Network.TLS (ServerParams, onClientCertificate, serverHooks)
|
|||
import System.IO.Streams.TCP (bindAndListen)
|
||||
import System.IO.Streams.TLS (accept)
|
||||
|
||||
import Network.GemServ.Internal
|
||||
import Network.GemServ.Types
|
||||
import Network.Gemini.Capsule.Internal
|
||||
import Network.Gemini.Capsule.Types
|
||||
|
||||
-- | Builds and runs a Gemini server
|
||||
runGemServer
|
|
@ -1,6 +1,6 @@
|
|||
{-|
|
||||
|
||||
Module : Network.GemServ.Internal
|
||||
Module : Network.Gemini.Capsule.Internal
|
||||
Description : internal functions (do not use)
|
||||
Copyright : (C) Jonathan Lamothe
|
||||
License : AGPL-3.0-or-later
|
||||
|
@ -30,14 +30,14 @@ time.
|
|||
|
||||
-}
|
||||
|
||||
module Network.GemServ.Internal (
|
||||
module Network.Gemini.Capsule.Internal (
|
||||
readURL,
|
||||
sendResponse
|
||||
) where
|
||||
|
||||
import Data.Connection (Connection)
|
||||
|
||||
import Network.GemServ.Types
|
||||
import Network.Gemini.Capsule.Types
|
||||
|
||||
-- | Reads a 'GemURL' from a 'Connection'
|
||||
readURL
|
|
@ -1,7 +1,7 @@
|
|||
{-|
|
||||
|
||||
Module : Network.GemServ.Types
|
||||
Description : Gemini Server Types
|
||||
Module : Network.Gemini.Capsule.Types
|
||||
Description : Gemini capsule types
|
||||
Copyright : (C) Jonathan Lamothe
|
||||
License : AGPL-3.0-or-later
|
||||
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
|
||||
GemURL (..),
|
||||
GemRequest (..),
|
|
@ -1,6 +1,6 @@
|
|||
{-
|
||||
|
||||
gemserv
|
||||
gemcap
|
||||
|
||||
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)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{-
|
||||
|
||||
gemserv
|
||||
gemcap
|
||||
|
||||
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 qualified Network.GemServ.InternalSpec as Internal
|
||||
import qualified Network.Gemini.Capsule.InternalSpec as Internal
|
||||
|
||||
import Network.GemServ
|
||||
import Network.GemServ.Types
|
||||
import Network.Gemini.Capsule
|
||||
import Network.Gemini.Capsule.Types
|
||||
|
||||
spec :: Spec
|
||||
spec = describe "Network.GemServ" $ do
|
||||
spec = describe "Network.Gemini.Capsule" $ do
|
||||
Internal.spec
|
||||
encodeGemURLSpec
|
||||
decodeGemURLSpec
|
|
@ -1,6 +1,6 @@
|
|||
{-
|
||||
|
||||
gemserv
|
||||
gemcap
|
||||
|
||||
Cooyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
|
||||
|
||||
|
@ -23,9 +23,9 @@ License along with this program. If not, see
|
|||
module Main (main) where
|
||||
|
||||
import Test.Hspec (hspec)
|
||||
import qualified Network.GemServSpec as GemServ
|
||||
import qualified Network.Gemini.CapsuleSpec as GemCap
|
||||
|
||||
main :: IO ()
|
||||
main = hspec GemServ.spec
|
||||
main = hspec GemCap.spec
|
||||
|
||||
--jl
|
||||
|
|
Loading…
Reference in New Issue
Block a user