pandoc-plot 0.7.2.0 → 0.7.2.1
raw patch · 4 files changed
+14/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- executable/Main.hs +3/−1
- pandoc-plot.cabal +2/−2
- src/Text/Pandoc/Filter/Plot/Monad/Logging.hs +3/−3
CHANGELOG.md view
@@ -2,6 +2,12 @@ pandoc-plot uses [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +Release 0.7.2.1 +--------------- + +* Fixed an issue where the `pandoc` version was not parsed properly, giving rise to errors when running `pandoc-plot`. +* Fixed an issue where logging errors were not always displayed. + Release 0.7.2.0 ---------------
executable/Main.hs view
@@ -159,7 +159,9 @@ -- indicates whether the Pandoc version is new enough or not. checkRuntimePandocVersion :: IO Bool checkRuntimePandocVersion = do - let minimumPandocVersion = V.Version [2,10,0,0] [] + -- Please note that for some reason, makeVersion [2, 10, 0, 0] > makeVersion [2, 10] + let minimumPandocVersion = V.makeVersion [2, 10] + -- Pandoc runs filters in an environment with two variables: -- PANDOV_VERSION and PANDOC_READER_OPTS -- We can use the former to ensure that people are not using pandoc < 2.10
pandoc-plot.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: pandoc-plot -version: 0.7.2.0 +version: 0.7.2.1 synopsis: A Pandoc filter to include figures generated from code blocks using your plotting toolkit of choice. description: A Pandoc filter to include figures generated from code blocks. Keep the document and code in the same location. Output is captured and included as a figure. category: Text @@ -12,7 +12,7 @@ license: GPL-2.0-or-later license-file: LICENSE build-type: Simple -tested-with: GHC == 8.6.5, GHC == 8.8.3 +tested-with: GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1 extra-source-files: CHANGELOG.md LICENSE
src/Text/Pandoc/Filter/Plot/Monad/Logging.hs view
@@ -38,9 +38,9 @@ -- | Verbosity of the logger. data Verbosity = Debug -- ^ Log all messages, including debug messages. - | Error -- ^ Log information, warnings, and errors. - | Warning -- ^ Log information and warning messages. - | Info -- ^ Only log information messages. + | Info -- ^ Log information, warning, and error messages. + | Warning -- ^ Log warning and error messages. + | Error -- ^ Only log errors. | Silent -- ^ Don't log anything. deriving (Eq, Ord, Show)