gas_load_tester 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ade4e088d36044b146dbec2f32a7fcfdf9972731
4
- data.tar.gz: 1d5fac3339a4f1eff64b8c7396439359cc2ab985
3
+ metadata.gz: e1312b997b7cfd9f0a6bfe60e137b71d81faf19b
4
+ data.tar.gz: 66fa05b246ce0c86f65472442fdb1d705ee30780
5
5
  SHA512:
6
- metadata.gz: 91865e68662f33a5e54c925696266d1db0194f623d828056c749bb41f777978c49790a320fcd76ac9bb825f41fe034563dfea3a7a01e8137ab25233a4952d907
7
- data.tar.gz: 17da177bd6c2511c7633025b41b3a961ca47add4244666aa17eccde49eededa72cc7e8bbfd403d055e80204aac7f0921e6669325f411d0c953054aabc1f68009
6
+ metadata.gz: '01917387f0e0d709761e8b9d8956790522ba5d13d9b500dc7a2eb6b721795fd67bcffcecae3cbfa4429fb93c5dd0f6cac97a29137c29b40b212d1926d1497e22'
7
+ data.tar.gz: a625394520be349e008a5cfba0e7d1c8cb911cc481fbaebe5b5f5ee2a077098e9c3977175c98333e8e3b167eb1e9930f763afcc235beeae02aa58aae263a09f3
data/README.md CHANGED
@@ -32,7 +32,7 @@ simple_test.results
32
32
 
33
33
  ```ruby
34
34
  simple_test = GasLoadTester::Test.new({client: 10000, time: 60})
35
- simple_test.run(output: true, file: '/mytest/mysite_result') do
35
+ simple_test.run(output: true, file_name: '/mytest/mysite_result') do
36
36
  RestClient.get("https://www.mysite.com", {})
37
37
  end
38
38
  ```
@@ -50,7 +50,7 @@ simple_group_test = GasLoadTester::GroupTest.new([
50
50
  {"client" => 150, "time" => 10},
51
51
  {"client" => 160, "time" => 7}
52
52
  ])
53
- simple_group_test.run(output: true, file: '/mytest/mysite_group_result.html') do
53
+ simple_group_test.run(output: true, file_name: '/mytest/mysite_group_result.html') do
54
54
  RestClient.get("https://www.mysite.com", {})
55
55
  end
56
56
  ```
@@ -90,7 +90,7 @@ module GasLoadTester
90
90
  threads = []
91
91
  rps = request_per_second
92
92
  rps_decimal = rps.modulo(1)
93
- full_rps = rps - rps_decimal
93
+ full_rps = (rps - rps_decimal).to_i
94
94
  stacking_decimal = 0.0
95
95
  self.time.times do |index|
96
96
  self.results[index] = []
@@ -1,3 +1,3 @@
1
1
  module GasLoadTester
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gas_load_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanapat Sainak