hulk_smash 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'stringio'
3
3
 
4
4
  module HulkSmash
5
5
  class Smasher
6
- attr_reader :url, :duration, :concurrent_users
6
+ attr_reader :url, :duration, :concurrent_users, :result
7
7
 
8
8
  def initialize(url='http://localhost', options={})
9
9
  @duration = options[:duration] || self.class.default_duration
@@ -12,11 +12,11 @@ module HulkSmash
12
12
  end
13
13
 
14
14
  def run_load_test
15
- execute_siege_command "siege -b -t#{duration} -c#{concurrent_users} #{url}"
15
+ @result = execute_siege_command "siege -b -t#{duration} -c#{concurrent_users} #{url}"
16
16
  end
17
17
 
18
18
  def run_scalability_test
19
- execute_siege_command "siege -t#{duration} -c#{concurrent_users} #{url}"
19
+ @result = execute_siege_command "siege -t#{duration} -c#{concurrent_users} #{url}"
20
20
  end
21
21
 
22
22
  private
@@ -5,7 +5,7 @@ module HulkSmash
5
5
  end
6
6
 
7
7
  def self.minor
8
- 0
8
+ 1
9
9
  end
10
10
 
11
11
  def self.patch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hulk_smash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
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: 2012-08-01 00:00:00.000000000 Z
12
+ date: 2012-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake