tubular-faker 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tubular-faker.rb +50 -15
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4640118ce0afcdd9c04bcdea4d7409799854a5fd
4
- data.tar.gz: 10a58f6c57124bb1e5d2d798f98bf65cfdca2597
3
+ metadata.gz: 6880afeb70ac2458afdc6170ff148e09fc0805ef
4
+ data.tar.gz: d3f976e497977bd3d73dcf51c4141d86d9a58544
5
5
  SHA512:
6
- metadata.gz: 389b38037f4401cf8a1f45023908c7098553fa0ab2b0b77359365185ec74d07e00984a4edf7d1f20f6681412e0113fc72bfda9bc1616cb83a744ca87007050d8
7
- data.tar.gz: db2cdd367f2edbe76a760afdf1f0aa5125a043cefbdcf530380c31800c3f8cd9167e64421b2bddfd92b78a65c5419e74c41baf8616ba25271267784c63a891c2
6
+ metadata.gz: 3d02c38110b81c697df1cd14429a1b083fbae6d6542baae0d4c354fc8649fd47dcf9b53ccb48f82e64068a6cffa112d71aa98d11ce44e98905f2da735f445eee
7
+ data.tar.gz: a27e1822ca985f0c12c0a07dab20283cef6bc9b2e30f0b4ab77406e7695aac1cf1967a34db432052002979e99224cfcad3552b3e177272b46ae283d3cfaf4bfa
@@ -2,30 +2,34 @@ module TubularFaker
2
2
 
3
3
  #### OPTIONS
4
4
 
5
- GENERAL = {
6
- adjectives: ["Awesome", "Tubular", "Radical", "Mega", "Bomb", "Tight", "Dope", "Chillin'", "Rockin' Rappin'", "Cowabunga", "Far Out", "Whatever", "Booyah", "Hasta la Vista", "Shady", "Fly", "Phat", "Wild and Crazy", "Bogus", "Busted", "Mondo", "Exactamundo", "Kewl", "Tubuloso", "Rad", "Wicked", "Hella", "Gnarly", "Cyber", "Nuclear", "Grunge", "Creepy", "Spooky", "Absolute", "Total", "Extreme", "Bummer", "l33t"],
7
- numbers: ["2K", "64", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "360", "180", "69", "1001", "3000", "311", "94", "95", "96", "97", "98", "99", "666", "667", "1337"],
8
- years: ["1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999"]
9
- }
10
- NAMES = {
11
- first_names: ["Kurt", "Eddie", "Dylan", "2Pac", "Mariah", "Madonna", "Bono", "The Notorious", "Janet", "Thom", "Tre", "Lauryn", "Lars", "Ice", "Vanilla", "Snoop", "Trent", "Beck", "Alanis", "Axl", "Bjork", "Gwen", "Prince", "Whitney", "Tori", "Ani", "Missy", "Seal", "Gavin", "Sinead", "Coolio", "Krist", "Courtney", "Sheryl", "Busta", "Hootie", "Sarah Michelle", "Neve", "Heather", "Luke", "Mark-Paul", "Melissa Joan", "Calista", "Tiffani", "River", "Blossom", "Clarissa", "Balki", "Frasier", "Regis", "Geraldo", "Beavis", "Butthead", "Roseanne", "Screech", "MacGyver", "Chandler", "Bart", "Zack", "Billy", "Kevin", "Jessica", "Uma", "Scully"],
12
- last_names: ["Cobain", "Vedder", "Corgan", "Shakur", "Carey", "Bono", "Dre", "Kiedis", "B.I.G.", "Jackson", "Cool J.", "Ulrich", "Cube", "Ice", "Dogg", "Reznor", "Blige", "Rza", "Morissette", "Rose", "Latifah", "Stefani", "Houston", "DiFranco", "Amos", "Weiland", "Rossdale", "Manson", "Phair", "Grohl", "Novaselic", "Love", "Crow", "Rhymes", "Loder", "Clooney", "Aniston", "Gellar", "Duchovny", "Stamos", "Locklear", "Priestley", "Perry", "Doherty", "Gosselaar", "Taylor Thomas", "Lawless", "Applegate", "Soprano", "Flockhart", "Sorbo", "Love Hewitt", "Cosby", "Elfman", "Brandis", "Phoenix", "Pickles", "Carrey", "Kramer", "Seinfeld", "Simpson", "Urkel", "Lewinsky"]
13
- }
14
5
  ADDRESSES = {
15
- city_prefix: ["North", "East", "West", "South", "New", "Lake", "Port"],
16
- city_suffix: ["town", "land", "ville", "berg", "view", "furt", "chester", "haven", "shire"]
6
+ city_prefix: ["East", "Lake", "New", "North", "Port", "South", "West"],
7
+ city_suffix: ["berg", "chester", "furt", "haven", "land", "shire", "town", "view", "ville"]
17
8
  }
