httperfrb 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/httperf.rb +7 -1
  2. data/lib/httperf/version.rb +1 -1
  3. metadata +30 -20
  4. checksums.yaml +0 -7
@@ -2,6 +2,7 @@
2
2
  $:.unshift File.dirname(__FILE__)
3
3
  require 'httperf/parser'
4
4
  require 'httperf/version'
5
+ require 'shellwords'
5
6
 
6
7
  autoload :PTY, 'pty'
7
8
  autoload :Open4, 'open4'
@@ -144,12 +145,17 @@ class HTTPerf
144
145
  def options
145
146
  opts = ""
146
147
  @options.each do |key,val|
147
- opts << "--#{key}=#{val} " unless val.nil?
148
+ unless val.nil?
149
+ val = val.shellescape if key == 'uri'
150
+ opts << "--#{key}=#{val} "
151
+ end
148
152
  end
149
153
  opts.gsub!("--hog=true", "--hog")
150
154
  opts.gsub!("--hog=false", "")
151
155
  opts.gsub!("--verbose=true", "--verbose")
152
156
  opts.gsub!("--verbose=false", "")
157
+ opts.gsub!("--session-cookies=true", "--session-cookies")
158
+ opts.gsub!("--session-cookies=false", "")
153
159
  opts
154
160
  end
155
161
 
@@ -1,4 +1,4 @@
1
1
  class HTTPerf
2
- VERSION = "0.3.12"
2
+ VERSION = "0.3.13"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,69 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httperfrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Joshua Mervine
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-04-14 00:00:00.000000000 Z
12
+ date: 2015-03-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rspec
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: simplecov
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: yard
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: open4
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  description: Simple interface for calling httperf via ruby.
@@ -73,34 +82,35 @@ executables: []
73
82
  extensions: []
74
83
  extra_rdoc_files: []
75
84
  files:
76
- - Gemfile
77
- - HISTORY.md
78
- - README.md
79
- - lib/httperf.rb
80
- - lib/httperf/parser.rb
81
85
  - lib/httperf/version.rb
86
+ - lib/httperf/parser.rb
87
+ - lib/httperf.rb
88
+ - README.md
89
+ - HISTORY.md
90
+ - Gemfile
82
91
  homepage: http://www.rubyops.net/gems/httperfrb
83
92
  licenses: []
84
- metadata: {}
85
93
  post_install_message:
86
94
  rdoc_options: []
87
95
  require_paths:
88
96
  - lib
89
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
90
99
  requirements:
91
- - - ">="
100
+ - - ! '>='
92
101
  - !ruby/object:Gem::Version
93
102
  version: '0'
94
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
+ none: false
95
105
  requirements:
96
- - - ">="
106
+ - - ! '>='
97
107
  - !ruby/object:Gem::Version
98
108
  version: 1.3.6
99
109
  requirements: []
100
110
  rubyforge_project:
101
- rubygems_version: 2.2.0
111
+ rubygems_version: 1.8.23
102
112
  signing_key:
103
- specification_version: 4
113
+ specification_version: 3
104
114
  summary: HTTPerf via Ruby
105
115
  test_files: []
106
116
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 6b705e7247c6744494b65c15825a3ac1327e8851
4
- data.tar.gz: 8919ba451a401f501fafec0507b6c6d7c6fbcf5d
5
- SHA512:
6
- metadata.gz: f7024b403d7cccf306542812ce63b64a5bdbd35bceec29b0aa7e88d3aeb125389c05c64fb8a14d42798fdfc5d2b91da378662673035aa83fcc17e1d2ab56ca40
7
- data.tar.gz: dd259a990b807a93814242abdc43c8f38d324ed19bfb7871d1be1ff5a9e6fa6d64727e1a2b443fb0b19002a22cb8f21282360bd352dd5433fa1f7869538aa7a4