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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d03c4329b1bc66f6c6ae1008c7f50b466f990f77bb46faa9850b8812d777dc9a
4
- data.tar.gz: 13b517ea952b2f9c532601b57dbe6cbd8a6263b9f1f8cc29a2c6829caf88d7d0
3
+ metadata.gz: 484d62fd78bfc61f3f7955dba454d3ebbbe836ca2f05d6cf62c4a8b347b17760
4
+ data.tar.gz: 744ec53a149444fb29f0ea5a7b4399848726d361bfca04ad9cd710bb7a61fe68
5
5
  SHA512:
6
- metadata.gz: b09dc165fcd8f11ddc6aa34a894ad315d256f1b8450ee86e8c8fc7639a162622996250db77b9e6e3a32bc0c552487f21a306eb5e7155ec598e6cf9a8c5d39486
7
- data.tar.gz: 247ad644e8d31e944aaba67bb5230c49464c7f5b0607bba4a57e566222441ca9cd8783f8bd9a3c33371062534441055ea637f52523a7f85046a3a6d58452366b
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-rc
22
+ image: ruby:2.6.0-preview2
23
23
  script: rspec
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.3.7
5
+ - 2.4.4
4
6
  - 2.5.1
5
- before_install: gem install bundler
7
+ script:
8
+ - bundle exec rspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weighted_sampler (1.0.0)
4
+ weighted_sampler (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # WeightedSampler
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/weighted_sampler`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Main repository is https://gitlab.com/alexey_b/weighted_sampler
4
+
5
+ Gitlab [![pipeline status](https://gitlab.com/alexey_b/weighted_sampler/badges/master/pipeline.svg)](https://gitlab.com/alexey_b/weighted_sampler/commits/master)[![coverage report](https://gitlab.com/alexey_b/weighted_sampler/badges/master/coverage.svg)](https://gitlab.com/alexey_b/weighted_sampler/commits/master) Travis [![Build Status](https://travis-ci.org/ababich/weighted_sampler.svg?branch=master)](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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WeightedSampler
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.1'.freeze
5
5
  end
@@ -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 = 'Picks random sample tacking in account probabilities or weights for each element'
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
- This gem provides functionality to pick samples from an array taking in account element weights
16
+ Weighted Sampler helps you to pick a random samples from a collection with defined probabilities or weights
17
17
 
18
- Weights will be normalized automatically
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.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-13 00:00:00.000000000 Z
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 This gem provides functionality to pick samples from an array
56
- taking in account element weights\n\n Weights will be normalized automatically\n
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: Picks random sample tacking in account probabilities or weights for each
104
- element
103
+ summary: Weighted Sampler helps you to pick a random samples from a collection with
104
+ defined probabilities or weights
105
105
  test_files: []