Hello community,

here is the log from the commit of package ghc-auto-update for openSUSE:Factory 
checked in at 2019-02-24 17:18:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-auto-update (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-auto-update.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-auto-update"

Sun Feb 24 17:18:32 2019 rev:11 rq:678025 version:0.1.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-auto-update/ghc-auto-update.changes  
2018-10-25 08:22:28.255907951 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-auto-update.new.28833/ghc-auto-update.changes   
    2019-02-24 17:18:34.276416662 +0100
@@ -1,0 +2,13 @@
+Thu Feb 21 07:46:58 UTC 2019 - [email protected]
+
+- Update auto-update to version 0.1.4.1.
+  # ChangeLog for auto-update
+
+  ## 0.1.4.1
+
+  * [#693](https://github.com/yesodweb/wai/pull/693):
+    Improve documentation for `reaperAction` function.
+  * [#732](https://github.com/yesodweb/wai/pull/732):
+    Fixed memory leak in `reaperAdd` function.
+
+-------------------------------------------------------------------

Old:
----
  auto-update-0.1.4.tar.gz

New:
----
  auto-update-0.1.4.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-auto-update.spec ++++++
--- /var/tmp/diff_new_pack.20hrtJ/_old  2019-02-24 17:18:34.828416564 +0100
+++ /var/tmp/diff_new_pack.20hrtJ/_new  2019-02-24 17:18:34.828416564 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-auto-update
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name auto-update
 Name:           ghc-%{pkg_name}
-Version:        0.1.4
+Version:        0.1.4.1
 Release:        0
 Summary:        Efficiently run periodic, on-demand actions
 License:        MIT

++++++ auto-update-0.1.4.tar.gz -> auto-update-0.1.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/auto-update-0.1.4/ChangeLog.md 
new/auto-update-0.1.4.1/ChangeLog.md
--- old/auto-update-0.1.4/ChangeLog.md  2016-05-09 07:43:44.000000000 +0200
+++ new/auto-update-0.1.4.1/ChangeLog.md        2019-02-20 10:44:00.000000000 
+0100
@@ -1,3 +1,12 @@
+# ChangeLog for auto-update
+
+## 0.1.4.1
+
+* [#693](https://github.com/yesodweb/wai/pull/693):
+  Improve documentation for `reaperAction` function.
+* [#732](https://github.com/yesodweb/wai/pull/732):
+  Fixed memory leak in `reaperAdd` function.
+
 ## 0.1.4
 
 * Provide updateActionModify API in AutoUpdate 
[#547](https://github.com/yesodweb/wai/pull/547)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/auto-update-0.1.4/Control/Reaper.hs 
new/auto-update-0.1.4.1/Control/Reaper.hs
--- old/auto-update-0.1.4/Control/Reaper.hs     2016-05-09 07:43:44.000000000 
+0200
+++ new/auto-update-0.1.4.1/Control/Reaper.hs   2019-02-20 10:43:14.000000000 
+0100
@@ -5,7 +5,7 @@
 -- threads. These threads will automatically spawn and die based on the
 -- presence of a workload to process on. Example uses include:
 --
--- * Killing long-running jobs 
+-- * Killing long-running jobs
 -- * Closing unused connections in a connection pool
 -- * Pruning a cache of old items (see example below)
 --
@@ -49,8 +49,9 @@
     -- ^ The action to perform on a workload. The result of this is a
     -- \"workload modifying\" function. In the common case of using lists,
     -- the result should be a difference list that prepends the remaining
-    -- workload to the temporary workload. For help with setting up such
-    -- an action, see 'mkListAction'.
+    -- workload to the temporary workload. The temporary workload here
+    -- refers to items added to the workload while the reaper action is
+    -- running. For help with setting up such an action, see 'mkListAction'.
     --
     -- Default: do nothing with the workload, and then prepend it to the
     -- temporary workload. This is incredibly useless; you should
@@ -112,7 +113,7 @@
 
 -- | State of reaper.
 data State workload = NoReaper           -- ^ No reaper thread
-                    | Workload workload  -- ^ The current jobs
+                    | Workload !workload  -- ^ The current jobs
 
 -- | Create a reaper addition function. This function can be used to add
 -- new items to the workload. Spawning of reaper threads will be handled
@@ -153,7 +154,7 @@
       next <- atomicModifyIORef' stateRef cons
       next
   where
-    cons NoReaper      = let !wl = reaperCons item reaperEmpty
+    cons NoReaper      = let wl = reaperCons item reaperEmpty
                          in (Workload wl, spawn settings stateRef tidRef)
     cons (Workload wl) = let wl' = reaperCons item wl
                          in (Workload wl', return ())
@@ -214,16 +215,16 @@
         go front' xs
 
 -- $example1
--- In this example code, we use a 'Data.Map.Strict.Map' to cache fibonacci 
numbers, and a 'Reaper' to prune the cache. 
+-- In this example code, we use a 'Data.Map.Strict.Map' to cache fibonacci 
numbers, and a 'Reaper' to prune the cache.
 --
--- The @main@ function first creates a 'Reaper', with fields to initialize the 
+-- The @main@ function first creates a 'Reaper', with fields to initialize the
 -- cache ('reaperEmpty'), add items to it ('reaperCons'), and prune it 
('reaperAction').
--- The reaper will run every two seconds ('reaperDelay'), but will stop 
running while 
+-- The reaper will run every two seconds ('reaperDelay'), but will stop 
running while
 -- 'reaperNull' is true.
 --
--- @main@ then loops infinitely ('Control.Monad.forever'). Each second it 
calculates the fibonacci number 
--- for a value between 30 and 34, first trying the cache ('reaperRead' and 
'Data.Map.Strict.lookup'), 
--- then falling back to manually calculating it (@fib@) 
+-- @main@ then loops infinitely ('Control.Monad.forever'). Each second it 
calculates the fibonacci number
+-- for a value between 30 and 34, first trying the cache ('reaperRead' and 
'Data.Map.Strict.lookup'),
+-- then falling back to manually calculating it (@fib@)
 -- and updating the cache with the result ('reaperAdd')
 --
 -- @clean@ simply removes items cached for more than 10 seconds.
@@ -276,4 +277,4 @@
 --   currentTime <- 'Data.Time.Clock.getCurrentTime'
 --   let pruned = Map.'Data.Map.Strict.filter' (\\(_, createdAt) -> 
currentTime \`diffUTCTime\` createdAt < 10.0) oldMap
 --   return (\\newData -> Map.'Data.Map.Strict.union' pruned newData)
--- @
\ No newline at end of file
+-- @
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/auto-update-0.1.4/auto-update.cabal 
new/auto-update-0.1.4.1/auto-update.cabal
--- old/auto-update-0.1.4/auto-update.cabal     2016-05-09 07:43:44.000000000 
+0200
+++ new/auto-update-0.1.4.1/auto-update.cabal   2019-02-20 10:44:04.000000000 
+0100
@@ -1,5 +1,5 @@
 name:                auto-update
-version:             0.1.4
+version:             0.1.4.1
 synopsis:            Efficiently run periodic, on-demand actions
 description:         API docs and the README are available at 
<http://www.stackage.org/package/auto-update>.
 homepage:            https://github.com/yesodweb/wai


Reply via email to