aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarak Squires <[email protected]>2010-05-16 19:26:30 -0400
committerMarak Squires <[email protected]>2010-05-16 19:26:30 -0400
commitb18c0f665cfc5a2d6e088246a4e2c4f811847e8a (patch)
tree90123184aa2686dac1dd0718d278689962f1a20f
parent8a9eeab7270b33bb0ed0ae4a82af3f30494a8433 (diff)
downloadfaker-b18c0f665cfc5a2d6e088246a4e2c4f811847e8a.tar.xz
faker-b18c0f665cfc5a2d6e088246a4e2c4f811847e8a.zip
you gotta run the BUILD script matching patches to the lib guys
-rw-r--r--Faker.js23
-rw-r--r--Readme.md2
2 files changed, 17 insertions, 8 deletions
diff --git a/Faker.js b/Faker.js
index 3a777495..135ad6a7 100644
--- a/Faker.js
+++ b/Faker.js
@@ -1,4 +1,4 @@
-/*************** AUTOGENERATED @ 1273996437180 ***************
+/*************** AUTOGENERATED @ 1274052374977 ***************
WARNING: THIS FILE WAS AUTOGENERATED BY THE FAKER BUILD SCRIPT
MODIFYING THIS FILE IS FINE, BUT YOU REALLY SHOULD BE MODIFYING
THE LIBRARY DIRECTLY AND REGENERATING THIS FILE USING BUILD.js!!!!
@@ -186,13 +186,13 @@ Faker.Lorem.sentence = function (wordCount){
return this.words(wordCount + Helpers.randomNumber(7)).join(' ');
};
-Faker.Lorem.sentences = function (paragraphCount){
- if( typeof paragraphCount == 'undefined'){ var paragraphCount = 3;}
- var paragraphs = [];
- for(paragraphCount; paragraphCount >= 0; paragraphCount--){
- paragraphs.push(this.sentence());
+Faker.Lorem.sentences = function (sentenceCount){
+ if( typeof sentenceCount == 'undefined'){ var sentenceCount = 3;}
+ var sentences = [];
+ for(sentenceCount; sentenceCount >= 0; sentenceCount--){
+ sentences.push(this.sentence());
}
- return paragraphs.join("\n \r\t");
+ return sentences.join("\n");
};
Faker.Lorem.paragraph = function (sentenceCount){
@@ -200,6 +200,15 @@ Faker.Lorem.paragraph = function (sentenceCount){
return this.sentences(sentenceCount + Helpers.randomNumber(3));
};
+Faker.Lorem.paragraphs = function (paragraphCount){
+ if( typeof paragraphCount == 'undefined'){ var paragraphCount = 3;}
+ var paragraphs = [];
+ for(paragraphCount; paragraphCount >= 0; paragraphCount--){
+ paragraphs.push(this.paragraph());
+ }
+ return paragraphs.join("\n \r\t");
+};
+
Faker.Helpers = {};
Faker.Helpers.randomNumber = function (range) {
r = Math.floor(Math.random()*range);
diff --git a/Readme.md b/Readme.md
index c2f00211..07a85ad2 100644
--- a/Readme.md
+++ b/Readme.md
@@ -17,7 +17,7 @@
var randomCard = Faker.Helpers.createCard(); // random contact card containing many properties
## API
-<ul><li>Name<ul><li>findName</li></ul></li><li>Address<ul><li>zipCode</li><li>city</li><li>streetName</li><li>streetAddress</li><li>secondaryAddress</li><li>ukCounty</li><li>ukCountry</li></ul></li><li>PhoneNumber<ul><li>phoneNumber</li></ul></li><li>Internet<ul><li>email</li><li>userName</li><li>domainName</li><li>domainWord</li></ul></li><li>Company<ul><li>companyName</li><li>companySuffix</li><li>catchPhrase</li><li>bs</li></ul></li><li>Lorem<ul><li>words</li><li>sentence</li><li>sentences</li><li>paragraph</li></ul></li><li>Helpers<ul><li>randomNumber</li><li>randomize</li><li>replaceSymbolWithNumber</li><li>shuffle</li><li>generateDataSet</li><li>createCard</li></ul></li><li>definitions<ul><li>first_name</li><li>last_name</li><li>name_prefix</li><li>name_suffix</li><li>us_state</li><li>us_state_abbr</li><li>city_prefix</li><li>city_suffix</li><li>street_suffix</li><li>uk_county</li><li>uk_country</li><li>catch_phrase_adjective</li><li>catch_phrase_descriptor</li><li>catch_phrase_noun</li><li>bs_adjective</li><li>bs_buzz</li><li>bs_noun</li><li>domain_suffix</li><li>lorem</li><li>phone_formats</li></ul></li></ul>
+<ul><li>Name<ul><li>findName</li></ul></li><li>Address<ul><li>zipCode</li><li>city</li><li>streetName</li><li>streetAddress</li><li>secondaryAddress</li><li>ukCounty</li><li>ukCountry</li></ul></li><li>PhoneNumber<ul><li>phoneNumber</li></ul></li><li>Internet<ul><li>email</li><li>userName</li><li>domainName</li><li>domainWord</li></ul></li><li>Company<ul><li>companyName</li><li>companySuffix</li><li>catchPhrase</li><li>bs</li></ul></li><li>Lorem<ul><li>words</li><li>sentence</li><li>sentences</li><li>paragraph</li><li>paragraphs</li></ul></li><li>Helpers<ul><li>randomNumber</li><li>randomize</li><li>replaceSymbolWithNumber</li><li>shuffle</li><li>generateDataSet</li><li>createCard</li></ul></li><li>definitions<ul><li>first_name</li><li>last_name</li><li>name_prefix</li><li>name_suffix</li><li>us_state</li><li>us_state_abbr</li><li>city_prefix</li><li>city_suffix</li><li>street_suffix</li><li>uk_county</li><li>uk_country</li><li>catch_phrase_adjective</li><li>catch_phrase_descriptor</li><li>catch_phrase_noun</li><li>bs_adjective</li><li>bs_buzz</li><li>bs_noun</li><li>domain_suffix</li><li>lorem</li><li>phone_formats</li></ul></li></ul>
## Authors
####Matthew Bergman & Marak Squires
Heavily inspired by Benjamin Curtis's Ruby Gem [Faker](http://faker.rubyforge.org/) and Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/lib/Data/Faker.pm) \ No newline at end of file