kujibiki 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eccc6d249e913c599a87624d0300d6ea0b7f1a02
4
- data.tar.gz: d2e1a47e35a35ec9ae9e1879902095515e34e63a
3
+ metadata.gz: 5cf400fdc0480d019acf792f20d579e4830f9ebc
4
+ data.tar.gz: 64e1fb92174e40c7a540e05ac95165969e0ab84a
5
5
  SHA512:
6
- metadata.gz: b3e70ca7f2a0fff49e0dc17cc41585d92cdd26ef2883c35cbe80a3da448c92b0897a6940752670b5a1a3bd3d30c8baba065ed18dbe8b357b25e888ad5af9f054
7
- data.tar.gz: db6ca4c61023f89d05d4201010223afc42609e0eba9733ecbb593ce93483f1b10def4b5c1d29169f206c3f98434d96645194e704256183c05cde332c268ff3b8
6
+ metadata.gz: 3d01fed4dcc9f4e4b5554e5f5ddcc1233fef3ab255326775b7e9361cdd7610aeaf85ec9ecd45f451ccb644c76472048c26ae69edffb9e6f2de936b8bb767102c
7
+ data.tar.gz: 3a9b7f24db07eb906f57ec61cb65a6f83c322e8b4a296fe92f0621f2b881c090d9a2ecbf2bad534173ed88cd27dfd4ac897d43aa6ed423bd3659966b964bf0f6
@@ -7,6 +7,7 @@ class Array
7
7
  raise ArgumentError, "weight size must be equal to array size(#{self.size})"
8
8
  end
9
9
 
10
+ n = 1 unless n
10
11
  n = self.size if n > self.size
11
12
 
12
13
  begin
@@ -1,3 +1,3 @@
1
1
  module Kujibiki
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kujibiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoki Shimizu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.5.1
96
+ rubygems_version: 2.5.1
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Allow Array#sample to return waighted results