http_spew 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +27 -0
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/Gemfile +4 -4
- data/LATEST +3 -6
- data/NEWS +5 -0
- data/http_spew.gemspec +2 -2
- data/lib/http_spew/class_methods.rb +1 -2
- data/lib/http_spew/request.rb +1 -3
- data/lib/http_spew/version.rb +1 -1
- metadata +11 -11
data/ChangeLog
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
ChangeLog from http://bogomips.org/http_spew.git
|
2
2
|
|
3
|
+
commit 0e7be47dae62ffbbb5f69d42daea21e4f66ead0c
|
4
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
5
|
+
Date: Thu Nov 3 00:23:03 2011 +0000
|
6
|
+
|
7
|
+
http_spew 0.4.0
|
8
|
+
|
9
|
+
Bump kgio dependency to the latest version to remove
|
10
|
+
need for IO#wait.
|
11
|
+
|
12
|
+
commit b11b3d1b4212b5d6a8df12d365eeee50668439e1
|
13
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
14
|
+
Date: Mon Oct 31 17:25:49 2011 -0700
|
15
|
+
|
16
|
+
use kgio_wait_readable instead of IO#wait
|
17
|
+
|
18
|
+
Newer kgio (2.5 and later) expose an optional timeout for
|
19
|
+
kgio_wait_readable. IO#wait will unnecessarily call ioctl(2)
|
20
|
+
with FIONREAD.
|
21
|
+
|
22
|
+
commit 1817385f5e72515d64c3b1296bc20af8b0c0423a
|
23
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
24
|
+
Date: Thu Jun 9 14:02:58 2011 -0700
|
25
|
+
|
26
|
+
gemspec: update kcar dependency
|
27
|
+
|
28
|
+
kcar 0.3.0 has minor improvements
|
29
|
+
|
3
30
|
commit b53bbc7852d9788099e514b54a0b90d82a3338bb
|
4
31
|
Author: Eric Wong <normalperson@yhbt.net>
|
5
32
|
Date: Wed May 11 23:25:49 2011 +0000
|
data/GIT-VERSION-FILE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
GIT_VERSION = 0.
|
1
|
+
GIT_VERSION = 0.4.0
|
data/GIT-VERSION-GEN
CHANGED
data/Gemfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
source(ENV["GEM_SOURCE"] || :rubygems)
|
2
|
-
gem 'rack', '~> 1.
|
3
|
-
gem 'kgio', '~> 2.
|
4
|
-
gem 'kcar', '~> 0.
|
5
|
-
gem 'unicorn', '~>
|
2
|
+
gem 'rack', '~> 1.3'
|
3
|
+
gem 'kgio', '~> 2.6'
|
4
|
+
gem 'kcar', '~> 0.3'
|
5
|
+
gem 'unicorn', '~> 4' # not many servers offer HTTP Trailer handling
|
data/LATEST
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
=== http_spew 0.
|
1
|
+
=== http_spew 0.4.0 / 2011-11-03 00:23 UTC
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
* update bytes_digested for incomplete xfers
|
6
|
-
|
7
|
-
Still not API-stable, but maybe it's closer...
|
3
|
+
Bump kgio dependency to the latest version to remove
|
4
|
+
need for IO#wait.
|
8
5
|
|
data/NEWS
CHANGED
data/http_spew.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.rdoc_options = rdoc_options
|
19
19
|
s.rubyforge_project = %q{rainbows}
|
20
20
|
s.test_files = Dir["test/test_*.rb"]
|
21
|
-
s.add_dependency(%q<kcar>, "~> 0.
|
22
|
-
s.add_dependency(%q<kgio>, "~> 2.
|
21
|
+
s.add_dependency(%q<kcar>, "~> 0.3")
|
22
|
+
s.add_dependency(%q<kgio>, "~> 2.6")
|
23
23
|
s.add_development_dependency(%q<wrongdoc>, "~> 1.5")
|
24
24
|
end
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require "thread"
|
2
|
-
require "io/wait"
|
3
2
|
|
4
3
|
module HTTP_Spew::ClassMethods
|
5
4
|
def error_all(requests, error) # :nodoc:
|
@@ -69,7 +68,7 @@ module HTTP_Spew::ClassMethods
|
|
69
68
|
end
|
70
69
|
end
|
71
70
|
begin
|
72
|
-
with_timeout(t) { r.
|
71
|
+
with_timeout(t) { r.kgio_wait_readable(t[0]) }
|
73
72
|
req_idx = r.read(2).unpack("v")[0]
|
74
73
|
thr = active[req_idx]
|
75
74
|
with_timeout(t) { thr.join(t[0]) }
|
data/lib/http_spew/request.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
require "io/wait"
|
3
|
-
|
4
2
|
# This is the base class actually capable of making a normal HTTP request
|
5
3
|
class HTTP_Spew::Request
|
6
4
|
|
@@ -66,7 +64,7 @@ class HTTP_Spew::Request
|
|
66
64
|
timeout -= (Time.now - t0)
|
67
65
|
while :wait_readable == (rv = read_response) && timeout >= 0.0
|
68
66
|
t0 = Time.now
|
69
|
-
@to_io.
|
67
|
+
@to_io.kgio_wait_readable(timeout) if timeout > 0.0
|
70
68
|
timeout -= (Time.now - t0)
|
71
69
|
end
|
72
70
|
rv
|
data/lib/http_spew/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
HTTP_Spew.const_set :VERSION, "0.
|
2
|
+
HTTP_Spew.const_set :VERSION, "0.4.0"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_spew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- HTTP Spew hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: kcar
|
@@ -25,11 +25,11 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 13
|
29
29
|
segments:
|
30
30
|
- 0
|
31
|
-
-
|
32
|
-
version: "0.
|
31
|
+
- 3
|
32
|
+
version: "0.3"
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
@@ -40,11 +40,11 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 15
|
44
44
|
segments:
|
45
45
|
- 2
|
46
|
-
-
|
47
|
-
version: "2.
|
46
|
+
- 6
|
47
|
+
version: "2.6"
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
requirements: []
|
159
159
|
|
160
160
|
rubyforge_project: rainbows
|
161
|
-
rubygems_version: 1.8.
|
161
|
+
rubygems_version: 1.8.5
|
162
162
|
signing_key:
|
163
163
|
specification_version: 3
|
164
164
|
summary: LAN-only HTTP spam^H^H^H^Hclient for Ruby
|