Hello community,

here is the log from the commit of package rubygem-excon for openSUSE:Factory 
checked in at 2016-03-18 21:40:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-excon (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-excon.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-excon"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-excon/rubygem-excon.changes      
2016-03-07 13:29:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-excon.new/rubygem-excon.changes 
2016-03-18 21:40:25.000000000 +0100
@@ -1,0 +2,11 @@
+Tue Mar  8 05:33:52 UTC 2016 - [email protected]
+
+- updated to version 0.48.0
+ see installed changelog.txt
+
+  0.48.0 03/07/2016
+  =================
+  
+  optimize by writing part of body with headers when it fits in a chunk
+
+-------------------------------------------------------------------

Old:
----
  excon-0.47.0.gem

New:
----
  excon-0.48.0.gem

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

Other differences:
------------------
++++++ rubygem-excon.spec ++++++
--- /var/tmp/diff_new_pack.Z0btu7/_old  2016-03-18 21:40:26.000000000 +0100
+++ /var/tmp/diff_new_pack.Z0btu7/_new  2016-03-18 21:40:26.000000000 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-excon
-Version:        0.47.0
+Version:        0.48.0
 Release:        0
 %define mod_name excon
 %define mod_full_name %{mod_name}-%{version}

++++++ excon-0.47.0.gem -> excon-0.48.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile.lock new/Gemfile.lock
--- old/Gemfile.lock    2016-02-29 17:40:18.000000000 +0100
+++ new/Gemfile.lock    2016-03-07 22:19:26.000000000 +0100
@@ -1,7 +1,7 @@
 PATH
   remote: .
   specs:
-    excon (0.47.0)
+    excon (0.48.0)
 
 GEM
   remote: http://rubygems.org/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/changelog.txt new/changelog.txt
--- old/changelog.txt   2016-02-29 17:40:18.000000000 +0100
+++ new/changelog.txt   2016-03-07 22:19:26.000000000 +0100
@@ -1,3 +1,8 @@
+0.48.0 03/07/2016
+=================
+
+optimize by writing part of body with headers when it fits in a chunk
+
 0.47.0 02/29/2016
 =================
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/excon.gemspec new/excon.gemspec
--- old/excon.gemspec   2016-02-29 17:40:18.000000000 +0100
+++ new/excon.gemspec   2016-03-07 22:19:26.000000000 +0100
@@ -13,8 +13,8 @@
   ## If your rubyforge_project name is different, then edit it and comment out
   ## the sub! line in the Rakefile
   s.name              = 'excon'
-  s.version           = '0.47.0'
-  s.date              = '2016-02-29'
+  s.version           = '0.48.0'
+  s.date              = '2016-03-07'
   s.rubyforge_project = 'excon'
 
   ## Make sure your summary is short. The description may be as long
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/excon/connection.rb new/lib/excon/connection.rb
--- old/lib/excon/connection.rb 2016-02-29 17:40:18.000000000 +0100
+++ new/lib/excon/connection.rb 2016-03-07 22:19:26.000000000 +0100
@@ -140,9 +140,9 @@
 
           # add additional "\r\n" to indicate end of headers
           request << CR_NL
-          socket.write(request) # write out request + headers
 
           if datum.has_key?(:request_block)
+            socket.write(request) # write out request + headers
             while true # write out body with chunked encoding
               chunk = datum[:request_block].call
               if FORCE_ENC
@@ -155,6 +155,8 @@
                 break
               end
             end
+          elsif body.nil?
+            socket.write(request) # write out request + headers
           elsif !body.nil? # write out body
             if body.respond_to?(:binmode)
               body.binmode
@@ -162,6 +164,21 @@
             if body.respond_to?(:rewind)
               body.rewind  rescue nil
             end
+
+            # if request + headers is less than chunk size, fill with body
+            if FORCE_ENC
+              request.force_encoding('BINARY')
+            end
+            chunk = body.read([datum[:chunk_size] - request.length, 0].max)
+            if chunk
+              if FORCE_ENC
+                chunk.force_encoding('BINARY')
+              end
+              socket.write(request << chunk)
+            else
+              socket.write(request) # write out request + headers
+            end
+
             while chunk = body.read(datum[:chunk_size])
               socket.write(chunk)
             end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/excon/constants.rb new/lib/excon/constants.rb
--- old/lib/excon/constants.rb  2016-02-29 17:40:18.000000000 +0100
+++ new/lib/excon/constants.rb  2016-03-07 22:19:26.000000000 +0100
@@ -1,6 +1,6 @@
 module Excon
 
-  VERSION = '0.47.0'
+  VERSION = '0.48.0'
 
   CR_NL = "\r\n"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-02-29 17:40:18.000000000 +0100
+++ new/metadata        2016-03-07 22:19:26.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: excon
 version: !ruby/object:Gem::Version
-  version: 0.47.0
+  version: 0.48.0
 platform: ruby
 authors:
 - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-02-29 00:00:00.000000000 Z
+date: 2016-03-07 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport


Reply via email to