blitz 0.1.16 → 0.1.17
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/blitz.gemspec +2 -2
- data/lib/blitz.rb +1 -1
- data/lib/blitz/command/curl.rb +2 -2
- data/spec/command/curl_spec.rb +1 -1
- metadata +3 -3
data/blitz.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{blitz}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.17"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["pcapr"]
|
12
|
-
s.date = %q{2011-10
|
12
|
+
s.date = %q{2011-11-10}
|
13
13
|
s.default_executable = %q{blitz}
|
14
14
|
s.description = %q{Make load and performance testing a fun sport}
|
15
15
|
s.email = %q{support@blitz.io}
|
data/lib/blitz.rb
CHANGED
data/lib/blitz/command/curl.rb
CHANGED
@@ -205,7 +205,7 @@ class Curl < Command # :nodoc:
|
|
205
205
|
{ :short => '-h', :long => '--help', :value => '', :help => 'Help on command line options' },
|
206
206
|
{ :short => '-H', :long => '--header', :value => '<string>', :help => 'Custom header to pass to server' },
|
207
207
|
{ :short => '-p', :long => '--pattern', :value => '<s>-<e>:<d>', :help => 'Ramp from s to e concurrent requests in d secs' },
|
208
|
-
{ :short => '-r', :long => '--region', :value => '<string>', :help => 'california|virginia|singapore|ireland|japan' },
|
208
|
+
{ :short => '-r', :long => '--region', :value => '<string>', :help => 'california|oregon|virginia|singapore|ireland|japan' },
|
209
209
|
{ :short => '-s', :long => '--status', :value => '<number>', :help => 'Assert on the HTTP response status code' },
|
210
210
|
{ :short => '-T', :long => '--timeout', :value => '<ms>', :help => 'Wait time for both connect and responses' },
|
211
211
|
{ :short => '-u', :long => '--user', :value => '<user[:pass]>', :help => 'User and password for authentication' },
|
@@ -299,7 +299,7 @@ class Curl < Command # :nodoc:
|
|
299
299
|
|
300
300
|
if [ '-r', '--region' ].member? k
|
301
301
|
v = shift(k, argv)
|
302
|
-
assert_match(/^california|virginia|singapore|ireland|japan$/, v, 'region must be one of california, virginia, singapore, japan or ireland')
|
302
|
+
assert_match(/^california|oregon|virginia|singapore|ireland|japan$/, v, 'region must be one of california, oregon, virginia, singapore, japan or ireland')
|
303
303
|
hash['region'] = v
|
304
304
|
next
|
305
305
|
end
|
data/spec/command/curl_spec.rb
CHANGED
@@ -178,7 +178,7 @@ describe "parse_cli" do
|
|
178
178
|
end
|
179
179
|
|
180
180
|
it "should verify that it's a valid region" do
|
181
|
-
[ 'california', 'virginia', 'ireland', 'singapore', 'japan' ].each do |r|
|
181
|
+
[ 'california', 'oregon', 'virginia', 'ireland', 'singapore', 'japan' ].each do |r|
|
182
182
|
lambda { curl.parse ['-r', r, 'blitz.io' ] }.should_not raise_error
|
183
183
|
end
|
184
184
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: blitz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.17
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- pcapr
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-10
|
13
|
+
date: 2011-11-10 00:00:00 -08:00
|
14
14
|
default_executable: blitz
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
hash: -
|
176
|
+
hash: -327190193
|
177
177
|
segments:
|
178
178
|
- 0
|
179
179
|
version: "0"
|