httperfrb 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,6 +1,14 @@
1
1
  HTTPerf.rb
2
2
  ==========
3
3
 
4
+ ### 0.3.11
5
+
6
+ * Fixing error handling in process handing for `HTTPerf#run`.
7
+
8
+ ### 0.3.10
9
+
10
+ * Adding `tee` support.
11
+
4
12
  ### 0.3.6
5
13
 
6
14
  * cleaning up Open3 vs. Open4 and making them autoload for a slight performance increase
data/lib/httperf.rb CHANGED
@@ -97,6 +97,7 @@ class HTTPerf
97
97
  rescue Errno::EIO
98
98
  #Errno:EIO error probably just means that the process has finished giving output
99
99
  end
100
+ Process.wait(pid)
100
101
  end
101
102
  rescue PTY::ChildExited
102
103
  # The child process has exited.
@@ -105,6 +106,8 @@ class HTTPerf
105
106
  if $?.exitstatus == 0
106
107
  return Parser.parse(out) if @parse
107
108
  return out
109
+ else
110
+ raise "httperf exited with status #{$?.exitstatus}\n\nhttperf output:\n--------------\n#{out}"
108
111
  end
109
112
  end
110
113
 
@@ -1,4 +1,4 @@
1
1
  class HTTPerf
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
4
4
 
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.3.10
4
+ version: 0.3.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: