ruby-jmeter 2.1.3 → 2.1.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.
@@ -2,10 +2,10 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  require 'ruby-jmeter'
3
3
 
4
4
  test do
5
- threads count: 1 do
5
+ threads count: 20 do
6
6
  visit name: 'Home Page', url: 'http://google.com/'
7
7
  end
8
- end.flood('qCL6dv7qzqeBB7LYSR2x', {
8
+ end.flood('HzxdagQadz1GkfBnkrmk', {
9
9
  name: 'Demo using flood.io',
10
10
  region: 'us-west-2',
11
11
  endpoint: 'dev.api.flood.io:3000'
@@ -390,7 +390,7 @@ module RubyJmeter
390
390
  logger.fatal "Sorry there was an error: #{JSON.parse(response)["error_description"]}"
391
391
  end
392
392
  rescue => e
393
- logger.fatal "Sorry there was a fatal error: #{e.message}"
393
+ logger.fatal "Sorry there was an error: #{JSON.parse(e.response)["error_description"]}"
394
394
  end
395
395
  end
396
396
 
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = "2.1.3"
2
+ VERSION = "2.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.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: 2013-10-17 00:00:00.000000000 Z
12
+ date: 2013-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -253,4 +253,7 @@ rubygems_version: 1.8.23
253
253
  signing_key:
254
254
  specification_version: 3
255
255
  summary: This is a Ruby based DSL for writing JMeter test plans
256
- test_files: []
256
+ test_files:
257
+ - spec/dsl_spec.rb
258
+ - spec/spec_helper.rb
259
+ - spec/stub.rb