api_bomb 0.1.0 → 0.1.2
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 +4 -4
- data/README.md +1 -1
- data/lib/api_bomb.rb +1 -1
- data/lib/api_bomb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86f8bab5896e8a1f18a8a76246bca168a116ce00
|
|
4
|
+
data.tar.gz: bcc37574ba51a78538183a7ab475268c4db570e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3736c0af7a9f50b21128534d74e27476a34ce2531755f5ea12b12dd3ca0462f0f1a5b9006e5a250b68b22de3d4e2153b7a6cacbda3ee52731de21bdf2b561d9c
|
|
7
|
+
data.tar.gz: 9eeb2ffb912140ef6acac7d698ae2a69ed67096d56fb156778abbd4fba118e48be45c3aba1864bedfe59d021e458fcb4c58bab71159c59621f1a0e23a97f56b2
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Usually in the global settings hash you just want to define the most common sett
|
|
|
38
38
|
|
|
39
39
|
```ruby
|
|
40
40
|
options = {
|
|
41
|
-
|
|
41
|
+
concurrent_users: 4, #concurrent users
|
|
42
42
|
duration: 60, #seconds
|
|
43
43
|
base_url: 'http://localhost:3000/api/v1', #base url
|
|
44
44
|
options: { #this hash is overriden for each path that has its own options
|
data/lib/api_bomb.rb
CHANGED
|
@@ -19,7 +19,7 @@ module ApiBomb
|
|
|
19
19
|
#alias_method :path, :paths
|
|
20
20
|
|
|
21
21
|
def initialize(opts = {})
|
|
22
|
-
@fronts = opts[:
|
|
22
|
+
@fronts = opts[:concurrent_users] || 2
|
|
23
23
|
@duration = opts[:duration] || 10
|
|
24
24
|
@paths = opts[:paths]
|
|
25
25
|
@paths = (opts[:path] || '') if @paths.blank?
|
data/lib/api_bomb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api_bomb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Filippos Vasilakis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: celluloid
|