the_only_event_reporter_ever 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
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/event_reporter"
4
+
5
+ load = EventReporter::Parser.new
6
+ load.run
7
+
@@ -0,0 +1,161 @@
1
+ ,RegDate,first_Name,last_Name,Email_Address,HomePhone,Street,City,State,Zipcode
2
+ 1,11/12/08 10:47,Allison,Nguyen,arannon@jumpstartlab.com,6154385000,3155 19th St NW,Washington,DC,20010
3
+ 2,11/12/08 13:23,SArah,Hankins,pinalevitsky@jumpstartlab.com,414-520-5000,2022 15th Street NW,Washington,DC,20009
4
+ 3,11/12/08 13:30,Sarah,Xx,lqrm4462@jumpstartlab.com,(941)979-2000,4175 3rd Street North,Saint Petersburg,FL,33703
5
+ 4,11/12/08 14:04,Jennifer,Cope,bjgielskil@jumpstartlab.com,704-813-3000,1133 Shelton Ave,Nashville,TN,37216
6
+ 5,11/12/08 14:46,Douglas,Zimmerman,vjeller.79@jumpstartlab.com,425-274-5000,1818 Woodland Ave #101,Des Moines,IA,50309
7
+ 6,11/12/08 15:00,Aya,Fuller,jtex@jumpstartlab.com,778.232.7000,2-1325 Barclay Street,Vancouver,BC,90210
8
+ 7,11/12/08 16:05,Mary Kate,Curry,wmppydaymaker@jumpstartlab.com,(202) 328 1000,1509 Jackson Street,Baltimore,MD,21230
9
+ 8,11/12/08 17:18,Audrey,Hasegan,ffbbieucf@jumpstartlab.com,530-919-3000,1570 Old Ranch Rd.,Placerville,CA,95667
10
+ 9,11/13/08 1:32,Shiyu,Armideo,odfarg06@jumpstartlab.com,8084974000,644 Ikemaka PL,Kailua,HI,96734
11
+ 10,11/13/08 16:40,Eli,Zielke,jbrabeth.buckley@jumpstartlab.com,858 405 3000,3024 Cranbrook Ct,La Jolla,CA,92037
12
+ 11,11/13/08 18:17,Colin,Harmston,qkristie.lencsak@jumpstartlab.com,14018685000,34 blue heron drive,attleboro,MA,2703
13
+ 12,11/13/08 21:19,Megan,Doe,wkganize@jumpstartlab.com,315.450.6000,64 King Ave,Columbus,OH,43201
14
+ 13,11/16/08 11:44,Meggie,Tippit,dgsanshamel@jumpstartlab.com,510 282 4000,28 Olive Ave.,Piedmont,CA,94611
15
+ 14,11/16/08 13:54,Laura,Rapetsky,ikr08@jumpstartlab.com,787-295-0000,Urb Monte Carlo c/15#1287,San Juan,PR,924
16
+ 15,11/16/08 20:20,Paul,Fulghum,cnroh@jumpstartlab.com,9.82E+00,shohadaye sadeghiye,Tehran,YK,14517
17
+ 16,11/17/08 19:41,Shannon,Warner,gkjordandc@jumpstartlab.com,(603) 305-3000,186 Crooked S Road,Lyndeborough,NH,3082
18
+ 17,11/19/08 21:56,Shannon,Davis,ltb3@jumpstartlab.com,530-355-7000,Campion 1108 914 E. Jefferson,Seattle,WA,98122
19
+ 18,11/20/08 16:25,Nash,Okaty,qdansonlm@jumpstartlab.com,206-226-3000,914 E Jefferson ST,Seattle,WA,98122
20
+ 19,11/23/08 20:44,Amanda,Hartzell,nqm17@jumpstartlab.com,607-280-2000,3515 School St,Valois,NY,14841
21
+ 20,11/25/08 19:21,David,Thomas,gdlia.lepping@jumpstartlab.com,650-799-0000,9 garrison ave,Jersey City,NJ,7306
22
+ 21,11/28/08 22:44,John,Hoy,xhnebenz@jumpstartlab.com,5126732000,300 E 30th St Apt 304,Austin,TX,78705
23
+ 22,11/30/08 17:49,Peter,Hunt,fegitraore@jumpstartlab.com,774-313-0000,PO Box 683,Monument Beach,MA,2553
24
+ 23,12/2/08 13:53,Dana,Williams,geggierose27@jumpstartlab.com,540-421-9000,228 Charter House Lane,Williamsburg,VA,23188
25
+ 24,12/2/08 18:21,Paige,Tompkins,cimoore@jumpstartlab.com,303-818-6000,2124 Waverly Pl N #B,Seattle,WA,98109
26
+ 25,12/2/08 21:50,Maria,Brown,cyerlun@jumpstartlab.com,3609046000,36605 ne north fork ave,la center,WA,98629
27
+ 26,12/2/08 23:19,Michael,Panek,dntisler@jumpstartlab.com,801-362-6000,1434 Wilson Ave.,Salt Lake City,UT,84105
28
+ 27,12/3/08 0:47,Oliver,Bringe,wfwilliams09@jumpstartlab.com,616.617.7000,650 Cambridge Blvd.,Grand Rapids,MI,49506
29
+ 28,12/3/08 17:53,Kaitlyn,Applegate,xytheclouds27@jumpstartlab.com,9086357000,2 Hamilton Road,Whitehouse Station,NJ,8889
30
+ 29,12/3/08 19:25,Brant,Berdis,yaaymazu@jumpstartlab.com,(818) 268-9000,18334 Los Alimos St.,Porter Ranch,CA,91326
31
+ 30,12/3/08 21:43,Sarah,Cordova,tmai.202@jumpstartlab.com,(410).963.9000,5430 Hesperus Drive,Columbia,MD,21044
32
+ 31,12/3/08 22:21,Marta,Nguyen,nfanda.kleintop@jumpstartlab.com,7034004000,1100 W. Broad St #428,Richmond,VA,23220
33
+ 32,12/4/08 9:21,Greg,Dzara,jmpender@jumpstartlab.com,301-270-2000,122 Park Avenue,Takoma Park,MD,20912
34
+ 33,12/4/08 13:02,Curtis,Bailey,nuchanzg@jumpstartlab.com,214.794.2000,1121 Fleming Ct.,Glenn Heights,TX,75154
35
+ 34,12/4/08 14:58,Kelly,Zemel,rqstin.dunnigan@jumpstartlab.com,612 807 0000,3109 E 22nd St.,Minneapolis,MN,55406
36
+ 35,12/4/08 15:20,Meaghan,Ciolino,flhne3ml@jumpstartlab.com,8608739000,3 no,yes,SD,4879
37
+ 36,12/4/08 21:35,Emma,O'donnell,mvead@jumpstartlab.com,(717) 754-3000,3110 Columbia Avenue,Camp Hill,PA,17011
38
+ 37,12/5/08 0:01,Matthew,Stitt,idnjamin_Mandel@jumpstartlab.com,(845) 853-2000,21 Fruitbud Dr.,Red Hook,NY,12571
39
+ 38,12/7/08 13:02,Jonathan,Fahey,otohns@jumpstartlab.com,859.492.0000,4 B Shearwater St,Wrightsville Beach,NC,28480
40
+ 39,12/7/08 13:04,Kristin,Tredeau,tpell1tr@jumpstartlab.com,919.426.4000,"601 S. College Rd, UNCW Station CB#-22764",Wilmington,NC,28403
41
+ 40,12/7/08 13:07,Dan,Beneway,uevys@jumpstartlab.com,434.409.6000,3720 Country Ln,Charlottesville,VA,22903
42
+ 41,12/7/08 13:10,Jeff,Shamon,djchary.kolodin@jumpstartlab.com,919.418.1000,9517 Candor Oaks Dr,Raleigh,NC,27615
43
+ 42,12/7/08 13:12,Stephanie,Trowbridge,wineg1cr@jumpstartlab.com,919.818.2000,104 Pennsbury Ct,Cary,NC,27513
44
+ 43,12/7/08 13:14,Yi,De Treville,vxave1nm@jumpstartlab.com,251.747.7000,PO Box 361,Montrose,AL,36559
45
+ 44,12/7/08 13:16,Stephanie,Bales,tmishaDavis@jumpstartlab.com,440.503.1000,321 South Kerr Ave,Wilmington,NC,28403
46
+ 45,12/7/08 13:18,Null,Habicht,ycloyd@jumpstartlab.com,910.232.3000,5308 Park Ave,Wilmington,NC,28403
47
+ 46,12/7/08 13:20,Nate,Terry,linda621@jumpstartlab.com,919.740.7000,7309 Cape Charles Dr,Raleigh,NC,27617
48
+ 47,12/7/08 13:23,Courtney,Ramirez,lxluchy@jumpstartlab.com,804.514.0000,10362 Aspen Grove Terr,Mechanicsville,VA,23116
49
+ 48,12/7/08 14:01,Sherry,Cooper,amw2@jumpstartlab.com,858 405 3000,3024 Cranbrook Ct,La Jolla,CA,92037
50
+ 49,12/7/08 14:04,Kayla,Lee,kiokiesmiller@jumpstartlab.com,5592846000,4636 N. Wishon Ave.,Fresno,CA,93704
51
+ 50,12/7/08 14:06,Portia,Gilyard,mwsh.d@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
52
+ 51,12/7/08 14:08,Julie,Lagor,bgshb1342@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
53
+ 52,12/7/08 14:09,Lydia,Faber,tjzoe.davison@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
54
+ 53,12/7/08 14:10,Natalie,Levy,uhaufman@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
55
+ 54,12/7/08 14:20,Rachel,Full,axal.mike88@jumpstartlab.com,520 400 3000,622 N Treat Ave,Tucson,AZ,85716
56
+ 55,12/7/08 14:22,Rachel,Farnsworth,tealsodg@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
57
+ 56,12/7/08 14:24,Gabe,Poole,shhpin1@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
58
+ 57,12/7/08 14:25,Hannah,Singer,cosulamjames@jumpstartlab.com,858 405 3000,550 San Juan St,Stanford,CA,94305
59
+ 58,12/7/08 17:13,Nolan,Withers,ot@jumpstartlab.com,617-225-7000,476 Memorial Dr.,Cambridge,MA,2139
60
+ 59,12/8/08 9:38,Ashley Morgan,Martino,umhasse@jumpstartlab.com,631.656.6000,15 Mike Ln,Smithtown,NY,11787
61
+ 60,12/8/08 10:27,Rose,Lemle,ucler.magnuson@jumpstartlab.com,832-331-2000,3610 Shady Village Dr,Kingwood,TX,77345
62
+ 61,12/8/08 14:29,Amanda,Monroe,ygckar_e@jumpstartlab.com,2816585000,5815 west harrow drive,houston,TX,77084
63
+ 62,12/8/08 20:11,Brendan,Fisher,eaamsfischer@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
64
+ 63,12/8/08 20:13,Sam,Murphy,fmgictechie@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
65
+ 64,12/8/08 20:20,Christie,Cleeves,wxronak@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
66
+ 65,12/8/08 20:22,Naani,Rosenfeld,brsinsk5@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
67
+ 66,12/8/08 20:26,Kate,Two,kbhiting@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
68
+ 67,12/8/08 20:28,Andrew,Null,vfases10@jumpstartlab.com,415 255 9000,75 Arkansas Street,San Francisco,CA,94107
69
+ 68,12/8/08 20:29,Kristen,Sneeringer,wtats4nav@jumpstartlab.com,415 255 9000,75 Arkansas Street,San Francisco,CA,94107
70
+ 69,12/8/08 20:31,Sofia,Murillo,lpohen@jumpstartlab.com,202 319 2000,"702 H St, suite 300",Washington,DC,20001
71
+ 70,12/8/08 20:33,Jane,Breden,ocead@jumpstartlab.com,415 255 9000,75 Arkansas St,San Francisco,CA,94107
72
+ 71,12/8/08 20:35,Chloe,James,vuchelshiozaki@jumpstartlab.com,440 785 8000,31 North Fisher Drive,Oxford,OH,45056
73
+ 72,12/8/08 20:37,Theodora,Crews,lnohnso6@jumpstartlab.com,239-537-9000,150 Riverbridge Circle #208d,Oviedo,FL,32765
74
+ 73,12/8/08 20:40,England,Wilen,olelatte@jumpstartlab.com,540-250-8000,1525 Washtenaw Avenue,Ann Arbor,MI,48104
75
+ 74,12/8/08 20:42,Michelle,Normand,xqthomas@jumpstartlab.com,7153386000,1601 East River Terrace,Minneapolis,MN,55414
76
+ 75,12/8/08 20:43,Amy,Axe,lfeflore@jumpstartlab.com,(702) 588-9000,2800 S Highland Mesa Dr,Flagstaff,AZ,86001
77
+ 76,12/8/08 20:44,April,Durante,bxossbm07@jumpstartlab.com,7345582000,605 Walnut,Wyandotte,MI,48192
78
+ 77,12/8/08 20:46,Molly,Carey,hl74629@jumpstartlab.com,502-338-4000,1209 Weible Rd,Crestwood,KY,40014
79
+ 78,12/8/08 20:47,Angela,Burns,onndy@jumpstartlab.com,7146759000,13694 locust circle,Adjuntas,PR,601
80
+ 79,12/8/08 20:49,James,Paglierani,gif32@jumpstartlab.com,(626) 336-5000,402 Basetdale Ave,Holtsville,NY,501
81
+ 80,12/8/08 20:51,Amanda,Harris,hvitlin_arnest@jumpstartlab.com,941-587-8000,5800 Bay Shore Rd.,Sarasota,FL,34243
82
+ 81,12/8/08 20:52,Brett,Nemeth,bti@jumpstartlab.com,508-769-2000,"1 Old Ferry Road, Box # 6348",Bristol,RI,2809
83
+ 82,12/8/08 20:54,Mike,Golembeck,ia284@jumpstartlab.com,208-870-2000,4498 South Silverhills Ave.,Boise,ID,83709
84
+ 83,12/8/08 20:56,Jordan,Grunow,svperry3@jumpstartlab.com,631-513-8000,"Box 3771, 10 MacVittie Circle",Geneseo,NY,14454
85
+ 84,12/8/08 20:58,Null,Turner,dlboone@jumpstartlab.com,251-533-1000,"800 31st Ave, Apt 505",Tuscaloosa,AL,35401
86
+ 85,12/8/08 20:59,Kyla,Leeper,hbexa_uhs@jumpstartlab.com,(919)215-6000,"90 University Heights , 401h1",Burlington,VT,5405
87
+ 86,12/8/08 21:03,Laura,Ward,xw@jumpstartlab.com,(802) 338-2000,P.O. Box 479,Charlotte,VT,5445
88
+ 87,12/8/08 21:05,Roger,Deng,giex.Binck@jumpstartlab.com,8625969000,709B North High St,Morgantown,WV,26505
89
+ 88,12/8/08 21:06,Brian,Martin,wjhlatte@jumpstartlab.com,520-272-6000,"333 Julia St #423 ,",New Orleans,LA,70130
90
+ 89,12/8/08 21:07,Devin,Archambault,wncronbase@jumpstartlab.com,573-714-5000,106 North B Street,Bonne Terre,MO,63628
91
+ 90,12/8/08 21:09,Sarah,Irvine,wwoodruf@jumpstartlab.com,(770)424-9000,6184 Windflower Drive,Powder Springs,GA,30127
92
+ 91,12/8/08 21:10,Eco,Donnellan,wvbesl@jumpstartlab.com,858 472-9000,"UR 3040, 28 Westhampton Way",University Of Richmond,VA,23173
93
+ 92,12/8/08 21:12,Tyler,YANG,tnraft@jumpstartlab.com,(386) 848-1000,PO BOX 612,Deland,FL,32721
94
+ 93,12/8/08 21:14,Marisol,Braun,lcallace@jumpstartlab.com,(802) 985.9000,"CSC Box 0887, Castleton State College",Castleton,VT,5735
95
+ 94,12/8/08 21:17,Rose,Rockafellow,brernandezcmu@jumpstartlab.com,305-282-0000,"2848 Einstein Way , Apartment 203",Orlando,FL,32826
96
+ 95,12/8/08 21:18,Cate,Perry,gcogine1@jumpstartlab.com,352-316-3000,15041503 Mallory Hall,Gainesville,FL,32612
97
+ 96,12/8/08 21:19,Natalie,Griswold,jjiech1@jumpstartlab.com,9548657000,2800 N Ocean Blvd,Fort Lauderdale,FL,33308
98
+ 97,12/8/08 21:20,Alisha,O'dell,auff.gustafson@jumpstartlab.com,8172661000,322 w belden,chicago,IL,60614
99
+ 98,12/8/08 21:22,Martha,Hatch,dxurke22@jumpstartlab.com,3017880000,417 Broadway Avenue,Orlando,FL,32803
100
+ 99,12/8/08 21:24,Maia,Allen,gqckerj@jumpstartlab.com,(913) 963-7000,1541 Kentucky St.,Lawrence,KS,66044
101
+ 100,12/8/08 21:26,Genna,Chudkowski,xkriffard@jumpstartlab.com,856-401-2000,123 Garfield Ave,Blackwood,NJ,8012
102
+ 101,12/8/08 21:27,Maria,Shen,ireneka@jumpstartlab.com,7037655000,7101 Vantage Drive,Alexandria,VA,22306
103
+ 102,12/8/08 21:28,Tara,Howard,jbendler09@jumpstartlab.com,5616013000,15359 Morrow Court,Loxahatchee,FL,33470
104
+ 103,12/8/08 21:30,Tara,Wolforf,djczy1pm@jumpstartlab.com,956-793-1000,1001 N. Dowling St.,San Benito,TX,78586
105
+ 104,12/8/08 21:31,Jaime,Pratt,ukndzom@jumpstartlab.com,925-324-787000,"10284 alpine dr, unit c",Cupertino,CA,95014
106
+ 105,12/8/08 21:33,Shawn,Rygg,bfbraha1@jumpstartlab.com,802.922.1000,239 S Prospect St,Burlington,VT,5401
107
+ 106,12/8/08 21:34,Jen,Freeman,heniel.a.abrams@jumpstartlab.com,207 363-8000,50 Ledgewood Dr,York,ME,3909
108
+ 107,12/8/08 21:36,Derek,Ip,vjlfroid05@jumpstartlab.com,901-493-7000,3807 Marion Drive,Memphis,TN,38111
109
+ 108,12/8/08 21:38,Tannis Ruth,Klimas,mwliemar@jumpstartlab.com,9148605000,"mailbox 0668 , 735 anderson hill road",Purchase,NY,10577
110
+ 109,12/9/08 6:37,Christina,Amiott,tdian3.williams@jumpstartlab.com,203-432-5000,986 Forest Road,New Haven,CT,6515
111
+ 110,12/9/08 9:47,Sarah,Hough,gi@jumpstartlab.com,2036506000,42c powder mill drive,stratford,CT,6614
112
+ 111,12/9/08 10:13,Samantha,Anderson,pgng.yi@jumpstartlab.com,609-661-2000,131 Rodman Drive,Manahawkin,NJ,8050
113
+ 112,12/9/08 12:07,Stephanie,Lamm,otenzl@jumpstartlab.com,252.671.1000,4405 1-B Patrick Ave,Wilmington,NC,28403
114
+ 113,12/10/08 11:51,Jacqueline,Chan,dpstrunn@jumpstartlab.com,202-256-7000,4 Delford Ave,Silver Spring,MD,20904
115
+ 114,12/10/08 12:24,Anna,Brodie,dtcfadden@jumpstartlab.com,214-477-5000,3713 Cumberland Ln.,Grand Prairie,TX,75052
116
+ 115,12/10/08 16:37,Emilu,Stamieszkin,ggi115@jumpstartlab.com,512 374 4000,4553 Guadalupe St. #B203,AUSTIN,TX,78751
117
+ 116,12/10/08 19:56,Eriel,Everett,vvrago@jumpstartlab.com,949-533-0000,470 59th St,Oakland,CA,94609
118
+ 117,12/10/08 21:03,Susie,Gorman,ctadcliffe@jumpstartlab.com,510-427-7000,3305 liberty ave,alameda,CA,94501
119
+ 118,12/10/08 21:41,Katherine,Kemp,yuthatcher@jumpstartlab.com,315-272-7000,102 Wells Drive,Deerfield,NY,13502
120
+ 119,12/10/08 21:42,Ann,MacConnell,suslandgurl@jumpstartlab.com,514-544-8000,11025 Graymarsh Place,Ijamsville,MD,21754
121
+ 120,12/10/08 22:04,Greta,Kaufer,gqazyak@jumpstartlab.com,804-357-4000,1606 Mara Drive,Richmond,VA,23238
122
+ 121,12/11/08 0:16,Marysa,Dillie,jearrjones@jumpstartlab.com,3157670000,30 1/2 N.Main St.,carthage,NY,13619
123
+ 122,12/11/08 2:17,Rebecca,Eng,slvarts@jumpstartlab.com,4075741000,2819 Logandale Dr,Orlando,FL,32817
124
+ 123,12/11/08 2:24,Claire,Voigt,otganahannah@jumpstartlab.com,86 13810700000,"Room 1707, 4#, Chongxingyuan Villa, Lugu Nan Street, Shijingshan District",Beijing,AK,10040
125
+ 124,12/11/08 2:47,Carrie,Greenwald,rosha.shyduroff@jumpstartlab.com,(859)-806-8000,340 Irvine Road,Lexington,KY,40502
126
+ 125,12/11/08 3:39,Maria,Fenster,hillyk2@jumpstartlab.com,541-326-1000,230 Patterson St.,Ashland,OR,97520
127
+ 126,12/11/08 11:56,Katie,Baimas-George,svsullivan88@jumpstartlab.com,608-516-9000,1123 Harvard St. unit R,Washington,DC,20009
128
+ 127,12/11/08 12:49,Emma,Landry,sdmothydht@jumpstartlab.com,(716)983-0000,76 Robert street,Hamburg,NY,14075
129
+ 128,12/11/08 13:45,Robin,Doe,ij340406@jumpstartlab.com,585-315-6000,72 Little Briggins Cr.,Fairport,NY,14450
130
+ 129,12/11/08 13:50,Patrick,Mufson,jmh17@jumpstartlab.com,585-315-6000,31 Elizabeth St.,Dansville,NY,14437
131
+ 130,12/11/08 15:49,Tatiana,PTAK,jfexandria8908@jumpstartlab.com,857-231-1000,16 Knowles St.,Newton,MA,2459
132
+ 131,12/11/08 16:55,Sarah,Geretz,ovdawaaa@jumpstartlab.com,857-231-1000,72 Triangle St. appt. 2,Amherst,MA,1002
133
+ 132,12/11/08 18:00,Caitlin,Spitz,guhn@jumpstartlab.com,240-899-8000,4405 29th Street,Mount Rainier,MD,20712
134
+ 133,12/11/08 21:25,Katherine,Benjamin,oarnandl@jumpstartlab.com,3153914000,1505 Owahgena Terrace,Cazenovia,NY,13035
135
+ 134,12/11/08 23:11,Aden,Stone,kferoh@jumpstartlab.com,6155160000,192 Woodlake Drive,Gallatin,TN,37066
136
+ 135,12/11/08 23:17,Justin,Munson,ciy@jumpstartlab.com,6155160000,192 Woodlake Drive,Gallatin,TN,37066
137
+ 136,12/12/08 3:46,Lily,Hadley,icffany@jumpstartlab.com,703.434.9000,1205-E North Main Street,Blacksburg,VA,24060
138
+ 137,12/12/08 11:52,Ella,Kutvirt,poaldana@jumpstartlab.com,802-258-0000,550 Sugar House Hill,Guilford,VT,5301
139
+ 138,12/12/08 12:08,Heidi,Fox,pbutzcr@jumpstartlab.com,716-485-3000,286 Bragg rd,Frewsburg,NY,14738
140
+ 139,12/12/08 12:45,Megan,DiCiaccio,rec229@jumpstartlab.com,773-847-6000,4012 S. Artesian,Chicago,IL,60632
141
+ 140,12/12/08 12:50,Blane,Maguire,vlthonyms@jumpstartlab.com,740-816-3000,142 Peru Twp Rd 166,Marengo,OH,43334
142
+ 141,12/12/08 13:06,Victoria,Prue,skshwd@jumpstartlab.com,603-355-7000,16 grant st,keene,NH,3431
143
+ 142,12/12/08 13:50,Kenneth,Simon,hodrewpayton@jumpstartlab.com,4172940000,173 Rea Street,Hollister,MO,65672
144
+ 143,12/12/08 14:24,Andrew,Nace,oposema1@jumpstartlab.com,716.359.1000,2941 west blood rd.,east aurora,NY,14052
145
+ 144,12/12/08 14:43,Camila,Tackett,xcotty28223@jumpstartlab.com,206-669-4000,1231 17th Avenue East,Seattle,WA,98112
146
+ 145,12/12/08 21:40,Lauren,Brainard,drockhausen@jumpstartlab.com,9199439000,108 Old Markham Place,Chapel Hill,NC,27514
147
+ 146,12/12/08 21:44,Thera,Maldonado,lnexlichtenauer@jumpstartlab.com,4045027000,2708 Oswood Drive,Tucker,GA,30084
148
+ 147,12/13/08 10:34,Megan,Fea,mball13@jumpstartlab.com,410.382.0000,2908 Old Court Road,Baltimore,MD,21208
149
+ 148,12/14/08 1:49,Marc,Alt,hieehugger90@jumpstartlab.com,804-784-5000,106 Birch Circle,Manakin Sabot,VA,23103
150
+ 149,12/14/08 14:54,Kindle,Withelder,auollak11@jumpstartlab.com,5515560000,153 E Tryon Avenue,Teaneck,NJ,7666
151
+ 150,12/14/08 16:43,Steve,Pierson,pdrnettj@jumpstartlab.com,(925) 766-8000,3473 Shangri La Rd,Lafayette,CA,94549
152
+ 151,12/14/08 16:50,Autumn,McCullough,xlthurkr222@jumpstartlab.com,2127513000,59 Grand Street,Brooklyn,NY,11211
153
+ 152,12/14/08 17:25,Rhona,Caputo,qmlsh_c@jumpstartlab.com,508 713-2000,4 Theriault Court,Cambridge,MA,2140
154
+ 153,12/14/08 23:06,Emily,Mansfield,txurapd1@jumpstartlab.com,9737684000,20 Baker Rd,Livingston,NJ,7039
155
+ 154,12/15/08 0:01,Ashton,Zhu,uhana.urbach@jumpstartlab.com,315-420-7000,3435 Ransom Rd.,Jamesville,NY,13078
156
+ 155,12/15/08 0:39,Gena,Taylor,kabbbbbnnnnnnn@jumpstartlab.com,410-908-6000,11846 Winterlong Way,Columbia,MD,21044
157
+ 156,12/15/08 9:45,Rachel,Kimzey,img002@jumpstartlab.com,3038957000,17272 Cornerstone Drive,Parker,CO,80134
158
+ 157,12/15/08 14:06,Anjali,Hai,swcohen@jumpstartlab.com,607-262-0000,510 E. Seneca St. Apt 1A,Ithaca,NY,14850
159
+ 158,12/15/08 14:57,Bridget,Hazzard,uueppig@jumpstartlab.com,512.983.5000,9805 Anderson Mill Rd,Austin,TX,78750
160
+ 159,12/15/08 15:19,Kyle,Wolff,oshreve@jumpstartlab.com,334-791-0000,503 N. Englewood Ave.,Dothan,AL,36303
161
+ 160,12/15/08 15:46,Tess,Paul,rylls3@jumpstartlab.com,5103344000,1931 Marin Ave.,Berkeley,CA,94707
@@ -0,0 +1,38 @@
1
+ module EventReporter
2
+
3
+ class HelpText
4
+ def initialize
5
+ @command = ""
6
+ end
7
+
8
+ def help_queue(input)
9
+ parts = input.split
10
+ @command = parts[0]
11
+ case @command
12
+ when 'count' then puts "\n\n\n\n\tHelp Queue Count 'queue print' to print the queue. \n Enter 'queue clear' to clear the queue. \n"
13
+ when 'clear' then puts "\n\n\n\n\tEnter 'queue print' to print the queue. \n Enter 'queue clear' to clear the queue. \n"
14
+ when 'print' then puts "\n\n\n\nEnter 'queue print' to print the queue. \n Enter 'queue clear' to clear the queue. \n"
15
+ else
16
+ end
17
+ end
18
+
19
+
20
+ def show_help(input)
21
+ parts = input.split
22
+ @command = parts[0]
23
+ case @command
24
+ when 'load' then puts "Enter 'load <filename.csv>' to load records from a new file."
25
+ when 'find' then puts "Enter 'find <attribute> <criteria>' to load records into the Queue. \n Example: 'find first_name sarah' "
26
+ when 'queue'
27
+ help_queue(parts[1..-1].join(" "))
28
+ else
29
+ puts "#{'-'*100}\n\n\n\n\t\tWelcome to Event Reporter. \n\n\n\n\t\tYou can Search a CSV for specific names/cities/states/zipcodes and print them
30
+ \n\tType 'load <filename.csv>'' to load records\n\tEnter 'find first_name sarah' to find people named sarah.
31
+ \n Type 'queue print' to print out all records in the queue.\n Type 'queue print by <attribute> to sort the data by an attribute\n
32
+ Type 'queue save to filename' to save the queue, JSON, XML, txt and CSV are acceptable extensions."
33
+ end
34
+ end
35
+
36
+ end
37
+
38
+ end
@@ -0,0 +1,95 @@
1
+ require 'csv'
2
+ require 'date'
3
+
4
+
5
+ module EventReporter
6
+ class LoadNewFile
7
+
8
+ def initialize(user_input)
9
+ @people = []
10
+ @contents =" "
11
+ @filename = ""
12
+ if user_input[-4..-1] == ".csv"
13
+ @filename = user_input
14
+ elsif user_input == "load"
15
+ puts"Loading Default File"
16
+ @filename="event_attendees.csv"
17
+ else
18
+ puts "Bro, that is not a CSV or i cannot find the file...\n \n Loading Default File."
19
+ @filename="event_attendees.csv"
20
+ end
21
+ default_filename =
22
+ File.join(File.dirname(__FILE__),"../../bin/", @filename)
23
+ @contents = CSV.open(default_filename, headers: true, header_converters: :symbol )
24
+ parse_file(@filename)
25
+ end
26
+
27
+ def clean_zipcode(zipcode)
28
+ zipcode.to_s.rjust(5,"0")[0..4]
29
+ end
30
+
31
+ def clean_phone(dirty_phone)
32
+ phone = dirty_phone.scan(/[0-9]/).join
33
+ if phone.length == 10
34
+ "(#{phone[0..2]})#{phone[3..5]}-#{phone[6..9]}"
35
+ elsif phone.length ==11 && phone[0]==1
36
+ "(#{phone[1..3]})#{phone[4..6]}-#{phone[7..10]}"
37
+ else
38
+ "(000)000-0000"
39
+ end
40
+ end
41
+
42
+ def clean_city(dirty_city)
43
+ dirty_city.to_s.downcase
44
+ end
45
+
46
+ def clean_state(dirty_state)
47
+ dirty_state.to_s.downcase
48
+ end
49
+
50
+ def clean_reg_date
51
+ puts "puts clean reg date"
52
+ end
53
+
54
+ def clean_street(dirty_street)
55
+ dirty_street.to_s.downcase
56
+ end
57
+
58
+ def clean_email(dirty_email)
59
+ dirty_email.to_s.downcase
60
+ end
61
+
62
+ def clean_last_name(dirty_last_name)
63
+ dirty_last_name.to_s.downcase
64
+ end
65
+
66
+ def clean_first_name(dirty_first_name)
67
+ dirty_first_name.to_s.downcase
68
+ end
69
+
70
+
71
+ def parse_file(filename)
72
+ @people = []
73
+ @contents.each do |row|
74
+ person = {}
75
+ person[:id] = row[0]
76
+ person[:regdate] = row[:regdate]
77
+ person[:first_name] = clean_first_name(row[:first_name])
78
+ person[:last_name] = clean_last_name(row[:last_name])
79
+ person[:email] = clean_email(row[:email_address])
80
+ person[:phone] = clean_phone(row[:homephone])
81
+ person[:street] = clean_street(row[:street])
82
+ person[:city] = clean_city(row[:city])
83
+ person[:state] = clean_state(row[:state])
84
+ person[:zipcode] = clean_zipcode(row[:zipcode])
85
+ @people << person
86
+ end
87
+ puts "Loaded #{@people.count} Records from '#{filename}'..."
88
+ end
89
+
90
+ def returner
91
+ @people
92
+ end
93
+
94
+ end
95
+ end
@@ -0,0 +1,102 @@
1
+ require 'json'
2
+ require 'csv'
3
+ require 'nokogiri'
4
+
5
+ module EventReporter
6
+ class SaveTo
7
+ def initialize(input,queue)
8
+ @input = input
9
+ @queue = queue
10
+ @writer_contents = ""
11
+ if @input == "event_attendees.csv" || @input == "save"
12
+ puts "Saving to default_file.csv"
13
+ @filename = 'default_file.csv'
14
+ default_filename =
15
+ File.join(File.dirname(__FILE__),"../../files/default_filename.csv")
16
+ write_csv(default_filename)
17
+ else
18
+ default_filename =
19
+ File.join(File.dirname(__FILE__),"../../files/", @input)
20
+ parse_user_input(default_filename)
21
+ end
22
+ end
23
+
24
+ def write_txt(filename)
25
+ File.open(filename, "w") do |file|
26
+ file.puts "id\tregdate\tfirst_name\tlast_name\temail_address\thomephone\tstreet\tcity\tstate\tzipcode"
27
+ @queue.each do |person|
28
+ file.puts "#{person[:id]}\t#{person[:regdate]}\t#{person[:first_name].capitalize}\t#{person[:last_name].capitalize}\t#{person[:email]}\t#{person[:phone]}\t#{person[:street]}\t#{person[:city].capitalize}\t#{person[:state].upcase}\t#{person[:zipcode]}"
29
+ end
30
+ end
31
+ puts "Queue Saved to #{filename}"
32
+ end
33
+
34
+ def write_csv(filename)
35
+ CSV.open(filename,'w') do |file|
36
+ file << %w"id regdate first_name last_name email_address homephone street city state zipcode"
37
+ @queue.each do |person|
38
+ file << [person[:id],person[:regdate],person[:first_name].capitalize,person[:last_name].capitalize,person[:email],person[:phone],person[:street],person[:city].capitalize,person[:state].upcase,person[:zipcode]]
39
+ end
40
+ end
41
+ puts "Queue Saved to #{filename}"
42
+ end
43
+
44
+ def write_json(filename)
45
+ begin
46
+ puts @queue.to_json
47
+ File.open(filename,"w") do |file|
48
+ file.puts @queue.to_json
49
+ end
50
+ puts "Queue Saved to #{filename}"
51
+ rescue
52
+ puts "Cannot write to JSON"
53
+ end
54
+ end
55
+
56
+ def write_xml(filename)
57
+ builder = Nokogiri::XML::Builder.new do |xml|
58
+ xml.root {
59
+ xml.event_attendees {
60
+ @queue.each do |person|
61
+ xml.attendee {
62
+ xml.person_id person[:id]
63
+ xml.registration_date person[:regdate]
64
+ xml.first_name person[:first_name].capitalize
65
+ xml.last_name person[:last_name].capitalize
66
+ xml.email person[:email]
67
+ xml.phone person[:phone]
68
+ xml.address {
69
+ xml.street person[:street]
70
+ xml.city person[:city].capitalize
71
+ xml.state person[:state].upcase
72
+ xml.zipcode person[:zipcode]
73
+ }
74
+ }
75
+ end
76
+ }
77
+ }
78
+ end
79
+ puts builder.to_xml
80
+ File.open(filename,"w") do |file|
81
+ file.puts builder.to_xml
82
+ end
83
+ puts "Queue Saved to #{filename}"
84
+ end
85
+
86
+ def parse_user_input(input)
87
+ filetype = input[-4..-1]
88
+ if filetype == ".csv"
89
+ write_csv(input)
90
+ elsif filetype == "json"
91
+ write_json(input)
92
+ elsif filetype == ".txt"
93
+ write_txt(input)
94
+ elsif filetype == ".xml"
95
+ write_xml(input)
96
+ else
97
+ puts "does not compute"
98
+ end
99
+ end
100
+
101
+ end
102
+ end
@@ -0,0 +1,3 @@
1
+ module EventReporter
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,162 @@
1
+ require_relative 'event_reporter/version'
2
+ require_relative 'event_reporter/save_to'
3
+ require_relative 'event_reporter/load_new_file'
4
+ require_relative 'event_reporter/help_conditional'
5
+ require 'csv'
6
+ require 'date'
7
+
8
+ module EventReporter
9
+
10
+ class Parser
11
+
12
+ def initialize
13
+ @people = []
14
+ @list = []
15
+ @queue = []
16
+ @contents = ""
17
+ end
18
+
19
+ def find_width
20
+ first_name_length = [12]
21
+ last_name_length = [12]
22
+ email_length = []
23
+ city_length = []
24
+ street_length = []
25
+ @queue.each do |person|
26
+ first_name_length << person[:first_name].length
27
+ last_name_length << person[:last_name].length
28
+ email_length << person[:email].length
29
+ city_length << person[:city].length
30
+ street_length << person[:street].length
31
+ end
32
+ width = Hash.new(0)
33
+ width[:first_name_ljust] = first_name_length.max
34
+ width[:last_name_ljust] = last_name_length.max
35
+ width[:email_ljust] = email_length.max
36
+ width[:city_ljust] = city_length.max
37
+ width[:street_ljust] = street_length.max
38
+ width
39
+ end
40
+
41
+ def display_queue(a,b,c,d,e)
42
+ puts "\n\n\n\n\n#{"LAST NAME".ljust(a," ")}|#{"FIRST NAME".ljust(b," ")}|#{"EMAIL".ljust(c," ")}|#{"ZIPCODE".ljust(10," ")}|#{"CITY".ljust(d," ")}|#{"STATE".ljust(5," ")}|#{"ADDRESS".ljust(e," ")}|#{"PHONE".ljust(13," ")}"
43
+ @queue.each_with_index do |person,i|
44
+ puts "#{person[:last_name].ljust(a," ")}|#{person[:first_name].ljust(b," ")}|#{person[:email].ljust(c," ")}|#{person[:zipcode].ljust(10," ")}|#{person[:city].ljust(d," ")}|#{person[:state].upcase.ljust(5," ")}|#{person[:street].to_s.ljust(d," ")}|#{person[:phone].ljust(13," ")}"
45
+ if i % 10 == 0 && i != 0
46
+ puts "Showing Matches #{i}-#{i+10} of #{@queue.length}"
47
+ gets
48
+ end
49
+ end
50
+ end
51
+
52
+ def queue_print(input)
53
+ first_name_length = [12]
54
+ last_name_length = [12]
55
+ email_length = []
56
+ city_length = []
57
+ street_length = []
58
+ @queue.each do |person|
59
+ first_name_length << person[:first_name].length
60
+ last_name_length << person[:last_name].length
61
+ email_length << person[:email].length
62
+ city_length << person[:city].length
63
+ street_length << person[:street].length
64
+ end
65
+ first_name_ljust = first_name_length.max
66
+ last_name_ljust = last_name_length.max
67
+ email_ljust = email_length.max
68
+ city_ljust = city_length.max
69
+ street_ljust = street_length.max
70
+ if input == "print"
71
+ display_queue(last_name_ljust , first_name_ljust , email_ljust , city_ljust , street_ljust)
72
+ else
73
+ @queue = @queue.sort_by{|person| person[input.to_sym]}
74
+ queue_print("print")
75
+ end
76
+ puts "\n\n\n\n"
77
+ end
78
+
79
+ def queue(input)
80
+ parts = input.split
81
+ command = parts[0]
82
+ case command
83
+ when 'count' then puts "Found #{@queue.count} Records"
84
+ when 'clear'
85
+ puts "Queue Cleared..."
86
+ @queue = []
87
+ when 'print' then queue_print(parts[-1])
88
+ when 'save' then EventReporter::SaveTo.new(parts[-1],@queue)
89
+ # when 'save' then save_to(parts[-1],@queue)
90
+ else
91
+ puts "What would you like to queue?"
92
+ end
93
+ end
94
+
95
+ def find_first_name(input)
96
+ @queue = @people.select{|key,value| key[:first_name]==input}
97
+ puts "Found #{@queue.count} records"
98
+ end
99
+
100
+ def find_last_name(input)
101
+ @queue = @people.select{|key,value| key[:last_name]==input}
102
+ puts "Found #{@queue.count} records"
103
+ end
104
+
105
+ def find_by_city(input)
106
+ @queue = @people.select{|key,value| key[:city]==input}
107
+ puts "Found #{@queue.count} records"
108
+ end
109
+
110
+ def find_by_state(input)
111
+ @queue = @people.select{|key,value| key[:state]==input}
112
+ puts "Found #{@queue.count} records"
113
+ end
114
+
115
+ def find_by_zip(input)
116
+ @queue = @people.select{|key,value| key[:zipcode]==input}
117
+ puts "Found #{@queue.count} records"
118
+ end
119
+
120
+ def find(input)
121
+ parts = input.split
122
+ command = parts[0]
123
+ case command
124
+ #when 'help' then puts "\n Run 'queue count' to show number of items in queue. \n Run 'queue clear' to clear the items in the queue."
125
+ when 'first_name' then find_first_name(parts[1..-1].join(" ")) #find first_name mary
126
+ when 'last_name' then find_last_name(parts[1..-1].join(" ")) #find last_name smith
127
+ when 'city' then find_by_city(parts[1..-1].join(" "))
128
+ when 'state' then find_by_state(parts[1..-1].join(" "))
129
+ when 'zipcode' then find_by_zip(parts[1..-1].join(" "))
130
+ else
131
+ puts "What would you like to find?"
132
+ end
133
+ end
134
+
135
+
136
+ def run
137
+ command = ""
138
+ while command != "quit"
139
+ printf "enter command: "
140
+ input = gets.chomp.downcase
141
+ parts = input.split
142
+ command = parts[0]
143
+ case command
144
+ when 'quit' then puts "Goodbye!"
145
+ when 'load'
146
+ @queue = []
147
+ @people = EventReporter::LoadNewFile.new(parts[-1])
148
+ @people = @people.returner
149
+ when 'find' then find(parts[1..-1].join(" "))
150
+ when 'queue' then queue(parts[1..-1].join(" "))
151
+ when 'help'
152
+ a = EventReporter::HelpText.new
153
+ a.show_help(parts[1..-1].join(" "))
154
+ else
155
+ puts "Sorry, I don't know how to #{command}."
156
+ end
157
+ end
158
+ end
159
+
160
+ end
161
+
162
+ end