harry_potter_faker 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 33ee1eb8e0bfc77a283c015f9d2e8ec528d3a8b8
4
+ data.tar.gz: ed2fec30aed236ec3c3aa682d2832d960c51eca7
5
+ SHA512:
6
+ metadata.gz: b6e79a75fec8bc7bfde09da9771b4b8b2747e795e088af2d15400b6d40661ebae08282f65c43ac37964a492fc3c471a9fc3fa4993feeff5e07f0f0abe2c0eb4f
7
+ data.tar.gz: d11c74678d5e4238b61e58ab7b3457b9ff0f504e00ed78a7b712ed15e4183870e9d164b45445180c9849d4a81be39a6e2df05977d7a6a16166d5a71f48405b0f
@@ -0,0 +1,181 @@
1
+ $first_names =
2
+ %Q{Hannah
3
+ Bathsheba
4
+ Ludo
5
+ Bathilda
6
+ Katie
7
+ Cuthbert
8
+ Regulus
9
+ Arcturus
10
+ Sirius
11
+ Amelia
12
+ Susan
13
+ Terry
14
+ Lavender
15
+ Millicent
16
+ Charity
17
+ Frank
18
+ Alecto
19
+ Amycus
20
+ Reginald
21
+ Mary
22
+ Cho
23
+ Penelope
24
+ Michael
25
+ Vinvent
26
+ Colin
27
+ Dennis
28
+ Dirk
29
+ Bartemius
30
+ Barty
31
+ Fleur
32
+ Gabriele
33
+ Dilys
34
+ Dedalus
35
+ Amos
36
+ Cedric
37
+ Elphias
38
+ Antonin
39
+ Aberforth
40
+ Albus
41
+ Ariana
42
+ Kendra
43
+ Percival
44
+ Dudley
45
+ Marjorie
46
+ Petunia
47
+ Vernon
48
+ Marietta
49
+ Everard
50
+ Arabella
51
+ Argus
52
+ Justin
53
+ Seamus
54
+ Nicolas
55
+ Mundungus
56
+ Filius
57
+ Cornelius
58
+ Marvolo
59
+ Merope
60
+ Morfin
61
+ Anthony
62
+ Goyle
63
+ Gregory
64
+ Hermione
65
+ Gregorovitch
66
+ Fenrir
67
+ Gellert
68
+ Wilhelmina
69
+ Godric
70
+ Rubeus
71
+ Rolanda
72
+ Helga
73
+ Angelina
74
+ LavenderIgor
75
+ Viktor
76
+ Bellatrix
77
+ Rabastan
78
+ Rodolphus
79
+ Gilderoy
80
+ Alice
81
+ Augusta
82
+ Frank
83
+ Neville
84
+ Luna
85
+ Xenophilius
86
+ Remus
87
+ Teddy
88
+ Draco
89
+ Lucius
90
+ Narcissa
91
+ Olympe
92
+ Ernie
93
+ Minerva
94
+ Cormac
95
+ Alastor
96
+ Theodore
97
+ Bob
98
+ Tiberius
99
+ Garrick
100
+ Pansy
101
+ Padma
102
+ Parvati
103
+ Peter
104
+ Antioch
105
+ Cadmus
106
+ Ignotus
107
+ Sturgis
108
+ Poppy
109
+ Harry
110
+ James
111
+ Lily
112
+ Quirinus
113
+ Helena
114
+ Rowena
115
+ Mary
116
+ Thomas
117
+ Tom
118
+ Augustus
119
+ Scabior
120
+ Newt
121
+ Rufus
122
+ Kingsley
123
+ Stan
124
+ Rita
125
+ Horace
126
+ Salazar
127
+ Hepzibah
128
+ Zacharias
129
+ Serverus
130
+ Alicia
131
+ Pomona
132
+ Pius
133
+ Dean
134
+ Andromeda
135
+ Nymphadora
136
+ TeddySybill
137
+ Dolores
138
+ Emmeline
139
+ Romilda
140
+ Septima
141
+ Arthur
142
+ Bill
143
+ Charlie
144
+ Fred
145
+ George
146
+ Ginny
147
+ Molly
148
+ Percy
149
+ Ron
150
+ Oliver
151
+ Yaxley
152
+ Blaise
153
+ Algie
154
+ Aragog
155
+ Arnold
156
+ Bane
157
+ Buckbeak
158
+ Dobby
159
+ Enid
160
+ Error
161
+ Fang
162
+ Fawkes
163
+ Firenze
164
+ Grawp
165
+ Griphook
166
+ Hedwig
167
+ Hermes
168
+ Hokey
169
+ Jugson
170
+ Kreatcher
171
+ Magorian
172
+ Nagini
173
+ Norbert
174
+ Peeves
175
+ Pigwidgeon
176
+ Scabbers
177
+ Selwyn
178
+ Trevor
179
+ Winky
180
+ Wormtail
181
+ }
@@ -0,0 +1,62 @@
1
+ class HarryPotterFaker
2
+ $files = [:first_names, :last_names, :prefixes, :suffixes]
3
+
4
+ def initialize
5
+ require_files
6
+ create_arrays
7
+ end
8
+
9
+ def name
10
+ name = ""
11
+ name += (prefix + " ") if add_extra
12
+ name += first_and_last
13
+ name += (" " + suffix) if add_extra
14
+ return name
15
+ end
16
+
17
+ def first_name
18
+ return $first_names.sample
19
+ end
20
+
21
+ def last_name
22
+ return $last_names.sample
23
+ end
24
+
25
+ def first_and_last
26
+ return first_name + " " + last_name
27
+ end
28
+
29
+ def prefix
30
+ return $prefixes.sample
31
+ end
32
+
33
+ def suffix
34
+ return $suffixes.sample
35
+ end
36
+
37
+ private
38
+
39
+ def add_extra
40
+ rand() < 0.2
41
+ end
42
+
43
+ def create_arrays
44
+ unless previously_initialized
45
+ $files.each do |file|
46
+ eval("$#{file} = $#{file}.split('\n')")
47
+ end
48
+ end
49
+ end
50
+
51
+ def require_files
52
+ $files.each do |file|
53
+ require_relative file.to_s
54
+ end
55
+ end
56
+
57
+ def previously_initialized
58
+ $first_names.is_a? Array
59
+ end
60
+
61
+ end
62
+
@@ -0,0 +1,101 @@
1
+ $last_names =
2
+ %Q{Abbot
3
+ Dumbledore
4
+ Babbling
5
+ Bagman
6
+ Bagshot
7
+ Bell
8
+ Binns
9
+ Black
10
+ Bones
11
+ Boot
12
+ Brown
13
+ Bulstrode
14
+ Burbage
15
+ Bryce
16
+ Carrow
17
+ Cattermole
18
+ Chang
19
+ Clearwater
20
+ Corner
21
+ Crabbe
22
+ Creevy
23
+ Cresswell
24
+ Crouch
25
+ Delacour
26
+ Derwent
27
+ Diggle
28
+ Diggory
29
+ Doge
30
+ Dolohov
31
+ Dursley
32
+ Edgecombe
33
+ Figg
34
+ Filch
35
+ Finch-Fletchley
36
+ Finnigan
37
+ Flamel
38
+ Fletcher
39
+ Flitwick
40
+ Fudge
41
+ Gaunt
42
+ Goldstein
43
+ Goyle
44
+ Granger
45
+ Greyback
46
+ Grindelwald
47
+ Grubby-Plank
48
+ Gryffindor
49
+ Hagrid
50
+ Hooch
51
+ Hufflepuff
52
+ Johnson
53
+ Jordan
54
+ Lestrange
55
+ Lockhart
56
+ Longbottom
57
+ Lovegood
58
+ Lupin
59
+ Malfoy
60
+ Maxime
61
+ Macmillan
62
+ McGonagall
63
+ McLaggen
64
+ Moody
65
+ Nott
66
+ Ogden
67
+ Ollivander
68
+ Parkinson
69
+ Patil
70
+ Pettigrew
71
+ Peverell
72
+ Pince
73
+ Podmore
74
+ Pomfrey
75
+ Potter
76
+ Quirrell
77
+ Ravenclaw
78
+ Riddle
79
+ Rookwood
80
+ Scamander
81
+ Scrimgeour
82
+ Shacklebolt
83
+ Shunpike
84
+ Skeeter
85
+ Slughorn
86
+ Slythern
87
+ Smith
88
+ Snape
89
+ Spinnet
90
+ Sprout
91
+ Thicknesse
92
+ Thomas
93
+ Tonks
94
+ Umbridge
95
+ Vance
96
+ Vector
97
+ Voldemort
98
+ Weasley
99
+ Wood
100
+ Zabini
101
+ }
@@ -0,0 +1,14 @@
1
+ $prefixes=
2
+ %Q{Ms.
3
+ Mr.
4
+ Miss
5
+ Mrs.
6
+ Lord
7
+ Lady
8
+ Witch
9
+ Wizard
10
+ Keeper of Keys
11
+ Professor
12
+ Headmaster
13
+ Headmistress
14
+ }
@@ -0,0 +1,14 @@
1
+ $suffixes =
2
+ %Q{Jr.
3
+ Sr.
4
+ I
5
+ II
6
+ III
7
+ IV
8
+ V
9
+ VI
10
+ VII
11
+ Order of Merlin, First Class
12
+ Order of Merlin, Second Class
13
+ Grand Sorcerer
14
+ }
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: harry_potter_faker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Amelia Downs
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Enjoy your lorum ipsum more with harry potter theamed data
14
+ email: downs.amelia@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/first_names.rb
20
+ - lib/harry_potter_faker.rb
21
+ - lib/last_names.rb
22
+ - lib/prefixes.rb
23
+ - lib/suffixes.rb
24
+ homepage: https://github.com/adowns01/harry_potter_faker
25
+ licenses:
26
+ - MIT
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubyforge_project:
44
+ rubygems_version: 2.4.1
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Creates harry potter theamed fake data
48
+ test_files: []