net-http-persistent 1.5.1 → 1.5.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.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.5.2 / 2011-02-24
2
+
3
+ * Bug Fix
4
+ * Only set TCP_NODELAY if the connection has an @socket. Allows
5
+ net-http-persistent to be used with fake_web. Reported by Sathish
6
+ Pasupunuri.
7
+
1
8
  === 1.5.1 / 2011-02-10
2
9
 
3
10
  * Bug fix
data/README.txt CHANGED
@@ -1,4 +1,4 @@
1
- = net_http_persistent
1
+ = net-http-persistent
2
2
 
3
3
  * http://seattlerb.rubyforge.org/net-http-persistent
4
4
 
data/Rakefile CHANGED
@@ -5,6 +5,7 @@ require 'hoe'
5
5
 
6
6
  Hoe.plugin :git
7
7
  Hoe.plugin :minitest
8
+ Hoe.plugin :rubyforge
8
9
 
9
10
  Hoe.spec 'net-http-persistent' do |p|
10
11
  self.rubyforge_name = 'seattlerb'
@@ -37,7 +37,7 @@ class Net::HTTP::Persistent
37
37
  ##
38
38
  # The version of Net::HTTP::Persistent use are using
39
39
 
40
- VERSION = '1.5.1'
40
+ VERSION = '1.5.2'
41
41
 
42
42
  ##
43
43
  # Error class for errors raised by Net::HTTP::Persistent. Various
@@ -225,7 +225,8 @@ class Net::HTTP::Persistent
225
225
 
226
226
  if Socket.const_defined? :TCP_NODELAY then
227
227
  socket = connection.instance_variable_get :@socket
228
- socket.io.setsockopt Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1
228
+ socket.io.setsockopt Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1 if
229
+ socket # for fakeweb
229
230
  end
230
231
  end
231
232
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http-persistent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Hodel
@@ -36,7 +36,7 @@ cert_chain:
36
36
  x52qPcexcYZR7w==
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2011-02-10 00:00:00 -08:00
39
+ date: 2011-02-24 00:00:00 -08:00
40
40
  default_executable:
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
@@ -56,9 +56,25 @@ dependencies:
56
56
  type: :development
57
57
  version_requirements: *id001
58
58
  - !ruby/object:Gem::Dependency
59
- name: hoe
59
+ name: rubyforge
60
60
  prerelease: false
61
61
  requirement: &id002 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 7
67
+ segments:
68
+ - 2
69
+ - 0
70
+ - 4
71
+ version: 2.0.4
72
+ type: :development
73
+ version_requirements: *id002
74
+ - !ruby/object:Gem::Dependency
75
+ name: hoe
76
+ prerelease: false
77
+ requirement: &id003 !ruby/object:Gem::Requirement
62
78
  none: false
63
79
  requirements:
64
80
  - - ">="
@@ -70,7 +86,7 @@ dependencies:
70
86
  - 0
71
87
  version: 2.9.0
72
88
  type: :development
73
- version_requirements: *id002
89
+ version_requirements: *id003
74
90
  description: |-
75
91
  Persistent connections using Net::HTTP plus a speed fix for 1.8. It's
76
92
  thread-safe too!
@@ -125,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
141
  requirements: []
126
142
 
127
143
  rubyforge_project: seattlerb
128
- rubygems_version: 1.5.0
144
+ rubygems_version: 1.5.2
129
145
  signing_key:
130
146
  specification_version: 3
131
147
  summary: Persistent connections using Net::HTTP plus a speed fix for 1.8
metadata.gz.sig CHANGED
Binary file