leuk-faker 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Papa Pathé Séne
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,18 @@
1
+ = leuk-faker
2
+
3
+ Description goes here.
4
+
5
+ == Note on Patches/Pull Requests
6
+
7
+ * Fork the project.
8
+ * Make your feature addition or bug fix.
9
+ * Add tests for it. This is important so I don't break it in a
10
+ future version unintentionally.
11
+ * Commit, do not mess with rakefile, version, or history.
12
+ (if you want to have your own version, that is fine but
13
+ bump version in a commit by itself I can ignore when I pull)
14
+ * Send me a pull request. Bonus points for topic branches.
15
+
16
+ == Copyright
17
+
18
+ Copyright (c) 2009 Papa Pathé Séne. See LICENSE for details.
@@ -0,0 +1,15 @@
1
+
2
+ module LeukFaker
3
+ class Ecuries
4
+ class << self
5
+ def name
6
+ ECURIES.rand
7
+ end
8
+
9
+ def slogan
10
+ LASTNAMES.rand
11
+ end
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,37 @@
1
+ module LeukFaker
2
+ class Lorem
3
+ Words = %w(alias consequatur aut perferendis sit voluptatem accusantium doloremque aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt neque dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem ut enim ad minima veniam quis nostrum exercitationem ullam corporis nemo enim ipsam voluptatem quia voluptas sit suscipit laboriosam nisi ut aliquid ex ea commodi consequatur quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae et iusto odio dignissimos ducimus qui blanditiis praesentium laudantium totam rem voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident sed ut perspiciatis unde omnis iste natus error similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga et harum quidem rerum facilis est et expedita distinctio nam libero tempore cum soluta nobis est eligendi optio cumque nihil impedit quo porro quisquam est qui minus id quod maxime placeat facere possimus omnis voluptas assumenda est omnis dolor repellendus temporibus autem quibusdam et aut consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur at vero eos et accusamus officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae itaque earum rerum hic tenetur a sapiente delectus ut aut reiciendis voluptatibus maiores doloribus asperiores repellat)
4
+
5
+ class << self
6
+ def words(num = 3)
7
+ Words.shuffle[0, num]
8
+ end
9
+
10
+ def sentence(word_count = 4)
11
+ words(word_count + rand(6)).join(' ').capitalize + '.'
12
+ end
13
+
14
+ def sentences(sentence_count = 3)
15
+ returning([]) do |sentences|
16
+ 1.upto(sentence_count) do
17
+ sentences << sentence
18
+ end
19
+ end
20
+ end
21
+
22
+ def paragraph(sentence_count = 3)
23
+ sentences(sentence_count + rand(3)).join(' ')
24
+ end
25
+
26
+ def paragraphs(paragraph_count = 3)
27
+ returning([]) do |paragraphs|
28
+ 1.upto(paragraph_count) do
29
+ paragraphs << paragraph
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ end
36
+ end
37
+
data/lib/faker/name.rb ADDED
@@ -0,0 +1,20 @@
1
+ module LeukFaker
2
+ class Names
3
+ class << self
4
+
5
+ def firstname
6
+ FIRSTNAMES.rand
7
+ end
8
+
9
+ def lastname
10
+ LASTNAMES.rand
11
+ end
12
+
13
+ def nickname
14
+ NICKNAMES.rand + ' ' + SUFFIXES.rand
15
+ end
16
+
17
+ end
18
+ end
19
+ end
20
+
data/lib/leuk-faker.rb ADDED
@@ -0,0 +1,76 @@
1
+ require "faker/name"
2
+ require "faker/ecuries"
3
+ require "faker/lorem"
4
+
5
+ module LeukFaker
6
+
7
+ FIRSTNAMES =
8
+ [
9
+ 'ablaye', 'ahmed', 'assane', 'alioune', 'arfang', 'ali', 'alarba', 'amar',
10
+ 'bayoumi', 'babacar', 'bassirou', 'boubacar', 'birame', 'birima', 'baye', 'barra',
11
+ 'cheikh',
12
+ 'daouda', 'doudou', 'dieumb', 'dialy',
13
+ 'gaye', 'gora', 'grand',
14
+ 'habib', 'hady', 'habiboulah', 'hamidou',
15
+ 'ibrahima', 'ismaila', 'issa',
16
+ 'lamine', 'labba', 'lappa',
17
+ 'malamine', 'mouhamed', 'moustapha', 'maby', 'makha', 'madior', 'mour',
18
+ 'naba', 'nar',
19
+ 'ousmane', 'oumar',
20
+ 'pathe', 'pape', 'papis', 'poupa',
21
+ 'saliou', 'serigne', 'souleye', 'salam', 'saifou'
22
+ ]
23
+
24
+ LASTNAMES =
25
+ [
26
+ 'anne',
27
+ 'boye', 'badiane', 'barry', 'balde',
28
+ 'camara', 'cisse',
29
+ 'diop', 'diompy', 'diouf', 'diallo', 'diakhate', 'diarra',
30
+ 'faye', 'fall',
31
+ 'gaye', 'gueye', 'gadio',
32
+ 'hanne',
33
+ 'kane', 'kamara',
34
+ 'mané', 'madiop',
35
+ 'niang', 'nango', 'ndiaye',
36
+ 'paye', 'pouye',
37
+ 'sané', 'soumah', 'séne', 'sine', 'sy', 'siby', 'sarr', 'sabaly', 'sow',
38
+ 'tamba', 'thioune',
39
+ 'wane', 'wade'
40
+ ]
41
+
42
+ SUFFIXES = ['n°2', '', 'n°1', 'n°3', '', 'junior', '2', '4', '' ]
43
+
44
+ NICKNAMES =
45
+ [
46
+ 'amoul saral', 'am ba niak', 'alioune seye', 'Dr alioune diouf', 'ama balde', 'pathe balde',
47
+ 'bayil mou sede', 'baye mandione', 'balla gaye', 'balla diouf', 'boy kaire', 'baba indien', 'boy bambara', 'boy seye', 'boy pikine', 'boy nar', 'bouba chinois','dofou lamb', 'balla gaye', 'bathie seras', 'bebe saloum', 'baboye',
48
+ 'cheikh walo', 'cargo dakar',
49
+ 'doudou bakka sarr', 'diam gobi', 'diambarou walo',
50
+ 'eminem senegal', 'elton', 'eumeu sene',
51
+ 'fayou rek', 'foula rek', 'foussa', 'forman', 'falaye balde',
52
+ 'gris bordeaux', 'gainde', 'guerrier', 'gambien',
53
+ 'issa pouye', 'ibou diop', 'idy gandiaye', 'ismaila diambar',
54
+ 'khadim ndiaye',
55
+ 'lampou ngor', 'lac de guiers',
56
+ 'malamine diouf', 'modou lo', 'mbar diop', 'mor fadam', 'tapha gueye', 'mbaye diouf', 'manga 2', 'mame ndieumbane', 'mouhamed ali', 'mbaye gueye',
57
+ 'ness', 'nefertiti', 'nawal gaaw',
58
+ 'ousmane toucouleur', 'ouza sow',
59
+ 'papa sow', 'pape cisse', 'pape diop',
60
+ 'robert', 'ray mou nelaw',
61
+ 'serigne ndiaye', 'sow poullo', 'souleye dop',
62
+ 'tapha boy bambara', 'tidiane sylla', 'tyson',
63
+ 'waly faye',
64
+ 'yawou dial', 'yekini',
65
+ 'zale lo', 'zoss', 'zou sqad'
66
+ ]
67
+ ECURIES =
68
+ [
69
+ 'fass', 'pikine mboloo', 'thiaroye', 'soumbedioune', 'diambarou waalo',
70
+ 'ndakaruu', 'toucouleur', 'ecole de lutte balla gaye', 'pinthiou lebougui',
71
+ 'sereer', 'walo', 'rock energie', 'mermoz', 'saloum', 'dakharou mbadane',
72
+ 'boul fale', 'ndiambour', 'yoff ndeungane', 'gouye mariama', 'cadior cadior',
73
+ 'torodo pulhar', 'peulhou firdou', 'gueutti teer', 'xeerou fadiar'
74
+ ]
75
+ end
76
+
@@ -0,0 +1,8 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "LeukFaker" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
8
+
@@ -0,0 +1,9 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'leuk-faker'
4
+ require 'spec'
5
+ require 'spec/autorun'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leuk-faker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - "Papa Path\xC3\xA9 S\xC3\xA9ne"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-16 00:00:00 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: " some faker data for sunulamb"
26
+ email: pathesene@netsyscom.biz
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - lib/faker/ecuries.rb
36
+ - lib/faker/lorem.rb
37
+ - lib/faker/name.rb
38
+ - lib/leuk-faker.rb
39
+ - LICENSE
40
+ - README.rdoc
41
+ has_rdoc: true
42
+ homepage: http://github.com/leukify/leuk-faker
43
+ licenses: []
44
+
45
+ post_install_message:
46
+ rdoc_options:
47
+ - --charset=UTF-8
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ requirements: []
63
+
64
+ rubyforge_project:
65
+ rubygems_version: 1.3.5
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: some faker data for sunulamb
69
+ test_files:
70
+ - spec/leuk-faker_spec.rb
71
+ - spec/spec_helper.rb