lentil 1.0.3.1 → 1.0.3.2
raw patch · 6 files changed
+21/−8 lines, 6 filesdep ~pipes
Dependency ranges changed: pipes
Files
- changes.txt +7/−0
- contributors.txt +3/−0
- lentil.cabal +4/−4
- src/Lentil/Parse/Issue.hs +4/−2
- src/Main.hs +1/−1
- test/Lentil/Parse/IssueSpec.hs +2/−1
changes.txt view
@@ -1,3 +1,10 @@+1.0.3.2+-------++- Released Mon 12 Dec 2016 21:13:38 CET+- Bumped pipes dep (so hackage build won't fail).+- This release should fix a testfile error.+ 1.0.3.1 -------
contributors.txt view
@@ -2,6 +2,7 @@ Michał Antkiewi Francesco Ariis+Artyom Kazak Anton Felix Lorenzen Francesco Mazzoli Simon Michael@@ -12,3 +13,5 @@ Peter Simons Henning Thielemann Tomislav+Tuncer Ayaz+YongJoon Joe
lentil.cabal view
@@ -1,5 +1,5 @@ name: lentil-version: 1.0.3.1+version: 1.0.3.2 synopsis: frugal issue tracker description: minumum effort, cohesive issue tracker based on ubiquitous @TODO@s and @FIXME@s conventions.@@ -12,7 +12,7 @@ copyright: © 2015-2016 Francesco Ariis category: Development build-type: Simple-tested-with: GHC==8.0.1+tested-with: GHC==7.8.4, GHC==8.0.1 extra-source-files: stack.yaml, test/test-files/lang-comm/clang.c, test/test-files/lang-comm/haskell.hs,@@ -53,7 +53,7 @@ build-depends: base==4.*, optparse-applicative==0.13.*, regex-tdfa==1.2.*, natural-sort==0.1.*, parsec==3.1.*, filepath==1.4.*, directory==1.2.*, filemanip==0.3.*,- ansi-wl-pprint==0.6.*, csv==0.1.*, pipes==4.2.*,+ ansi-wl-pprint==0.6.*, csv==0.1.*, pipes==4.3.*, terminal-progress-bar==0.0.*, text==1.2.*, semigroups==0.18.* other-modules: Lentil.Types, Lentil.Args, Lentil.File, Lentil.Print,@@ -71,7 +71,7 @@ build-depends: base==4.*, optparse-applicative==0.13.*, regex-tdfa==1.2.*, natural-sort==0.1.*, parsec==3.1.*, filepath==1.4.*, directory==1.2.*, filemanip==0.3.*,- ansi-wl-pprint==0.6.*, csv==0.1.*, pipes==4.2.*,+ ansi-wl-pprint==0.6.*, csv==0.1.*, pipes==4.3.*, terminal-progress-bar==0.0.*, text==1.2.*, semigroups==0.18.* -- same as above, plus hspec
src/Lentil/Parse/Issue.hs view
@@ -93,14 +93,16 @@ incipit = char '\n' >> spaces >> fwpar >>= \fw -> optional (char ':') >>- notFollowedBy alphaNum >> -- real todo, not todoodle+ notFollowedBy nonSpace >> -- real todo, not todoodle return (normaliseFlagword fw) <?> "incipit" where fwpar = flagWords >>= \fw -> choice (map (try . ciString) fw) + nonSpace = satisfy (not . C.isSpace) + ------------ -- ISSUES -- ------------@@ -123,7 +125,7 @@ mkIssue fw fp ln tg1 ds tg2 = Issue fp ln ds (addTag fw (tg1++tg2)) addTag "todo" tgs = tgs- addTag fw tgs = (Tag fw) : tgs+ addTag fw tgs = Tag fw : tgs
src/Main.hs view
@@ -28,7 +28,7 @@ short 'v' <> help "show version and copyright info" ) where- versionCopy = "\nlentil - frugal issue tracker, version 1.0.3.1\n\+ versionCopy = "\nlentil - frugal issue tracker, version 1.0.3.2\n\ \(C) 2015-2016 Francesco Ariis - http://www.ariis.it\n\ \released under the GNU General Public License v3\n"
test/Lentil/Parse/IssueSpec.hs view
@@ -77,7 +77,8 @@ it "doesn't work with longer matches (todoodle)" $ sp [] incipit "\nTODOodle:some" `shouldBe` Nothing it "doesn't work if you don't add a space after :" $- sp [] incipit "\nTODO:some" `shouldBe` Nothing+ do sp [] incipit "\nTODO:some" `shouldBe` Nothing+ sp [] incipit "\nTODO_some" `shouldBe` Nothing it "does allow you to omit the :" $ sp [] incipit "\nxxx some" `shouldBe` Just "xxx" it "is case unsensitive in flag-word" $