data-anonymization 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.documentup.json +8 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rvmrc +1 -0
  5. data/.travis.yml +6 -0
  6. data/Gemfile +12 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +256 -0
  9. data/Rakefile +9 -0
  10. data/blacklist_dsl.rb +19 -0
  11. data/blacklist_nosql_dsl.rb +36 -0
  12. data/data-anonymization.gemspec +22 -0
  13. data/lib/core/database.rb +36 -0
  14. data/lib/core/dsl.rb +16 -0
  15. data/lib/core/field.rb +18 -0
  16. data/lib/data-anonymization.rb +12 -0
  17. data/lib/strategy/base.rb +67 -0
  18. data/lib/strategy/blacklist.rb +18 -0
  19. data/lib/strategy/field/anonymize_time.rb +57 -0
  20. data/lib/strategy/field/anonymous.rb +21 -0
  21. data/lib/strategy/field/date_time_delta.rb +24 -0
  22. data/lib/strategy/field/default_anon.rb +28 -0
  23. data/lib/strategy/field/distinct_column_values.rb +25 -0
  24. data/lib/strategy/field/fields.rb +23 -0
  25. data/lib/strategy/field/gmail_template.rb +17 -0
  26. data/lib/strategy/field/lorem_ipsum.rb +29 -0
  27. data/lib/strategy/field/random_boolean.rb +19 -0
  28. data/lib/strategy/field/random_email.rb +31 -0
  29. data/lib/strategy/field/random_first_name.rb +18 -0
  30. data/lib/strategy/field/random_float_delta.rb +24 -0
  31. data/lib/strategy/field/random_full_name.rb +28 -0
  32. data/lib/strategy/field/random_int.rb +23 -0
  33. data/lib/strategy/field/random_integer_delta.rb +21 -0
  34. data/lib/strategy/field/random_last_name.rb +19 -0
  35. data/lib/strategy/field/random_mailinator_email.rb +20 -0
  36. data/lib/strategy/field/random_phone_number.rb +24 -0
  37. data/lib/strategy/field/random_selection.rb +23 -0
  38. data/lib/strategy/field/random_string.rb +22 -0
  39. data/lib/strategy/field/random_user_name.rb +23 -0
  40. data/lib/strategy/field/string_template.rb +22 -0
  41. data/lib/strategy/field/user_name_template.rb +22 -0
  42. data/lib/strategy/field/whitelist.rb +17 -0
  43. data/lib/strategy/strategies.rb +4 -0
  44. data/lib/strategy/whitelist.rb +21 -0
  45. data/lib/tasks/rake_tasks.rb +19 -0
  46. data/lib/utils/database.rb +53 -0
  47. data/lib/utils/logging.rb +29 -0
  48. data/lib/utils/random_int.rb +15 -0
  49. data/lib/utils/random_string.rb +14 -0
  50. data/lib/utils/resource.rb +13 -0
  51. data/lib/version.rb +3 -0
  52. data/resources/first_names.txt +500 -0
  53. data/resources/last_names.txt +500 -0
  54. data/spec/acceptance/rdbms_blacklist_spec.rb +30 -0
  55. data/spec/acceptance/rdbms_whitelist_spec.rb +50 -0
  56. data/spec/spec_helper.rb +26 -0
  57. data/spec/strategy/field/anonymize_time_spec.rb +23 -0
  58. data/spec/strategy/field/date_time_delta_spec.rb +43 -0
  59. data/spec/strategy/field/distinct_column_values_spec.rb +22 -0
  60. data/spec/strategy/field/gmail_template_spec.rb +14 -0
  61. data/spec/strategy/field/lorem_ipsum_spec.rb +27 -0
  62. data/spec/strategy/field/random_boolean_spec.rb +16 -0
  63. data/spec/strategy/field/random_email_spec.rb +18 -0
  64. data/spec/strategy/field/random_first_name_spec.rb +14 -0
  65. data/spec/strategy/field/random_float_delta_spec.rb +21 -0
  66. data/spec/strategy/field/random_full_name_spec.rb +23 -0
  67. data/spec/strategy/field/random_int_spec.rb +28 -0
  68. data/spec/strategy/field/random_integer_delta_spec.rb +23 -0
  69. data/spec/strategy/field/random_last_name_spec.rb +14 -0
  70. data/spec/strategy/field/random_mailinator_email_spec.rb +21 -0
  71. data/spec/strategy/field/random_phone_number_spec.rb +35 -0
  72. data/spec/strategy/field/random_selection_spec.rb +36 -0
  73. data/spec/strategy/field/random_string_spec.rb +23 -0
  74. data/spec/strategy/field/random_user_name_spec.rb +23 -0
  75. data/spec/strategy/field/string_template_spec.rb +15 -0
  76. data/spec/strategy/field/user_name_template_spec.rb +13 -0
  77. data/spec/strategy/field/whitelist_spec.rb +21 -0
  78. data/spec/support/customer_sample.rb +43 -0
  79. data/spec/utils/database_spec.rb +26 -0
  80. data/spec/utils/random_int_spec.rb +9 -0
  81. data/spec/utils/random_string_spec.rb +8 -0
  82. data/whitelist_dsl.rb +44 -0
  83. metadata +192 -0
