kujibiki 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/kujibiki/core_ext/array.rb +2 -2
- data/lib/kujibiki/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: cc1b80e4107b12827cb68fab29191475df72cff4
|
4
|
+
data.tar.gz: 79d96d0bfed5e0894855001e540c9895bed350fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c38987eecf30a7c776a4d47a3b77daf67e342afd0be4a3e9142578a00f26ae4e39b6d9f65600e7df6b39860eef182640dfddedc2286ba8956058d6d570e45da
|
7
|
+
data.tar.gz: fa28225731ed7113e53d9f12fca6ef6f52df4435ec97159259aadaf2cf82796376fd42e3a5cab1cef443a9b2b9f52f6a0a9493079829206cb3a8880148b6d80d
|
data/README.md
CHANGED
@@ -17,8 +17,8 @@ class Array
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
unless weight.select {|w| w > 0}.size >=
|
21
|
-
raise ArgumentError, "weight size must be larger than or equal to sample number(#{
|
20
|
+
unless weight.select {|w| w > 0}.size >= self.size
|
21
|
+
raise ArgumentError, "weight size must be larger than or equal to sample number(#{self.size})"
|
22
22
|
end
|
23
23
|
|
24
24
|
sum = weight.inject(0.0, :+)
|
data/lib/kujibiki/version.rb
CHANGED