bombard 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bombard/version.rb +1 -1
- data/lib/siege.rb +3 -4
- metadata +2 -2
data/lib/bombard/version.rb
CHANGED
data/lib/siege.rb
CHANGED
|
@@ -5,7 +5,6 @@ class Siege
|
|
|
5
5
|
DEFAULTS = {
|
|
6
6
|
duration: '30s',
|
|
7
7
|
users: 15,
|
|
8
|
-
delay: 1,
|
|
9
8
|
rc: File.expand_path('../siege/data/siegerc', __FILE__)
|
|
10
9
|
}
|
|
11
10
|
OPTIONS = {
|
|
@@ -31,12 +30,12 @@ class Siege
|
|
|
31
30
|
end
|
|
32
31
|
|
|
33
32
|
def executor
|
|
34
|
-
puts "Sieging with:\n\tsiege #{cli_opts} -f
|
|
35
|
-
`siege #{cli_opts} -f
|
|
33
|
+
puts "Sieging with:\n\tsiege #{cli_opts} -f#{@url_file.name} 2>&1"
|
|
34
|
+
`siege #{cli_opts} -f#{@url_file.name} 2>&1`
|
|
36
35
|
end
|
|
37
36
|
|
|
38
37
|
def cli_opts
|
|
39
|
-
@conf.flat_map { |opt, val|
|
|
38
|
+
@conf.flat_map { |opt, val| OPTIONS[opt] + val.to_s }.
|
|
40
39
|
join(' ').
|
|
41
40
|
gsub(/(\-\w) true/, '\1').
|
|
42
41
|
gsub(/\-\w false/, '')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bombard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-05-
|
|
12
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|