httpclient 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.txt CHANGED
@@ -107,6 +107,16 @@ Thanks in advance.
107
107
 
108
108
  == Changes
109
109
 
110
+ = Changes in 2.3.2 =
111
+
112
+ January 5, 2013 - version 2.3.2
113
+
114
+ * Changes
115
+
116
+ * #138 Revert Timeout change unintentionally included in v2.3.1. It's
117
+ reported that the change causes background processes not terminated
118
+ properly.
119
+
110
120
  = Changes in 2.3.1 =
111
121
 
112
122
  January 1, 2013 - version 2.3.1
@@ -958,8 +958,8 @@ class HTTPClient
958
958
  buf = nil
959
959
  end
960
960
  end
961
- if buf && (size = buf.bytesize) > 0
962
- @content_length -= size
961
+ if buf && buf.bytesize > 0
962
+ @content_length -= buf.bytesize
963
963
  yield buf
964
964
  else
965
965
  @content_length = 0
@@ -23,7 +23,7 @@ class HTTPClient
23
23
  # timeout scheduler.
24
24
  # * Do not wakeup the scheduler thread so often. Let scheduler thread sleep
25
25
  # until the nearest period.
26
- if !defined?(JRUBY_VERSION)
26
+ if !defined?(JRUBY_VERSION) and RUBY_VERSION < '1.9'
27
27
  class TimeoutScheduler
28
28
 
29
29
  # Represents timeout period.
@@ -121,7 +121,7 @@ if !defined?(JRUBY_VERSION)
121
121
  end
122
122
 
123
123
  module Timeout
124
- if !defined?(JRUBY_VERSION)
124
+ if !defined?(JRUBY_VERSION) and RUBY_VERSION < '1.9'
125
125
  def timeout(sec, ex = nil, &block)
126
126
  return yield if sec == nil or sec.zero?
127
127
  scheduler = nil
@@ -1,3 +1,3 @@
1
1
  class HTTPClient
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-01 00:00:00.000000000 Z
12
+ date: 2013-01-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: nahi@ruby-lang.org
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: -1558537752152855692
92
+ hash: -3461181024347964072
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: -1558537752152855692
101
+ hash: -3461181024347964072
102
102
  requirements: []
103
103
  rubyforge_project:
104
104
  rubygems_version: 1.8.23