weighted_sampler 1.0.0 → 1.0.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 +4 -4
- data/.gitlab-ci.yml +4 -4
- data/.travis.yml +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +5 -2
- data/lib/weighted_sampler/version.rb +1 -1
- data/weighted_sampler.gemspec +4 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 484d62fd78bfc61f3f7955dba454d3ebbbe836ca2f05d6cf62c4a8b347b17760
|
4
|
+
data.tar.gz: 744ec53a149444fb29f0ea5a7b4399848726d361bfca04ad9cd710bb7a61fe68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0818c61256774eebbc72865028b4ba6e975d044a72f669f5120da8cbddb776d06af5534be4ca5d23c2329792a01bde97155b6e617eadfe2ff0115dbe13c16714'
|
7
|
+
data.tar.gz: d9d0b7efa00aa2f95bc6a54e8c018e6d7c5a70a9bfaf9935fe7b3c03959b15bfa028fce0810e8b1cca3b6c774061266cc3dfb48078f3320f51bc4aec781f50dc
|
data/.gitlab-ci.yml
CHANGED
@@ -7,17 +7,17 @@ before_script:
|
|
7
7
|
- bundle install
|
8
8
|
|
9
9
|
ruby2.3:
|
10
|
-
image: ruby:2.3
|
10
|
+
image: ruby:2.3.7
|
11
11
|
script: rspec
|
12
12
|
|
13
13
|
ruby2.4:
|
14
|
-
image: ruby:2.4
|
14
|
+
image: ruby:2.4.4
|
15
15
|
script: rspec
|
16
16
|
|
17
17
|
ruby2.5:
|
18
|
-
image: ruby:2.5
|
18
|
+
image: ruby:2.5.1
|
19
19
|
script: rspec
|
20
20
|
|
21
21
|
ruby2.6-rc:
|
22
|
-
image: ruby:2.6-
|
22
|
+
image: ruby:2.6.0-preview2
|
23
23
|
script: rspec
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# WeightedSampler
|
2
2
|
|
3
|
-
|
3
|
+
Main repository is https://gitlab.com/alexey_b/weighted_sampler
|
4
|
+
|
5
|
+
Gitlab [](https://gitlab.com/alexey_b/weighted_sampler/commits/master)[](https://gitlab.com/alexey_b/weighted_sampler/commits/master) Travis [](https://travis-ci.org/ababich/weighted_sampler)
|
6
|
+
|
7
|
+
Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights
|
4
8
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
9
|
|
7
10
|
## Installation
|
8
11
|
|
data/weighted_sampler.gemspec
CHANGED
@@ -11,11 +11,12 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.authors = ['Oleksiy Babich']
|
12
12
|
spec.email = ['oleksiy@oleksiy.od.ua']
|
13
13
|
|
14
|
-
spec.summary = '
|
14
|
+
spec.summary = 'Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights'
|
15
15
|
spec.description = %(
|
16
|
-
|
16
|
+
Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights
|
17
17
|
|
18
|
-
|
18
|
+
You can pass an Array or a Hash with desired probabilities
|
19
|
+
and use Module or Class API to pick samples
|
19
20
|
)
|
20
21
|
spec.homepage = 'https://gitlab.com/alexey_b/weighted_sampler'
|
21
22
|
spec.license = 'MIT'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weighted_sampler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleksiy Babich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,9 +52,9 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description: "\n
|
56
|
-
|
57
|
-
\ "
|
55
|
+
description: "\n Weighted Sampler helps you to pick a random samples from a collection
|
56
|
+
with defined probabilities or weights\n\n You can pass an Array or a Hash with
|
57
|
+
desired probabilities\n and use Module or Class API to pick samples\n "
|
58
58
|
email:
|
59
59
|
- oleksiy@oleksiy.od.ua
|
60
60
|
executables: []
|
@@ -100,6 +100,6 @@ rubyforge_project:
|
|
100
100
|
rubygems_version: 2.7.6
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
|
-
summary:
|
104
|
-
|
103
|
+
summary: Weighted Sampler helps you to pick a random samples from a collection with
|
104
|
+
defined probabilities or weights
|
105
105
|
test_files: []
|