sloubi 1.0.0 → 1.0.1

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 +6 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00a57775e5f0f740bebadb4711ce325f817e5cc1
4
- data.tar.gz: 48070e3c832261664a894ad7bd0fceb5ef2288fd
3
+ metadata.gz: 95ad99389bfcc6758509c7951329d4c7b4ac1497
4
+ data.tar.gz: 34fa6059ea0c797544ee46881d8b78cf99fc2e67
5
5
  SHA512:
6
- metadata.gz: cf93313b4fa98a786d3f1cbddce0d5097ea4ec826a51114d3daa7008bd25706c41602bb5b43b96f4b95e5e75560184c1a9715e43b691108c400df67aa775410d
7
- data.tar.gz: b02832eefd14993b10f99f169a47abb95437b6d7bb79e712d593789318ba48d8fcd1d941350e9b6567f892fb2ae68a7fa6ff876deb4c4b66794a46cafdac7d87
6
+ metadata.gz: d251a4137c1fb84143bcb96c2c299ef667aad5f5d4878ddaec3db2edc68ba653873f4b5d8805cbaa63e1270f5c3533495d210c2f9c84ce5db99ac17644392f50
7
+ data.tar.gz: 2badec9aa243954c06a5feb2eddd4e0ac06091757ae2b534e8cc67a1068248b958dc3d8ab8a7591e84c2abab4ff55468ddd665aabe70c4a7580809fe8d8c3b80
data/lib/sloubi.rb CHANGED
@@ -1,10 +1,12 @@
1
1
  #encoding: utf-8
2
2
 
3
3
  module Sloubi
4
- def count_sloubi n
5
- return false if !n.is_a?Integer
6
- n.times do |i|
7
- puts "Sloubi #{i}"
4
+ class Sloubi
5
+ def self.count_sloubi n=42
6
+ return false if !n.is_a?Integer or n < 1
7
+ (1..n).each do |i|
8
+ puts "Sloubi #{i}"
9
+ end
8
10
  end
9
11
  end
10
12
  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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a