crusher 0.0.8.3 → 0.0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crusher/crush_session.rb +2 -2
- data/lib/crusher/http_load_generator.rb +4 -3
- metadata +49 -63
@@ -70,7 +70,7 @@ module Crusher
|
|
70
70
|
|
71
71
|
fork do
|
72
72
|
log_output = @options[:log_file] ? @options.delete(:log_file) : STDOUT
|
73
|
-
@logger = Logger.new(log_output
|
73
|
+
@logger = Logger.new(log_output)
|
74
74
|
formatter = Logger::Formatter.new
|
75
75
|
formatter.datetime_format = "%Y-%m-%d %H:%M:%S"
|
76
76
|
@logger.formatter = formatter
|
@@ -100,4 +100,4 @@ module Crusher
|
|
100
100
|
|
101
101
|
end
|
102
102
|
|
103
|
-
end
|
103
|
+
end
|
@@ -8,12 +8,12 @@ module Crusher
|
|
8
8
|
@cookies = ::WebAgent::CookieManager.new
|
9
9
|
end
|
10
10
|
|
11
|
-
def request(method, path, content = {}, &block)
|
11
|
+
def request(method, path, content = {}, custom_headers = {}, &block)
|
12
12
|
|
13
13
|
uri = URI.parse(path)
|
14
14
|
|
15
15
|
http_args = content.keys.map do |key|
|
16
|
-
content[key] ? "#{
|
16
|
+
content[key] ? "#{CGI.escape(key.to_s)}=#{CGI.escape(content[key].to_s)}" : nil
|
17
17
|
end
|
18
18
|
|
19
19
|
qs, content = if method == :get
|
@@ -29,6 +29,7 @@ module Crusher
|
|
29
29
|
:request => uri.path,
|
30
30
|
:query_string => qs,
|
31
31
|
:content => content,
|
32
|
+
:custom_headers => custom_headers,
|
32
33
|
:contenttype => 'application/x-www-form-urlencoded',
|
33
34
|
:cookie => @cookies.find(uri),
|
34
35
|
:ssl => (uri.scheme == "https" ? true : false)
|
@@ -65,4 +66,4 @@ module Crusher
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
68
|
-
end
|
69
|
+
end
|
metadata
CHANGED
@@ -1,65 +1,61 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: crusher
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.8.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 8
|
10
|
-
- 3
|
11
|
-
version: 0.0.8.3
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Geoffrey Hichborn
|
15
9
|
- Mitch Williams
|
16
10
|
- Sean Cashin
|
17
11
|
autorequire:
|
18
12
|
bindir: bin
|
19
13
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2012-04-30 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
24
17
|
name: httpclient
|
25
|
-
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
27
19
|
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
segments:
|
33
|
-
- 0
|
34
|
-
version: "0"
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
35
24
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: crusher-eventmachine
|
39
25
|
prerelease: false
|
40
|
-
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: crusher-eventmachine
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
41
35
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
49
40
|
type: :runtime
|
50
|
-
|
51
|
-
|
52
|
-
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
description: A scriptable, multiprocessing load generator designed to bring web applications
|
49
|
+
to their knees
|
50
|
+
email:
|
53
51
|
- geoff@socialcast.com
|
54
52
|
- mitch@socialcast.com
|
55
53
|
- sean@socialcast.com
|
56
|
-
executables:
|
54
|
+
executables:
|
57
55
|
- crush
|
58
56
|
extensions: []
|
59
|
-
|
60
57
|
extra_rdoc_files: []
|
61
|
-
|
62
|
-
files:
|
58
|
+
files:
|
63
59
|
- lib/crusher/configurator.rb
|
64
60
|
- lib/crusher/crush_session.rb
|
65
61
|
- lib/crusher/http_load_generator.rb
|
@@ -70,36 +66,26 @@ files:
|
|
70
66
|
- Rakefile
|
71
67
|
homepage: http://github.com/socialcast/crusher
|
72
68
|
licenses: []
|
73
|
-
|
74
69
|
post_install_message:
|
75
70
|
rdoc_options: []
|
76
|
-
|
77
|
-
require_paths:
|
71
|
+
require_paths:
|
78
72
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
74
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
|
86
|
-
- 0
|
87
|
-
version: "0"
|
88
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
80
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
version: "0"
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
97
85
|
requirements: []
|
98
|
-
|
99
86
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.8.
|
87
|
+
rubygems_version: 1.8.21
|
101
88
|
signing_key:
|
102
89
|
specification_version: 3
|
103
90
|
summary: A scriptable load generator
|
104
91
|
test_files: []
|
105
|
-
|