sloubi 1.2.1 → 1.3.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 +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3888f8d0209cfdac22f6a2bbd8d289daa970954c
4
- data.tar.gz: e7bcc8ea3db2aba22827af2e0d7d65719052efd8
3
+ metadata.gz: 8da689ea2c2ef2635bf38b8ebb21f0462ee02d8a
4
+ data.tar.gz: a8fdf1e6ba272cfce24fbc14573c2d29b9377a4a
5
5
  SHA512:
6
- metadata.gz: b71146848edb7638e4aac5a0c825844e21b4b4a254e58d8a686874bedb26beafaebfba2de2fd47a7df148f48b38b4da26b19f79f383e9f93155dd9ba493625d1
7
- data.tar.gz: 8fb6cb06d6968a2e434a9d3bb95cb35ea3f53a592c42535edbbdeb053662095174359109bf97f346879a7f3c781699a65844584fcaba9202e0068f3d939219cf
6
+ metadata.gz: ea8d1b41913ecfb4f56808385cdc553d7a04ea5484b3edc0d4cbaa9031faa0203183ff4f0a1134ba298abf86db2ebc18aa47bbb90ed1a6179d67f00bd66eca2b
7
+ data.tar.gz: 91a1748988b061677366ea5bea1c074bcb37cdade082f073d17427aae81ef48de5818405af8e332080da3ce86b1cbbf6932476a9c02dfb5013157a3a8614d71e
data/lib/sloubi.rb CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  module Sloubi
4
4
  class Sloubi
5
- def self.count_sloubi n=42, ninit=1, v=false
5
+ #count sloubi from n to ninit. if v is true, it will be said
6
+ def self.count n=42, ninit=1, v=false
6
7
  return 0 if !n.is_a?Integer or n < 1
7
8
  return 0 if ninit > n
8
9
  (ninit..n).each do |i|
@@ -18,5 +19,10 @@ module Sloubi
18
19
  end
19
20
  return i
20
21
  end
22
+
23
+ #obsolet alias of count
24
+ def self.count_sloubi n=42, ninit=1, v=false
25
+ Sloubi::Sloubi.count n, ninit, v
26
+ end
21
27
  end
22
28
  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.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a