Hello community,

here is the log from the commit of package ghc-http-client-tls for 
openSUSE:Factory checked in at 2017-06-22 10:37:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-client-tls (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-client-tls.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-client-tls"

Thu Jun 22 10:37:53 2017 rev:9 rq:504078 version:0.3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-client-tls/ghc-http-client-tls.changes  
2017-06-04 01:57:43.702006622 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-http-client-tls.new/ghc-http-client-tls.changes 
    2017-06-22 10:37:54.346662221 +0200
@@ -1,0 +2,5 @@
+Thu Jun  8 11:08:20 UTC 2017 - [email protected]
+
+- Update to version 0.3.5.
+
+-------------------------------------------------------------------

Old:
----
  http-client-tls-0.3.4.2.tar.gz

New:
----
  http-client-tls-0.3.5.tar.gz

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

Other differences:
------------------
++++++ ghc-http-client-tls.spec ++++++
--- /var/tmp/diff_new_pack.zj5RWb/_old  2017-06-22 10:37:55.718468826 +0200
+++ /var/tmp/diff_new_pack.zj5RWb/_new  2017-06-22 10:37:55.722468263 +0200
@@ -19,7 +19,7 @@
 %global pkg_name http-client-tls
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.3.4.2
+Version:        0.3.5
 Release:        0
 Summary:        Http-client backend using the connection package and tls 
library
 License:        MIT

++++++ http-client-tls-0.3.4.2.tar.gz -> http-client-tls-0.3.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-tls-0.3.4.2/ChangeLog.md 
new/http-client-tls-0.3.5/ChangeLog.md
--- old/http-client-tls-0.3.4.2/ChangeLog.md    2017-05-01 11:15:44.000000000 
+0200
+++ new/http-client-tls-0.3.5/ChangeLog.md      2017-05-30 14:31:53.000000000 
+0200
@@ -1,3 +1,10 @@
+## 0.3.5
+
+* Add `newTlsManagerWith`
+  [#278](https://github.com/snoyberg/http-client/issues/278), which
+  provides a variant of `newTlsManager` that takes a `ManagerSettings`
+  to base its settings off of.
+
 ## 0.3.4.2
 
 * Never throw exceptions on 401 status in `applyDigestAuth`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-tls-0.3.4.2/Network/HTTP/Client/TLS.hs 
new/http-client-tls-0.3.5/Network/HTTP/Client/TLS.hs
--- old/http-client-tls-0.3.4.2/Network/HTTP/Client/TLS.hs      2017-05-01 
11:11:20.000000000 +0200
+++ new/http-client-tls-0.3.5/Network/HTTP/Client/TLS.hs        2017-05-30 
14:31:53.000000000 +0200
@@ -12,6 +12,7 @@
     , mkManagerSettings
     , mkManagerSettingsContext
     , newTlsManager
+    , newTlsManagerWith
       -- * Digest authentication
     , applyDigestAuth
     , DigestAuthException (..)
@@ -70,16 +71,17 @@
     -> NC.TLSSettings
     -> Maybe NC.SockSettings
     -> ManagerSettings
-mkManagerSettingsContext mcontext tls sock = mkManagerSettingsContext' 
mcontext tls sock sock
+mkManagerSettingsContext mcontext tls sock = mkManagerSettingsContext' 
defaultManagerSettings mcontext tls sock sock
 
 -- | Internal, allow different SockSettings for HTTP and HTTPS
 mkManagerSettingsContext'
-    :: Maybe NC.ConnectionContext
+    :: ManagerSettings
+    -> Maybe NC.ConnectionContext
     -> NC.TLSSettings
     -> Maybe NC.SockSettings -- ^ insecure
     -> Maybe NC.SockSettings -- ^ secure
     -> ManagerSettings
-mkManagerSettingsContext' mcontext tls sockHTTP sockHTTPS = 
defaultManagerSettings
+mkManagerSettingsContext' set mcontext tls sockHTTP sockHTTPS = set
     { managerTlsConnection = getTlsConnection mcontext (Just tls) sockHTTPS
     , managerTlsProxyConnection = getTlsProxyConnection mcontext tls sockHTTPS
     , managerRawConnection =
@@ -177,12 +179,19 @@
 --
 -- @since 0.3.4
 newTlsManager :: MonadIO m => m Manager
-newTlsManager = liftIO $ do
+newTlsManager = newTlsManagerWith defaultManagerSettings
+
+-- | Load up a new TLS manager based upon specified settings,
+-- respecting proxy environment variables.
+--
+-- @since 0.3.5
+newTlsManagerWith :: MonadIO m => ManagerSettings -> m Manager
+newTlsManagerWith set = liftIO $ do
     env <- getEnvironment
     let lenv = Map.fromList $ map (first $ T.toLower . T.pack) env
         msocksHTTP = parseSocksSettings env lenv "http_proxy"
         msocksHTTPS = parseSocksSettings env lenv "https_proxy"
-        settings = mkManagerSettingsContext' (Just globalConnectionContext) 
def msocksHTTP msocksHTTPS
+        settings = mkManagerSettingsContext' set (Just 
globalConnectionContext) def msocksHTTP msocksHTTPS
         settings' = maybe id (const $ managerSetInsecureProxy 
proxyFromRequest) msocksHTTP
                   $ maybe id (const $ managerSetSecureProxy proxyFromRequest) 
msocksHTTPS
                     settings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-tls-0.3.4.2/http-client-tls.cabal 
new/http-client-tls-0.3.5/http-client-tls.cabal
--- old/http-client-tls-0.3.4.2/http-client-tls.cabal   2017-05-01 
11:15:23.000000000 +0200
+++ new/http-client-tls-0.3.5/http-client-tls.cabal     2017-05-30 
14:31:53.000000000 +0200
@@ -1,5 +1,5 @@
 name:                http-client-tls
-version:             0.3.4.2
+version:             0.3.5
 synopsis:            http-client backend using the connection package and tls 
library
 description:         Hackage documentation generation is not reliable. For up 
to date documentation, please see: 
<https://www.stackage.org/package/http-client-tls>.
 homepage:            https://github.com/snoyberg/http-client


Reply via email to