lentil 1.4.1.0 → 1.5.0.0
raw patch · 9 files changed
+41/−9 lines, 9 files
Files
- changes.txt +7/−1
- doc/usr/page.rst +10/−0
- issues.txt +1/−1
- lentil.cabal +2/−2
- src/Lentil/Args.hs +1/−1
- src/Lentil/Export.hs +5/−1
- src/Lentil/Types.hs +1/−1
- src/Main.hs +3/−2
- test/Lentil/ExportSpec.hs +11/−0
changes.txt view
@@ -1,8 +1,14 @@+1.5.0.0+-------++- Wed 13 Jan 2021 15:31:54 CET+- Added `file` filelist export format (request by Henning Thielemann)+ 1.4.1.0 ------- - Fri 13 Nov 2020 09:36:31 CET-- Fixed bug in R (`) (syntactic backquotes+- Fixed bug in R (`) (syntactic backquotes) 1.4.0.0 -------
doc/usr/page.rst view
@@ -295,6 +295,16 @@ This is useful because it is recognised by editors like Emacs, which can turn them into active links to the relevant file/position. +``-f file`` exports a filelist.++::++ src/Lentil/Export.hs+ src/Lentil/File.hs+ src/Lentil/Parse/Run.hs+ src/Lentil/Parse/Syntaxes.hs+ src/Main.hs+ .. raw:: html <p><br/></p>
issues.txt view
@@ -23,7 +23,7 @@ [request] 36 Consider using https://github.com/github/semantic ? [design] 45 lowercase does not work (not recognised, .r vs. .R) [bug]- 112 rst parser doesn't respect whitespace or paragraphs. How to+ 115 rst parser doesn't respect whitespace or paragraphs. How to implement this without breaking other parsers? [bug] [design] src/Main.hs
lentil.cabal view
@@ -1,5 +1,5 @@ name: lentil-version: 1.4.1.0+version: 1.5.0.0 synopsis: frugal issue tracker description: minumum effort, cohesive issue tracker based on ubiquitous @TODO@s and @FIXME@s conventions.@@ -11,7 +11,7 @@ author: Francesco Ariis <fa-ml@ariis.it> et al. (check authors.txt) maintainer: Francesco Ariis <fa-ml@ariis.it>-copyright: © 2015-2020 Francesco Ariis et al. (check authors.txt)+copyright: © 2015-2021 Francesco Ariis et al. (check authors.txt) category: Development, Project Management stability: Stable build-type: Simple
src/Lentil/Args.hs view
@@ -63,7 +63,7 @@ ( short 'f' <> metavar "TYPE" <> value Pretty <>- help "output format (pretty, tagpop, csv, comp, xml)" )+ help "output format (pretty, tagpop, file, csv, comp, xml)" ) where parseFormat :: String -> ReadM Format parseFormat s = let asl = map forTup (enumFrom minBound)
src/Lentil/Export.hs view
@@ -51,12 +51,16 @@ file = prettyFP . iFile groupBy = L.groupBy ((==) `on` file) --- markdown output+-- todo [feature] [u:3] markdown output -- - che genere di header? o lista di liste? -- - come mettere i tag? /[[cdsacad] [cdsac]/ -- - lista? minuses -- - wrap at 80? sì -- - cmark++issues2File :: [Issue] -> String+issues2File is = unlines . L.nub . L.sort $ map iFile is+ ----------------- -- ANCILLARIES --
src/Lentil/Types.hs view
@@ -49,7 +49,7 @@ -- output format-data Format = TagPop | Pretty | Csv | Comp | Xml+data Format = TagPop | Pretty | File | Csv | Comp | Xml deriving (Show, Eq, Enum, Bounded) -- comp: as gcc/ghc would output warnings
src/Main.hs view
@@ -37,8 +37,8 @@ short 'v' S.<> help "show version and copyright info" ) where- versionCopy = "\nlentil - frugal issue tracker, version 1.4.1.0\n\- \(C) 2015-2020 Francesco Ariis - http://www.ariis.it\n\+ versionCopy = "\nlentil - frugal issue tracker, version 1.5.0.0\n\+ \(C) 2015-2021 Francesco Ariis - http://www.ariis.it\n\ \released under the GNU General Public License v3\n" @@ -65,6 +65,7 @@ case loFormat lo of Pretty -> outFunction (ppIssues bCol fil) TagPop -> outFunction (ppPopularity bCol fil)+ File -> outFunction (issues2File fil) Csv -> outFunction (issues2CSV fil) Comp -> outFunction (issues2Compiler fil) Xml -> outFunction (issues2Xml fil)
test/Lentil/ExportSpec.hs view
@@ -35,6 +35,11 @@ , "</issue>" , "</file></issues>", "\n"] +file :: String+file = unlines+ ["./file",+ "file"]+ main :: IO () main = hspec spec @@ -60,4 +65,10 @@ describe "issues2Xml" $ do it "exports issues to xml output format" $ issues2Xml is `shouldBe` xml++ describe "issues2File" $ do+ it "exports file list" $+ issues2File is `shouldBe` file+ it "does not duplicate files" $+ issues2File (is++is) `shouldBe` file