sloubi 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sloubi.rb +4 -3
- 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: 99b5e7ebe6dd34fee21b8d8083ff02c9d9908880
|
4
|
+
data.tar.gz: c46a6056155eb9901b03a8075a2dedbe09a15e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c1aede96a48f6b47de4aaa0f478a00ec5556d51b913690bfafb655ba33d1f8ba6926bcdc07e69dadbe3cd18880991ca6f0c38f9a6988a4b7a81b820ab144c2
|
7
|
+
data.tar.gz: 627b1f3d0e8dea089392ef2d4db7b7bd57ae8204c072c76685256f04d86088cf2d01fa6b664394fa5265af4032ee9fd9513eea93a6af08859fe849ed33325d91
|
data/lib/sloubi.rb
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
module Sloubi
|
4
4
|
class Sloubi
|
5
|
-
def self.count_sloubi n=42, v=false
|
6
|
-
return
|
7
|
-
|
5
|
+
def self.count_sloubi n=42, ninit=1, v=false
|
6
|
+
return 0 if !n.is_a?Integer or n < 1
|
7
|
+
return 0 if ninit > n
|
8
|
+
(ninit..n).each do |i|
|
8
9
|
puts "Sloubi #{i}"
|
9
10
|
`espeak "Sloubi #{i}" -a 200 -vfr` if v == true
|
10
11
|
end
|