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 +10 -0
- data/lib/httpclient/session.rb +2 -2
- data/lib/httpclient/timeout.rb +2 -2
- data/lib/httpclient/version.rb +1 -1
- metadata +4 -4
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
|
data/lib/httpclient/session.rb
CHANGED
data/lib/httpclient/timeout.rb
CHANGED
@@ -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
|
data/lib/httpclient/version.rb
CHANGED
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.
|
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-
|
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: -
|
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: -
|
101
|
+
hash: -3461181024347964072
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
104
|
rubygems_version: 1.8.23
|