httperfrb 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/HISTORY.md +8 -0
  2. data/README.md +12 -2
  3. data/lib/httperf.rb +3 -3
  4. metadata +11 -11
data/HISTORY.md CHANGED
@@ -1,6 +1,14 @@
1
1
  HTTPerf.rb
2
2
  ==========
3
3
 
4
+ ### 0.1.2
5
+
6
+ * fixed an issue with run output
7
+
8
+ ### 0.1.1
9
+
10
+ * updating gem dependancy list to include 'open4'
11
+
4
12
  ### 0.1.0
5
13
 
6
14
  * refactored #run to run system commands in a cleaner fashion
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.run
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
 
@@ -2,7 +2,7 @@
2
2
  require 'open4'
3
3
  class HTTPerf
4
4
  # gem version
5
- VERSION = "0.1.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("\n")
87
+ return out.join
88
88
  else
89
- return err.join("\n")
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.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-07-27 00:00:00.000000000Z
12
+ date: 2012-08-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &15428080 !ruby/object:Gem::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: *15428080
24
+ version_requirements: *15314460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simplecov
27
- requirement: &15427460 !ruby/object:Gem::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: *15427460
35
+ version_requirements: *15313820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &15427000 !ruby/object:Gem::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: *15427000
46
+ version_requirements: *15313240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: open4
49
- requirement: &15426380 !ruby/object:Gem::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: *15426380
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: 3240048528653912511
83
+ hash: -118998426605859077
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements: