Hello community,

here is the log from the commit of package ghc-http-client for openSUSE:Factory 
checked in at 2015-08-05 06:50:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-client (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-client"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-client/ghc-http-client.changes  
2015-07-16 17:18:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-http-client.new/ghc-http-client.changes     
2015-08-05 06:50:54.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Jul 27 07:28:06 UTC 2015 - mimi...@gmail.com
+
+- update to 0.4.18.1
+* Case insensitive proxy environment variables
+* Deprecate closeManager
+
+-------------------------------------------------------------------

Old:
----
  http-client-0.4.16.tar.gz

New:
----
  http-client-0.4.18.1.tar.gz

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

Other differences:
------------------
++++++ ghc-http-client.spec ++++++
--- /var/tmp/diff_new_pack.zkHoWG/_old  2015-08-05 06:50:54.000000000 +0200
+++ /var/tmp/diff_new_pack.zkHoWG/_new  2015-08-05 06:50:54.000000000 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:           ghc-http-client
-Version:        0.4.16
+Version:        0.4.18.1
 Release:        0
 Summary:        HTTP client engine, intended as a base layer 
 License:        MIT

++++++ http-client-0.4.16.tar.gz -> http-client-0.4.18.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-0.4.16/ChangeLog.md 
new/http-client-0.4.18.1/ChangeLog.md
--- old/http-client-0.4.16/ChangeLog.md 2015-07-12 19:00:10.000000000 +0200
+++ new/http-client-0.4.18.1/ChangeLog.md       2015-07-24 17:22:19.000000000 
+0200
@@ -1,3 +1,11 @@
+## 0.4.18
+
+* Deprecate closeManager 
[#136](https://github.com/snoyberg/http-client/issues/136) 
[#137](https://github.com/snoyberg/http-client/issues/137)
+
+## 0.4.17
+
+* Case insensitive proxy environment variables 
[#135](https://github.com/snoyberg/http-client/issues/135)
+
 ## 0.4.16
 
 * Proxy auth for HTTPS 
[#132](https://github.com/snoyberg/http-client/issues/132)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-0.4.16/Network/HTTP/Client/Manager.hs 
new/http-client-0.4.18.1/Network/HTTP/Client/Manager.hs
--- old/http-client-0.4.16/Network/HTTP/Client/Manager.hs       2015-07-12 
19:00:10.000000000 +0200
+++ new/http-client-0.4.18.1/Network/HTTP/Client/Manager.hs     2015-07-24 
17:22:19.000000000 +0200
@@ -25,6 +25,8 @@
 #if !MIN_VERSION_base(4,6,0)
 import Prelude hiding (catch)
 #endif
+import Control.Applicative ((<|>))
+import Control.Arrow (first)
 import Data.Monoid (mappend)
 import System.IO (hClose, hFlush, IOMode(..))
 import qualified Data.IORef as I
@@ -160,9 +162,8 @@
     | maxCount > currCount = (Cons x (currCount + 1) now l, Nothing)
     | otherwise = (l, Just x)
 
--- | Create a 'Manager'. You may manually call 'closeManager' to shut it down,
--- or allow the @Manager@ to be shut down automatically based on garbage
--- collection.
+-- | Create a 'Manager'. The @Manager@ will be shut down automatically via
+-- garbage collection.
 --
 -- Creating a new 'Manager' is a relatively expensive operation, you are
 -- advised to share a single 'Manager' between requests instead.
@@ -304,7 +305,8 @@
 --
 -- Since 0.1.0
 closeManager :: Manager -> IO ()
-closeManager = closeManager' . mConns
+closeManager _ = return ()
+{-# DEPRECATED closeManager "Manager will be closed for you automatically when 
no longer in use" #-}
 
 closeManager' :: I.IORef ConnsMap
               -> IO ()
@@ -318,7 +320,8 @@
 --
 -- Since 0.2.1
 withManager :: ManagerSettings -> (Manager -> IO a) -> IO a
-withManager settings = bracket (newManager settings) closeManager
+withManager settings f = newManager settings >>= f
+{-# DEPRECATED withManager "Use newManager instead" #-}
 
 safeConnClose :: Connection -> IO ()
 safeConnClose ci = connectionClose ci `catch` \(_ :: IOException) -> return ()
@@ -502,7 +505,8 @@
 envHelper :: Text -> EnvHelper -> IO (Request -> Request)
 envHelper name eh = do
     env <- getEnvironment
-    case lookup (T.unpack name) env of
+    let lenv = Map.fromList $ map (first $ T.toLower . T.pack) env
+    case lookup (T.unpack name) env <|> Map.lookup name lenv of
         Nothing  -> return noEnvProxy
         Just ""  -> return noEnvProxy
         Just str -> do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-0.4.16/Network/HTTP/Client.hs 
new/http-client-0.4.18.1/Network/HTTP/Client.hs
--- old/http-client-0.4.16/Network/HTTP/Client.hs       2015-07-12 
19:00:10.000000000 +0200
+++ new/http-client-0.4.18.1/Network/HTTP/Client.hs     2015-07-24 
17:22:19.000000000 +0200
@@ -22,12 +22,6 @@
 -- 'newManager' 'defaultManagerSettings'
 -- @
 --
--- or using the 'bracket' pattern with
---
--- @
--- 'withManager' 'defaultManagerSettings'
--- @
---
 -- While generally speaking it is a good idea to share a single @Manager@
 -- throughout your application, there are cases where it makes more sense to
 -- create and destroy @Manager@s more frequently. As an example, if you have an
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-0.4.16/README.md 
new/http-client-0.4.18.1/README.md
--- old/http-client-0.4.16/README.md    2015-07-12 19:00:10.000000000 +0200
+++ new/http-client-0.4.18.1/README.md  2015-07-24 17:22:19.000000000 +0200
@@ -23,7 +23,7 @@
     let settings = managerSetProxy
             (proxyEnvironment Nothing)
             defaultManagerSettings
-    withManager settings $ \man -> do
+    man <- newManager settings
     let req = "http://httpbin.org";
             -- Note that the following settings will be completely ignored.
             { proxy = Just $ Proxy "localhost" 1234
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-0.4.16/http-client.cabal 
new/http-client-0.4.18.1/http-client.cabal
--- old/http-client-0.4.16/http-client.cabal    2015-07-12 19:00:10.000000000 
+0200
+++ new/http-client-0.4.18.1/http-client.cabal  2015-07-24 17:22:19.000000000 
+0200
@@ -1,5 +1,5 @@
 name:                http-client
-version:             0.4.16
+version:             0.4.18.1
 synopsis:            An HTTP client engine, intended as a base layer for more 
user-friendly packages.
 description:         Hackage documentation generation is not reliable. For up 
to date documentation, please see: 
<http://www.stackage.org/package/http-client>.
 homepage:            https://github.com/snoyberg/http-client


Reply via email to