Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hspec-discover for openSUSE:Factory checked in at 2022-10-13 15:43:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hspec-discover (Old) and /work/SRC/openSUSE:Factory/.hspec-discover.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hspec-discover" Thu Oct 13 15:43:42 2022 rev:24 rq:1008554 version:2.10.6 Changes: -------- --- /work/SRC/openSUSE:Factory/hspec-discover/hspec-discover.changes 2022-08-01 21:31:44.581887829 +0200 +++ /work/SRC/openSUSE:Factory/.hspec-discover.new.2275/hspec-discover.changes 2022-10-13 15:44:03.886962762 +0200 @@ -1,0 +2,24 @@ +Tue Sep 13 10:34:34 UTC 2022 - Peter Simons <psim...@suse.com> + +- Update hspec-discover to version 2.10.6. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Fri Sep 9 03:47:08 UTC 2022 - Peter Simons <psim...@suse.com> + +- Update hspec-discover to version 2.10.5. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Tue Sep 6 13:06:22 UTC 2022 - Peter Simons <psim...@suse.com> + +- Update hspec-discover to version 2.10.4. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Sat Aug 6 07:43:51 UTC 2022 - Peter Simons <psim...@suse.com> + +- Update hspec-discover to version 2.10.0.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- hspec-discover-2.10.0.tar.gz New: ---- hspec-discover-2.10.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hspec-discover.spec ++++++ --- /var/tmp/diff_new_pack.9pucYo/_old 2022-10-13 15:44:04.354963675 +0200 +++ /var/tmp/diff_new_pack.9pucYo/_new 2022-10-13 15:44:04.358963684 +0200 @@ -19,7 +19,7 @@ %global pkg_name hspec-discover %bcond_with tests Name: %{pkg_name} -Version: 2.10.0 +Version: 2.10.6 Release: 0 Summary: Automatically discover and run Hspec tests License: MIT ++++++ hspec-discover-2.10.0.tar.gz -> hspec-discover-2.10.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/hspec-discover.cabal new/hspec-discover-2.10.6/hspec-discover.cabal --- old/hspec-discover-2.10.0/hspec-discover.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/hspec-discover.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: hspec-discover -version: 2.10.0 +version: 2.10.6 license: MIT license-file: LICENSE copyright: (c) 2012-2022 Simon Hengel @@ -77,7 +77,7 @@ , directory , filepath , hspec-discover - , hspec-meta ==2.9.3 + , hspec-meta ==2.10.5 , mockery >=0.3.5 build-tool-depends: hspec-meta:hspec-meta-discover diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Config.hs new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Config.hs --- old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Config.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Config.hs 2001-09-09 03:46:40.000000000 +0200 @@ -35,9 +35,9 @@ parseConfig :: String -> [String] -> Either String Config parseConfig prog args = case getOpt Permute options args of (opts, [], []) -> let - c = (foldl (flip id) defaultConfig opts) + c = foldl (flip id) defaultConfig opts in - if (configNoMain c && isJust (configFormatter c)) + if configNoMain c && isJust (configFormatter c) then formatError "option `--formatter=<fmt>' does not make sense with `--no-main'\n" else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Run.hs new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Run.hs --- old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Run.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Run.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,4 +1,4 @@ -{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-} +{-# LANGUAGE FlexibleInstances, OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | A preprocessor that finds and combines specs. -- @@ -61,7 +61,7 @@ mkSpecModule src conf nodes = ( "{-# LINE 1 " . shows src . " #-}\n" . showString "{-# LANGUAGE NoImplicitPrelude #-}\n" - . showString "{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}\n" + . showString "{-# OPTIONS_GHC -w -Wall -fno-warn-warnings-deprecations #-}\n" . showString ("module " ++ moduleName src conf ++" where\n") . importList nodes . showString "import Test.Hspec.Discover\n" @@ -121,9 +121,7 @@ sequenceS = foldr (.) "" . intersperse " >> " formatSpecs :: Maybe [Spec] -> ShowS -formatSpecs specs = case specs of - Nothing -> "return ()" - Just xs -> fromForest xs +formatSpecs = maybe "return ()" fromForest where fromForest :: [Spec] -> ShowS fromForest = sequenceS . map fromTree diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Sort.hs new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Sort.hs --- old/hspec-discover-2.10.0/src/Test/Hspec/Discover/Sort.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/src/Test/Hspec/Discover/Sort.hs 2001-09-09 03:46:40.000000000 +0200 @@ -15,7 +15,7 @@ sortNaturallyBy :: (a -> (String, Int)) -> [a] -> [a] sortNaturallyBy f = sortBy (comparing ((\ (k, t) -> (naturalSortKey k, t)) . f)) -data NaturalSortKey = NaturalSortKey [Chunk] +newtype NaturalSortKey = NaturalSortKey [Chunk] deriving (Eq, Ord) data Chunk = Numeric Integer Int | Textual [(Char, Char)] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/test/Test/Hspec/Discover/RunSpec.hs new/hspec-discover-2.10.6/test/Test/Hspec/Discover/RunSpec.hs --- old/hspec-discover-2.10.0/test/Test/Hspec/Discover/RunSpec.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/test/Test/Hspec/Discover/RunSpec.hs 2001-09-09 03:46:40.000000000 +0200 @@ -17,7 +17,7 @@ readFile "out" `shouldReturn` unlines [ "{-# LINE 1 \"test/Spec.hs\" #-}" , "{-# LANGUAGE NoImplicitPrelude #-}" - , "{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}" + , "{-# OPTIONS_GHC -w -Wall -fno-warn-warnings-deprecations #-}" , "module Main where" , "import qualified FooSpec" , "import qualified Foo.BarSpec" @@ -33,6 +33,28 @@ ] ] + it "generates a test driver with no Main/main" $ do + touch "test/FooSpec.hs" + touch "test/Foo/Bar/BazSpec.hs" + touch "test/Foo/BarSpec.hs" + run ["test/Spec.hs", "", "out", "--no-main"] + readFile "out" `shouldReturn` unlines [ + "{-# LINE 1 \"test/Spec.hs\" #-}" + , "{-# LANGUAGE NoImplicitPrelude #-}" + , "{-# OPTIONS_GHC -w -Wall -fno-warn-warnings-deprecations #-}" + , "module Spec where" + , "import qualified FooSpec" + , "import qualified Foo.BarSpec" + , "import qualified Foo.Bar.BazSpec" + , "import Test.Hspec.Discover" + , "spec :: Spec" + , "spec = " ++ unwords [ + "describe \"Foo\" FooSpec.spec" + , ">> describe \"Foo.Bar\" Foo.BarSpec.spec" + , ">> describe \"Foo.Bar.Baz\" Foo.Bar.BazSpec.spec" + ] + ] + it "generates a test driver with hooks" $ do touch "test/FooSpec.hs" touch "test/Foo/Bar/BazSpec.hs" @@ -43,7 +65,7 @@ readFile "out" `shouldReturn` unlines [ "{-# LINE 1 \"test/Spec.hs\" #-}" , "{-# LANGUAGE NoImplicitPrelude #-}" - , "{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}" + , "{-# OPTIONS_GHC -w -Wall -fno-warn-warnings-deprecations #-}" , "module Main where" , "import qualified SpecHook" , "import qualified FooSpec" @@ -67,7 +89,7 @@ readFile "out" `shouldReturn` unlines [ "{-# LINE 1 \"test/Spec.hs\" #-}" , "{-# LANGUAGE NoImplicitPrelude #-}" - , "{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}" + , "{-# OPTIONS_GHC -w -Wall -fno-warn-warnings-deprecations #-}" , "module Main where" , "import Test.Hspec.Discover" , "main :: IO ()" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hspec-discover-2.10.0/version.yaml new/hspec-discover-2.10.6/version.yaml --- old/hspec-discover-2.10.0/version.yaml 2001-09-09 03:46:40.000000000 +0200 +++ new/hspec-discover-2.10.6/version.yaml 2001-09-09 03:46:40.000000000 +0200 @@ -1 +1 @@ -&version 2.10.0 +&version 2.10.6