httperfrb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +8 -0
- data/README.md +12 -2
- data/lib/httperf.rb +3 -3
- metadata +11 -11
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -33,10 +33,20 @@ Requires httperf, of course...
|
|
33
33
|
|
34
34
|
#### Usage
|
35
35
|
|
36
|
+
Some basic usage examples.
|
37
|
+
|
36
38
|
require 'httperf'
|
37
39
|
perf = HTTPerf.new( "server" => "host", "port" => 8080, "uri" => "/foo" )
|
38
|
-
perf.run
|
40
|
+
puts perf.run
|
39
41
|
|
40
42
|
perf.update_option("uri", "/foo/bar")
|
41
|
-
perf.
|
43
|
+
thread = perf.fork
|
44
|
+
while((thread.alive?))
|
45
|
+
sleep 0.01
|
46
|
+
print "#"
|
47
|
+
end
|
48
|
+
unless perf.fork_err.nil?
|
49
|
+
puts perf.fork_out
|
50
|
+
end
|
51
|
+
|
42
52
|
|
data/lib/httperf.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'open4'
|
3
3
|
class HTTPerf
|
4
4
|
# gem version
|
5
|
-
VERSION = "0.1.
|
5
|
+
VERSION = "0.1.2"
|
6
6
|
|
7
7
|
# availbe instance methods
|
8
8
|
@fork_out, @fork_err = ''
|
@@ -84,9 +84,9 @@ class HTTPerf
|
|
84
84
|
status = wait_thr.value
|
85
85
|
end
|
86
86
|
if status == 0
|
87
|
-
return out.join
|
87
|
+
return out.join
|
88
88
|
else
|
89
|
-
return err.join
|
89
|
+
return err.join
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httperfrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-10 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &15314460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *15314460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: simplecov
|
27
|
-
requirement: &
|
27
|
+
requirement: &15313820 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *15313820
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yard
|
38
|
-
requirement: &
|
38
|
+
requirement: &15313240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *15313240
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: open4
|
49
|
-
requirement: &
|
49
|
+
requirement: &15312020 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *15312020
|
58
58
|
description: Simple interface for calling httperf via ruby.
|
59
59
|
email:
|
60
60
|
- joshua@mervine.net
|
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
segments:
|
82
82
|
- 0
|
83
|
-
hash:
|
83
|
+
hash: -118998426605859077
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|