9
+
18
10
  COMPANIES = {
19
- products: ["Juice", "Soakers", "Beans", "3D", "Dudes", "Dudettes", "Babies", "Cards", "Net", "Cereal", "Pogs", "Soda", "Beepers", "IIGS", "Headphones", "Sneakers", "Arcade", "Body Splash", "Shimmer", "Trolls", "Flannel", "Boots", "Jewels", "Stickers", "Tapes", "Scrunchies", "Beanies", "Applets", "Frames", "Dot-Com", "Superhighway", "Netiquette", "Screensavers", "Virtual Reality", "BBS", "Hot Links", "Snax"]
11
+ products: ["3D", "Applets", "Arcade", "BBS", "Babies", "Beanies", "Beans", "Beepers", "Bellybutton Rings", "Body Splash", "Boots", "Cards", "Cereal", "Dot-Com", "Dudes", "Dudettes", "Flannel", "Frames", "Hair Dye", "Headphones", "Hot Links", "IIGS", "Jewels", "Juice", "Net", "Netiquette", "Pogs", "Screensavers", "Scrunchies", "Shimmer", "Snax", "Sneakers", "Soakers", "Soda", "Stickers", "Superhighway", "Tapes", "Trolls", "Virtual Reality"]
12
+ }
13
+
14
+ GENERAL = {
15
+ adjectives: ["Absolute", "Awesome", "Biodegradable", "Bogus", "Bomb", "Booyah", "Bummer", "Busted", "Chillin'", "Cowabunga", "Creepy", "Cyber", "Dope", "Emo", "Exactamundo", "Extreme", "Far Out", "Fly", "Goth", "Gnarly", "Grunge", "Hasta la Vista", "Hella", "Kewl", "Mega", "Mondo", "Nuclear", "Phat", "Rad", "Radical", "Rockin' Rappin'", "Shady", "Spooky", "Tight", "Total", "Tubular", "Tubuloso", "Whatever", "Wiccan", "Wicked", "Wild and Crazy", "l33t"],
16
+ numbers: ["1001", "1337", "180", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2K", "3000", "311", "360", "64", "666", "667", "69", "94", "95", "96", "97", "98", "99"],
17
+ years: ["1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999"]
20
18
  }
21
19
 
22
20
  INTERNET = {
23
- domains: ["aol", "hotmail", "geocities", "tripod", "angelfire", "earthlink"],
21
+ domains: ["angelfire", "aol", "earthlink", "geocities", "hotmail", "tripod"],
24
22
  dot: [".com", ".net"],
25
- pages: ["index", "applet", "hotlinks", "guestbook", "homepage", "website", "cyber", "fanpage", "chatroom"]
23
+ pages: ["applet", "chatroom", "cyber", "fanpage", "guestbook", "homepage", "hotlinks", "index", "website"]
26
24
  }
25
+
27
26
  LINGO = {
28
- catchphrases: ["Did I do that?", "D'oh!", "You got it, dude.", "It's not a tumor.", "There's no crying in baseball.", "Scha-wing!", "I am the great cornholio!", "Run Forrest, run!", "Allllllrighty then.", "No soup for you!", "As if!", "Oh my god, they killed Kenny!", "I see dead people.", "All that and a bag of chips.", "Don't go there!", "Eat my shorts!", "How's it hangin'?", "It's all good.", "NOT!", "PSYCH!", "No duh.", "Doy hickey.", "Oh snap!", "It's da bomb!", "So is your FACE.", "Talk to the hand.", "What up, dawg?", "What's the dillio?", "Yadda yadda yadda.", "Yoink!", "Your mom.", "So funny I forgot to laugh.", "Then why don't you marry it?", "Take a chill pill!", "You go girl!", "Kewl beans.", "L8r sk8r!", "Peace out, cub scout!", "Bling bling!", "Let's bounce!", "Mad props.", "Score!"]
27
+ catchphrases: ["All that and a bag of chips.", "Allllllrighty then.", "As if!", "Bling bling!", "D'oh!", "Did I do that?", "Don't go there!", "Doy hickey.", "Eat my shorts!", "How's it hangin'?", "I am the great cornholio!", "I see dead people.", "It's all good.", "It's da bomb!", "It's not a tumor.", "Kewl beans.", "L8r sk8r!", "Let's bounce!", "Mad props.", "NOT!", "No duh.", "No soup for you!", "Oh my god, they killed Kenny!", "Oh snap!", "PSYCH!", "Peace out, cub scout!", "Run Forrest, run!", "Scha-wing!", "Score!", "So funny I forgot to laugh.", "So is your FACE.", "Take a chill pill!", "Talk to the hand.", "Then why don't you marry it?", "There's no crying in baseball.", "What up, dawg?", "What's the dillio?", "Yadda yadda yadda.", "Yoink!", "You go girl!", "You got it, dude.", "Your mom."]
28
+ }
29
+
30
+ NAMES = {
31
+ first_names: ["2Pac", "Alanis", "Ani", "Axl", "Balki", "Bart", "Beavis", "Beck", "Billy", "Bjork", "Blossom", "Bono", "Busta", "Butthead", "Calista", "Chandler", "Clarissa", "Coolio", "Courtney", "Dylan", "Eddie", "Frasier", "Gavin", "Geraldo", "Gwen", "Heather", "Hootie", "Ice", "Janet", "Jessica", "Kevin", "Krist", "Kurt", "Lars", "Lauryn", "Luke", "MacGyver", "Madonna", "Mariah", "Mark-Paul", "Melissa Joan", "Missy", "Neve", "Prince", "Regis", "River", "Roseanne", "Sarah Michelle", "Screech", "Scully", "Seal", "Sheryl", "Sinead", "Snoop", "The Notorious", "Thom", "Tiffani", "Tori", "Tre", "Trent", "Uma", "Vanilla", "Whitney", "Yakko", "Zack"],
32
+ last_names: ["Amos", "Aniston", "Applegate", "B.I.G.", "Blige", "Boitano", "Bono", "Brandis", "Carey", "Carrey", "Clooney", "Cobain", "Cool J.", "Corgan", "Cosby", "Crow", "Cube", "DiFranco", "Dogg", "Doherty", "Dre", "Duchovny", "Elfman", "Flockhart", "Gellar", "Gosselaar", "Grohl", "Houston", "Ice", "Jackson", "Kiedis", "Kramer", "Latifah", "Lawless", "Lewinsky", "Locklear", "Loder", "Love", "Love Hewitt", "Manson", "Morissette", "Novaselic", "Perry", "Phair", "Phoenix", "Pickles", "Priestley", "Reznor", "Rhymes", "Rose", "Rossdale", "Rza", "Seinfeld", "Shakur", "Simpson", "Soprano", "Sorbo", "Stamos", "Stefani", "Taylor Thomas", "Ulrich", "Urkel", "Vedder", "Weiland"]
29
33
  }
30
34
 
31
35
  #### METHODS
@@ -42,6 +46,10 @@ module TubularFaker
42
46
  "#{ADDRESSES[:city_prefix].sample} #{GENERAL[:adjectives].sample}#{ADDRESSES[:city_suffix].sample}"
43
47
  end
44
48
 
49
+ def self.email
50
+ "#{NAMES[:first_names].sample.downcase.gsub(/[eio\s]/, {'e' => '3', 'i' => '1', 'o' => '0', ' ' => '_'})}#{GENERAL[:numbers].sample}@#{INTERNET[:domains].sample}#{INTERNET[:dot].sample}"
51
+ end
52
+
45
53
  def self.url
46
54
  "http://www.#{INTERNET[:domains].sample}#{INTERNET[:dot].sample}/#{NAMES[:first_names].sample.downcase.strip}#{GENERAL[:numbers].sample}/#{INTERNET[:pages].sample}.html"
47
55
  end
@@ -54,4 +62,31 @@ module TubularFaker
54
62
  "#{LINGO[:catchphrases].sample}"
55
63
  end
56
64
 
65
+ # returns a paragraph of lorem ipsum
66
+ # or multiple paragraphs if you pass in { paragraphs: 3 } to the options hash
67
+ def self.lorem(opts = {})
68
+ text_blob = ""
69
+ paragraphs = opts[:paragraphs] || 1
70
+
71
+ 1.upto(paragraphs) do
72
+ 4.times do
73
+ text_blob << lorem_sentence + " "
74
+ text_blob << LINGO[:catchphrases].sample + ' '
75
+ end
76
+ text_blob << "\n\n"
77
+ end
78
+
79
+ text_blob.strip
80
+ end
81
+
82
+ # returns one lorem ipsum sentence
83
+ def self.lorem_sentence
84
+ sentence = ""
85
+ sentence << ( GENERAL[:adjectives].sample + " " ).capitalize
86
+ 6.times { sentence << COMPANIES[:products].sample.downcase + " " }
87
+ sentence << COMPANIES[:products].sample.downcase + "."
88
+ end
89
+
90
+
91
+
57
92
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tubular-faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucian Kahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: luciankahn@gmail.com
@@ -27,17 +27,17 @@ require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  required_rubygems_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ">="
35
+ - - '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.2.2
40
+ rubygems_version: 2.0.14
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: 90's-themed fake data gem for seeding databases, lorem ipsum, etc.