[freeside-commits] freeside/bin customer-faker,1.3,1.4

Ivan,,, ivan at wavetail.420.am
Mon Nov 5 17:59:36 PST 2007


Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv27315

Modified Files:
	customer-faker 
Log Message:
keep our own list of states; remove some states that Data::Faker and Locale::SubCountry disagree on

Index: customer-faker
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/customer-faker,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- customer-faker	5 Nov 2006 22:28:16 -0000	1.3
+++ customer-faker	6 Nov 2007 01:59:33 -0000	1.4
@@ -13,8 +13,8 @@
 my $agentnum = 1;
 my $refnum = 1;
 
-#my @pkgs = ( 2, 3, 4 );
-my @pkgs = ( 4, 5, 6 );
+my @pkgs = ( 2, 3, 4 );
+#my @pkgs = ( 4, 5, 6 );
 my $svcpart = 2;
 
 use vars qw( $opt_p );
@@ -27,6 +27,9 @@
 my $onum = $num;
 my $start = time;
 
+my @states = qw( AL AK AS AZ AR CA CO CT DE DC FL GA GU HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PA PR RI SC SD TN TX UT VT VI VA WA WV WI WY );
+#FM MH
+
 until ( $num-- <= 0 ) {
 
   my $faker = new Data::Faker;
@@ -39,7 +42,8 @@
     'company'  => ( $num % 2 ? $faker->company. ', '. $faker->company_suffix : '' ), #half with companies..
     'address1' => $faker->street_address,
     'city'     => 'Tofutown', #missing, so everyone is from tofutown# $faker->city,
-    'state'    => $faker->us_state_abbr,
+    #'state'    => $faker->us_state_abbr,
+    'state'    => $states[ int(rand($#states)) ],
     'zip'      => $faker->us_zip_code,
     'country'  => 'US',
     'daytime'  => $faker->phone_number,



More information about the freeside-commits mailing list