reqsample 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/lib/reqsample/generator.rb +5 -7
- data/lib/reqsample/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 718979fc831c5a30881ec449c3165419388dbcd6
|
4
|
+
data.tar.gz: bb7e0303911a0f16c0204a4e9956ef6f30f18d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 226ed636dadaa93c4234aac96a4924e470b9a94b4b7538a9b019658575bcee8effa33c7472fe9dc03e8e49bdc08b76ad521ac4b477b172d1abfe03cc77bc1d44
|
7
|
+
data.tar.gz: 33f58bec22eb0283d314e5f14cd3928009446676d5261ed668175865a59a78340ab90b4116a89f4605edf377543cf63a5928bab84871f754c9baf0c3801106ab
|
data/ChangeLog.md
CHANGED
data/lib/reqsample/generator.rb
CHANGED
@@ -25,6 +25,11 @@ module ReqSample
|
|
25
25
|
DEFAULT_FORMAT = :apache
|
26
26
|
DEFAULT_MAX_BYTES = 512
|
27
27
|
|
28
|
+
def vendor(file)
|
29
|
+
v = File.expand_path('../../../vendor', __FILE__)
|
30
|
+
JSON.parse(File.read(File.join(v, file)))
|
31
|
+
end
|
32
|
+
|
28
33
|
# @param peak_sd [Float] standard deviation in the normal distribution
|
29
34
|
def initialize(peak_sd = 4.0)
|
30
35
|
@agents = ReqSample::Hash.weighted(vendor('user_agents.json'))
|
@@ -122,11 +127,4 @@ module ReqSample
|
|
122
127
|
end
|
123
128
|
end
|
124
129
|
end
|
125
|
-
|
126
|
-
private
|
127
|
-
|
128
|
-
def vendor(file)
|
129
|
-
v = File.expand_path('../../../vendor', __FILE__)
|
130
|
-
JSON.parse(File.read(File.join(v, file)))
|
131
|
-
end
|
132
130
|
end
|
data/lib/reqsample/version.rb
CHANGED