From bb6fbd5b708b6223c185680b306c85ec9603d5aa Mon Sep 17 00:00:00 2001 From: Hiroshi Nakamura Date: Thu, 2 Jun 2011 16:41:57 +0900 Subject: [PATCH] Version bump to 2.2.1. --- README.txt | 43 ++++++++++++++++++++++++++++++++++++++++++- httpclient.gemspec | 9 ++++----- lib/httpclient.rb | 2 +- 3 files changed, 47 insertions(+), 7 deletions(-) diff --git a/README.txt b/README.txt index d4194b87..fd44c017 100644 --- a/README.txt +++ b/README.txt @@ -32,7 +32,7 @@ See HTTPClient for documentation. == Author -Name:: NAKAMURA, Hiroshi +Name:: Hiroshi Nakamura E-mail:: nahi@ruby-lang.org Project web site:: http://github.com/nahi/httpclient @@ -95,6 +95,47 @@ Thanks in advance. == Changes += Changes in 2.2.1 = + + Jun 2, 2011 - version 2.2.1 + + * Bug fixes + + * For Lighttpd + PUT/POST support, do not send a request using chunked + encoding when IO respond to :size, File for example. + + - There is no need to send query with Transfer-Encoding: chuncked when + IO respond to :size. + - Lighttpd does not support PUT, POST with Transfer-Encoding: chuncked. + You will see that the lighty respond with 200 OK, but there is a file + whose size is zero. + + LIMITATION: + timeout occurs certainly when you send very large file and + @send_timeout is default since HTTPClient::Session#query() assumes + that *all* write are finished in @send_timeout sec not each write. + + WORKAROUND: + increment @send_timeout and @receive_timeout or set @send_timeout and + @receive_timeout to 0 not to be timeout. + + This fix is by TANABE Ken-ichi . Thanks! + + * Allow empty http_proxy ENV variable. Just treat it the same as if it's + nil/unset. This fix is by Ash Berlin . + Thanks! + + * Check EOF while reading chunked response and close the session. It + raised NoMethodError. + + * Changes + + * Updated trusted CA certificates file (cacert.p7s and cacert_sha1.p7s). + CA certs are imported from + 'Java(TM) SE Runtime Environment (build 1.6.0_25-b06)'. + + * Changed default chunk size from 4K to 16K. It's used for reading size + at a time. = Changes in 2.2.0 = diff --git a/httpclient.gemspec b/httpclient.gemspec index b8d80506..aa695876 100644 --- a/httpclient.gemspec +++ b/httpclient.gemspec @@ -1,14 +1,13 @@ require 'rubygems' SPEC = Gem::Specification.new do |s| s.name = "httpclient" - s.version = "2.2.0.2" - s.date = "2011-04-25" - s.author = "NAKAMURA, Hiroshi" + s.version = "2.2.1" + s.date = "2011-06-02" + s.author = "Hiroshi Nakamura" s.email = "nahi@ruby-lang.org" s.homepage = "http://github.com/nahi/httpclient" s.platform = Gem::Platform::RUBY s.summary = "gives something like the functionality of libwww-perl (LWP) in Ruby" - s.files = Dir.glob("{lib}/**/*") + s.files = Dir.glob("{lib,sample,test}/**/*") s.require_path = "lib" - s.has_rdoc = true end diff --git a/lib/httpclient.rb b/lib/httpclient.rb index e2851055..8b9e7708 100644 --- a/lib/httpclient.rb +++ b/lib/httpclient.rb @@ -229,7 +229,7 @@ # ruby -rhttpclient -e 'p HTTPClient.head(ARGV.shift).header["last-modified"]' http://dev.ctor.org/ # class HTTPClient - VERSION = '2.2.0.2' + VERSION = '2.2.1' RUBY_VERSION_STRING = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" /: (\S+) (\S+)/ =~ %q$Id$ LIB_NAME = "(#{$1}/#{$2}, #{RUBY_VERSION_STRING})"