sloubi 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sloubi.rb +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98d4e4b59c1dc6193ba3af1450d75e059c94ad66
4
- data.tar.gz: 1833d24f1eab4186e49f7440f0097e649a56bc8f
3
+ metadata.gz: 99b5e7ebe6dd34fee21b8d8083ff02c9d9908880
4
+ data.tar.gz: c46a6056155eb9901b03a8075a2dedbe09a15e52
5
5
  SHA512:
6
- metadata.gz: d849cff083be3c6049b730153d6e57043286bb7de6e34d8571d23357cc407777fefab41037a3107ce7c06ce54c386a65fadd7789688757b0f3d32f58f9711733
7
- data.tar.gz: 308612ea3fae133079ac3972a2f85ae793d9d889d19484754cb00b7b28f4c02f63e2746b615b8c12f504e4cf878a1b3c41e60dc5c482abb21221d3e24d583f25
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 false if !n.is_a?Integer or n < 1
7
- (1..n).each do |i|
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sloubi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a