puma-benchmark 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64fb12eb3b6aa9f71b3a06822ee29952577a0d8e4a2c636584e376b605af8794
4
- data.tar.gz: ac2497c7e142ae4f9857e2463f44d0fc5a57e761a3113099610f5e5ffdf3e873
3
+ metadata.gz: 16963573ba17d5cf158086f4985494e5e18f4ef7b669ff68fb26b00bc3968975
4
+ data.tar.gz: 909a8817a04f7ad407faf6514557777f2dc15a43fd28270d7612c822d3a8c0e8
5
5
  SHA512:
6
- metadata.gz: d03337ca4b222bc92ea8a9b53e64e12fcf3acc52faf317bd2634473cbdb80d6d07fa3d80e5203f8443a71a2f8cdca0e42238c34f68816218bbad9835fb6f1c94
7
- data.tar.gz: 469fa350cc4881ecb4a11e3d9fdfa574319a61b05340ad520b5d493b9c881c7da4e0985883ee00dc5731b267fb26b95507147913fc561ca210c7177c0a26753b
6
+ metadata.gz: 02f2d3ff5459925c7675b46982ca0b3421d058c835b534dc5e3acb4d8bef8efef10d54f02f3b6f1d8bb844e352b420e0afa8069d19169391d2ddfbd01924a31f
7
+ data.tar.gz: 3b34c378ba6cec53be1b02a3cc2a40cf6b268c9edfb56fadef0f1ca50cc4b7f244c8be04f555d06b0ab0462f0e276ebbf320e746482369dd39bde0244e76c4ca
@@ -8,8 +8,8 @@ module Puma
8
8
  def initialize(params)
9
9
  @base_url = params[:base_url] || 'http://localhost:3000'
10
10
  @api = params[:api]
11
- @max_threads = params[:threads].to_i || 4
12
- @max_workers = params[:workers].to_i || 4
11
+ @max_threads = (params[:threads] || 4).to_i
12
+ @max_workers = (params[:workers]|| 4).to_i
13
13
  @duration = params[:duration] || 30
14
14
  @environment = params[:environment] || 'production'
15
15
  @result = []
@@ -1,5 +1,5 @@
1
1
  module Puma
2
2
  module Benchmark
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anil Maurya