@@ -0,0 +1,500 @@
1
+ Kunst
2
+ Higuera
3
+ Suire
4
+ Cozad
5
+ Verner
6
+ Paik
7
+ Gatton
8
+ Leitner
9
+ Confer
10
+ Kwiecien
11
+ Rempel
12
+ Mccolley
13
+ Bjork
14
+ Dudney
15
+ Mccartney
16
+ Cargo
17
+ Gonzalas
18
+ Genest
19
+ Lembo
20
+ Fraga
21
+ Frisbie
22
+ Hilger
23
+ Horrocks
24
+ Nale
25
+ Buescher
26
+ Creegan
27
+ Schreiber
28
+ Deputy
29
+ States
30
+ Abee
31
+ Ciulla
32
+ Macha
33
+ Giddens
34
+ Traverso
35
+ Hassen
36
+ Whiteley
37
+ Hagen
38
+ Kovar
39
+ Rothrock
40
+ Meyerson
41
+ Maddy
42
+ Neiman
43
+ Villafane
44
+ Addison
45
+ Herzog
46
+ Driggers
47
+ Leverett
48
+ Schwebach
49
+ Seiber
50
+ Okelley
51
+ Donahue
52
+ Crumley
53
+ Ridenhour
54
+ Witty
55
+ Kitzman
56
+ Icenhour
57
+ Giorgio
58
+ Hargett
59
+ Wolters
60
+ Medrano
61
+ Hake
62
+ Boggess
63
+ Lavallie
64
+ Bassham
65
+ Powers
66
+ Watterson
67
+ Reedy
68
+ Heidel
69
+ Quinney
70
+ Stoker
71
+ Hatfield
72
+ Krall
73
+ Ivey
74
+ Slaybaugh
75
+ Marksberry
76
+ Delucia
77
+ Vess
78
+ Vanhoose
79
+ Noe
80
+ Dillow
81
+ Gabel
82
+ Alcaraz
83
+ Fannin
84
+ Stradley
85
+ Bushnell
86
+ Mccleskey
87
+ Rising
88
+ Rudd
89
+ Jourdan
90
+ Mcarthur
91
+ Casados
92
+ Karim
93
+ Delong
94
+ Szabo
95
+ Tedeschi
96
+ Mcdermott
97
+ Leber
98
+ Duhart
99
+ Heinz
100
+ Lefler
101
+ Barajas
102
+ Tuohy
103
+ Dorfman
104
+ Bolz
105
+ Heitzman
106
+ Ingham
107
+ Chaplin
108
+ Grabert
109
+ Sonntag
110
+ Gathers
111
+ Carasco
112
+ Kohut
113
+ Pereyra
114
+ Mudd
115
+ Gonce
116
+ Eskridge
117
+ Orum
118
+ Lyles
119
+ Freese
120
+ Casselman
121
+ Strachan
122
+ Jorge
123
+ Chasteen
124
+ Macky
125
+ Vuong
126
+ Stoecker
127
+ Meehan
128
+ Caroll
129
+ Eiler
130
+ Vansant
131
+ Steidl
132
+ Devitt
133
+ Cromwell
134
+ Wilcox
135
+ Kring
136
+ Llanes
137
+ Abadie
138
+ Korman
139
+ Otts
140
+ Lapp
141
+ Flemming
142
+ Wadkins
143
+ Brill
144
+ Penna
145
+ Eckler
146
+ Sok
147
+ Mazzotta
148
+ Nalley
149
+ Mclamb
150
+ Wheatley
151
+ Musgrave
152
+ Pasternak
153
+ Rameau
154
+ Peters
155
+ Hiser
156
+ Guynn
157
+ Guyette
158
+ Gaulke
159
+ Cavanaugh
160
+ Decaro
161
+ Terpstra
162
+ Sevigny
163
+ Gabaldon
164
+ Figgins
165
+ Duerr
166
+ Burghardt
167
+ Ackley
168
+ Hofmeister
169
+ Gibbs
170
+ Bobo
171
+ Seifried
172
+ Hunger
173
+ Fraley
174
+ Moffatt
175
+ Osbourn
176
+ Mcglothlin
177
+ Shriner
178
+ Smead
179
+ Mercure
180
+ Whitehead
181
+ Salvador
182
+ Gravitt
183
+ Marko
184
+ Droz
185
+ Lykes
186
+ Reys
187
+ Dick
188
+ Gilbertson
189
+ Flanagan
190
+ Kroh
191
+ Lafortune
192
+ Greear
193
+ Moloney
194
+ Shockey
195
+ Bakos
196
+ Esper
197
+ Darcy
198
+ Hawthorn
199
+ Bones
200
+ Iacovelli
201
+ Hurn
202
+ Harries
203
+ Lines
204
+ Blind
205
+ Bainter
206
+ Woolbright
207
+ Klumpp
208
+ Rehberg
209
+ Manrique
210
+ Hu
211
+ Case
212
+ Bosworth
213
+ Chesnut
214
+ Santora
215
+ Key
216
+ Valerio
217
+ Cupps
218
+ Mak
219
+ Loya
220
+ Larabee
221
+ Mckie
222
+ Clukey
223
+ Belton
224
+ Roberie
225
+ Guinyard
226
+ Werts
227
+ Chaffin
228
+ Tourville
229
+ Ridout
230
+ Lichtenstein
231
+ Penrod
232
+ Houk
233
+ Facey
234
+ Redner
235
+ Ritzman
236
+ Konkel
237
+ Pogue
238
+ Rother
239
+ Eilers
240
+ Tallmadge
241
+ Fox
242
+ Cotten
243
+ Mckown
244
+ Kestner
245
+ Sienkiewicz
246
+ Baier
247
+ Tjaden
248
+ Steely
249
+ Russom
250
+ Nunemaker
251
+ Motz
252
+ Vibbert
253
+ Bostrom
254
+ Mcclard
255
+ Cantara
256
+ Almonte
257
+ Keating
258
+ Gerald
259
+ Bloodworth
260
+ Rowlette
261
+ Carrico
262
+ Clem
263
+ Croce
264
+ Melia
265
+ Marlar
266
+ Callihan
267
+ Conyers
268
+ Burgos
269
+ Mcadoo
270
+ Hoppe
271
+ Myers
272
+ German
273
+ Lush
274
+ Storck
275
+ Brindley
276
+ Marsch
277
+ Hendershott
278
+ Mickey
279
+ Miron
280
+ Points
281
+ Webber
282
+ Yerian
283
+ Chaudhry
284
+ Nottingham
285
+ Nicoll
286
+ Stillings
287
+ Babst
288
+ Wein
289
+ Osbourne
290
+ Schier
291
+ Ragsdale
292
+ Ackerley
293
+ Dedmon
294
+ Lorusso
295
+ Brugger
296
+ Mun
297
+ Hymel
298
+ Zehr
299
+ Caudillo
300
+ Mcmath
301
+ Badilla
302
+ Menjivar
303
+ Towell
304
+ Croom
305
+ Ritenour
306
+ Angles
307
+ Robson
308
+ Medlin
309
+ Waldrep
310
+ Searls
311
+ Ruley
312
+ Lamberton
313
+ Francoeur
314
+ Damron
315
+ Wareham
316
+ Vigliotti
317
+ Huitt
318
+ Febres
319
+ Sipe
320
+ Grover
321
+ Moschella
322
+ Kyker
323
+ Titcomb
324
+ Kreitzer
325
+ Rademacher
326
+ Boxx
327
+ Harger
328
+ Pabon
329
+ Nunez
330
+ Montrose
331
+ Banta
332
+ Spaeth
333
+ Ferrel
334
+ Mcmanis
335
+ Arceo
336
+ Lemmons
337
+ Edgemon
338
+ Bremer
339
+ Busbee
340
+ Hight
341
+ Honda
342
+ Torrez
343
+ Hanford
344
+ Poteete
345
+ Courchesne
346
+ Breeding
347
+ Kincannon
348
+ Pirtle
349
+ Bundick
350
+ Marquardt
351
+ Flannigan
352
+ Raynor
353
+ Sizemore
354
+ Amador
355
+ Teeter
356
+ Swicegood
357
+ Saleem
358
+ Rolon
359
+ Bomar
360
+ Rodi
361
+ Wierenga
362
+ Bednar
363
+ Music
364
+ Smoot
365
+ Latham
366
+ Alex
367
+ Luper
368
+ Merriman
369
+ Ackles
370
+ Seawell
371
+ Crider
372
+ Stennett
373
+ Westgate
374
+ Sharpton
375
+ Ring
376
+ Pinkowski
377
+ Feucht
378
+ Pillai
379
+ Ballantyne
380
+ Railey
381
+ Shiffer
382
+ Tsui
383
+ Lucero
384
+ Wilmer
385
+ Weight
386
+ Romans
387
+ Cora
388
+ Hummer
389
+ Foskey
390
+ Dangerfield
391
+ Konrad
392
+ Raulerson
393
+ Bernard
394
+ Kirker
395
+ Woodside
396
+ Gwaltney
397
+ Berber
398
+ Mandel
399
+ Voyles
400
+ Hohman
401
+ Vitale
402
+ Nichol
403
+ Lurie
404
+ Landrum
405
+ Patten
406
+ Jamerson
407
+ Radosevich
408
+ Hunsicker
409
+ Boser
410
+ Roan
411
+ Cervantez
412
+ Holland
413
+ Heinemann
414
+ Meacham
415
+ Boozer
416
+ Edmund
417
+ Hurlburt
418
+ Tow
419
+ Thelen
420
+ Dora
421
+ Mercado
422
+ Gatlin
423
+ Tye
424
+ Hahne
425
+ Highsmith
426
+ Giampaolo
427
+ Gatto
428
+ Donaghy
429
+ Keef
430
+ Ma
431
+ Beckett
432
+ Urso
433
+ Edge
434
+ Gebhard
435
+ Shadduck
436
+ Schade
437
+ Crumble
438
+ Ellender
439
+ Tsang
440
+ Bramlett
441
+ Rhames
442
+ Dunmire
443
+ Oney
444
+ Southward
445
+ Dunnington
446
+ Fiorenza
447
+ Grable
448
+ Reiff
449
+ Sieck
450
+ Kersh
451
+ Mutter
452
+ Hiner
453
+ Wadsworth
454
+ Aceuedo
455
+ Chaloux
456
+ Sthilaire
457
+ Goble
458
+ Waldron
459
+ Cranford
460
+ Tumlinson
461
+ Bourgeois
462
+ Krenz
463
+ Blystone
464
+ Grissom
465
+ Payan
466
+ Mullet
467
+ Lorenzana
468
+ Buttars
469
+ Stoltenberg
470
+ Chiarello
471
+ Aleman
472
+ Schnur
473
+ Flack
474
+ Lovering
475
+ Sak
476
+ Havard
477
+ Astorga
478
+ Thames
479
+ Mcclurg
480
+ Tenaglia
481
+ Crenshaw
482
+ Strickland
483
+ Hagler
484
+ Newcomb
485
+ Schenkel
486
+ Pilkington
487
+ Boze
488
+ Gowers
489
+ Chism
490
+ Urena
491
+ Endo
492
+ Goldstein
493
+ Beason
494
+ Hartford
495
+ Redden
496
+ Regan
497
+ Linsley
498
+ Mcgrew
499
+ Kitchens
500
+ Lowder