git-vogue 0.3.0.0 → 0.3.0.1
raw patch · 4 files changed
+23/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +8/−0
- changelog.txt +7/−0
- git-vogue.cabal +2/−2
- tests/unit.hs +6/−4
README.md view
@@ -27,6 +27,14 @@ cabal install git-vogue ``` +OR++```+git clone https://github.com/christian-marie/git-vogue.git+cd git-vogue+stack install+```+ If you wish to set up pre-commit hooks (recommended): ```bash
changelog.txt view
@@ -1,3 +1,10 @@+2018-05-12 v0.3.0.1 Christian Marie <christian@ponies.io>+ * tests: update unit tests++2018-05-12 v0.3.0.0 Christian Marie <christian@ponies.io>+ * plugins: disable ghc-mod until it builds with ghc 8.x, only latest+ stack LTS and beyond will be supported+ * misc: Setup.hs ported to cabal 2, greatly simplifying things 2017-08-25 v0.2.2.2 Christian Marie <christian@ponies.io> * plugins: cabal plugin ignores dubious warning about AllRightsReserved license
git-vogue.cabal view
@@ -1,5 +1,5 @@ name: git-vogue-version: 0.3.0.0+version: 0.3.0.1 synopsis: A framework for pre-commit checks. description: Make your Haskell git repositories fashionable. homepage: https://github.com/christian-marie/git-vogue@@ -7,7 +7,7 @@ license-file: LICENSE author: Anchor Engineering (defunct) maintainer: Christian Marie <christian@ponies.io>, Oswyn Brent <oztastic703@gmail.com>-copyright: (c) 2017 Christian Marie, Anchor Systems, Pty Ltd and Others+copyright: (c) 2018 Christian Marie, Anchor Systems, Pty Ltd and Others category: Development build-type: Simple extra-source-files: README.md, changelog.txt
tests/unit.hs view
@@ -20,6 +20,7 @@ import Control.Monad import Data.Foldable (traverse_) import Data.Map (fromList)+import Data.Traversable (traverse) import System.Directory import System.FilePath import System.IO.Temp@@ -49,12 +50,13 @@ fromList [ ("",["a.cabal","a.hs"]) , ("b/",["b.cabal", "b.hs"]) ] +-- These tests are nasty and you have my permission to kill them - Christian testLEDiscovery :: FilePath -> PluginDiscoverer IO -> Spec testLEDiscovery fixtures PluginDiscoverer{..} = do it "discovers plugins in the libexec dir" . withSetup $ do ps <- discoverPlugins fmap pluginName ps `shouldBe`- ["(non-executable) ./plugins/git-vogue/non-executable"+ ["(non-executable) ./plugins/non-executable" ,"exploding" ,"failing" ,"succeeding"@@ -73,21 +75,21 @@ it "provides check methods that do the expected things" . withSetup $ do ps <- filter enabled <$> discoverPlugins- rs <- sequence $ fmap (\Plugin{..} -> runCheck ["a"] ["a"]) ps+ rs <- traverse (\Plugin{..} -> runCheck ["a"] ["a"]) ps rs `shouldBe` [ Catastrophe 3 "something broke\n" , Failure "ohnoes\n" , Success "yay\n"] it "provides fix methods that do the expected things" . withSetup $ do ps <- filter enabled <$> discoverPlugins- rs <- sequence $ fmap (\Plugin{..} -> runFix ["a"] ["a"]) ps+ rs <- traverse (\Plugin{..} -> runFix ["a"] ["a"]) ps rs `shouldBe` [ Catastrophe 3 "something broke\n" , Failure "ohnoes\n" , Success "yay\n"] where withSetup = withGitRepo- . withCopy (fixtures </> "plugins") ("plugins" </> "git-vogue")+ . withCopy (fixtures </> "plugins") "./" testGitVCS :: VCS IO -> Spec testGitVCS VCS{..} = do