reqsample 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f40922b479c65c01c72272a9dffe7d596b9d91db
4
- data.tar.gz: cabd856beb4100130e670a90f55aa93d2f2b461d
3
+ metadata.gz: 718979fc831c5a30881ec449c3165419388dbcd6
4
+ data.tar.gz: bb7e0303911a0f16c0204a4e9956ef6f30f18d1a
5
5
  SHA512:
6
- metadata.gz: 8e060ba69839a2abdd2ef117210c11fe6469ec32a6d4b7710f070747208929cf9e31cd1af109b4be563d4cce306b2cb03f69b5dc0300691ae87f6511c9f1868a
7
- data.tar.gz: db8c94f6ad928c5926a8463eca20bc31813d6e592e0fa2896c6d8a0658db1f321e55c955f9d8459882022dc2672d2516f1a156d07ead9249ad6625b4646a69ca
6
+ metadata.gz: 226ed636dadaa93c4234aac96a4924e470b9a94b4b7538a9b019658575bcee8effa33c7472fe9dc03e8e49bdc08b76ad521ac4b477b172d1abfe03cc77bc1d44
7
+ data.tar.gz: 33f58bec22eb0283d314e5f14cd3928009446676d5261ed668175865a59a78340ab90b4116a89f4605edf377543cf63a5928bab84871f754c9baf0c3801106ab
data/ChangeLog.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.0.2] (Sep 12, 2017)
11
+
12
+ - Fixed vendor method visibility
13
+
10
14
  ## [0.0.1] (Sep 12, 2017)
11
15
 
12
16
  - Initial release
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ReqSample
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reqsample
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Langlois