faker-stoked 0.2.7 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/faker-stoked.gemspec CHANGED
@@ -1,76 +1,33 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: faker-stoked 0.2.7 ruby lib
6
1
 
7
- Gem::Specification.new do |s|
8
- s.name = "faker-stoked"
9
- s.version = "0.2.7"
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "faker/stoked/version"
10
5
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Frederick D. Schoeneman"]
14
- s.date = "2014-02-09"
15
- s.description = "This is an extension of the faker gem, allowing stoked bros and brodies to effortlessly generate stoked bios, that are both radical and awesome while simultaneously pitted. It also provides a rich, creamy variety of methods to generate bro words."
16
- s.email = "fred.schoeneman@gmail.com"
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".ruby-gemset",
24
- ".ruby-version",
25
- ".travis.yml",
26
- "Gemfile",
27
- "Gemfile.lock",
28
- "LICENSE.txt",
29
- "README.rdoc",
30
- "Rakefile",
31
- "VERSION",
32
- "faker-stoked.gemspec",
33
- "lib/faker/bio.rb",
34
- "lib/faker/bro_words.rb",
35
- "lib/faker/stokebot.rb",
36
- "lib/faker/stokebot/intro.rb",
37
- "lib/faker/stokebot/object.rb",
38
- "lib/faker/stokebot/subject.rb",
39
- "lib/faker/stokebot/verb.rb",
40
- "lib/faker/stoked.rb",
41
- "test/helper.rb",
42
- "test/test_faker-stoked.rb"
43
- ]
44
- s.homepage = "http://github.com/fdschoeneman/faker-stoked"
45
- s.licenses = ["MIT"]
46
- s.rubygems_version = "2.2.1"
47
- s.summary = "Stoke up your dev data, bro."
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "faker-stoked"
8
+ spec.version = Faker::Stoked::VERSION
9
+ spec.authors = ["schadenfred"]
10
+ spec.email = ["fred.schoeneman@gmail.com"]
48
11
 
49
- if s.respond_to? :specification_version then
50
- s.specification_version = 4
12
+ spec.summary = %q{Stoke your dev data}
13
+ spec.description = "This is an extension of the faker gem, allowing stoked bros and brodies to effortlessly generate stoked bios, that are both radical and awesome while simultaneously pitted. It also provides a rich, creamy variety of methods to generate bro words."
14
+ spec.homepage = ""
15
+ spec.license = "MIT"
51
16
 
52
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_development_dependency(%q<faker>, ["~> 1.2.0"])
54
- s.add_development_dependency(%q<minitest>, [">= 0"])
55
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
56
- s.add_development_dependency(%q<bundler>, ["~> 1.0"])
57
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
58
- s.add_development_dependency(%q<activesupport>, [">= 0"])
59
- else
60
- s.add_dependency(%q<faker>, ["~> 1.2.0"])
61
- s.add_dependency(%q<minitest>, [">= 0"])
62
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
63
- s.add_dependency(%q<bundler>, ["~> 1.0"])
64
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
65
- s.add_dependency(%q<activesupport>, [">= 0"])
66
- end
67
- else
68
- s.add_dependency(%q<faker>, ["~> 1.2.0"])
69
- s.add_dependency(%q<minitest>, [">= 0"])
70
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
- s.add_dependency(%q<bundler>, ["~> 1.0"])
72
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
73
- s.add_dependency(%q<activesupport>, [">= 0"])
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(test|spec|features)/})
74
22
  end
75
- end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.16"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "minitest", "~> 5.0"
30
+ spec.add_development_dependency "handsome_fencer_test"
76
31
 
32
+
33
+ end
data/lib/faker/bio.rb CHANGED
@@ -1,13 +1,12 @@
1
1
  module Faker
2
+ module Stoked
2
3
 
3
- class Stoked
4
-
5
4
  class << self
6
-
7
- # a stoked bro might might need to write a stoked user profile
5
+
6
+ # A stoked bro might might need to write a stoked user profile:
8
7
  #
9
8
  # Faker::Stoked.bio
10
- # "Brotastic but stokealicious skeleton rider. Love shredding sick pow,
9
+ # "Brotastic but stokealicious skeleton rider. Love shredding sick pow,
11
10
  # brodacious raising money for breast cancer, Gordon Lightfoot.
12
11
  def bio
13
12
  first = adjective.capitalize + " " + intmodifier + " " + adjective + " " + sport + ". "
@@ -16,14 +15,14 @@ module Faker
16
15
  end
17
16
 
18
17
  def intmodifier
19
- [
20
- "but","and","almost","but equally","nearly","at the same time",
18
+ [
19
+ "but","and","almost","but equally","nearly","at the same time",
21
20
  "yet paradoxically","nevertheless","yet oxymoronically","but inevitably"
22
21
  ].sample
23
22
  end
24
23
 
25
24
  def sports
26
- [
25
+ [
27
26
  "figure skater",
28
27
  "speed skater",
29
28
  "short track speed skater",
@@ -60,7 +59,7 @@ module Faker
60
59
  openers.sample
61
60
  end
62
61
 
63
- def strength
62
+ def strength
64
63
  [
65
64
  "hard charging",
66
65
  "forward",
@@ -71,4 +70,4 @@ module Faker
71
70
  end
72
71
  end
73
72
  end
74
- end
73
+ end
@@ -1,9 +1,9 @@
1
1
  module Faker
2
2
 
3
- class Stoked
3
+ module Stoked
4
4
 
5
5
  class << self
6
-
6
+
7
7
  def fullnames
8
8
  [
9
9
  "ryan courvoisier",
@@ -17,13 +17,12 @@ module Faker
17
17
  "Broshad Brosouri",
18
18
  "Suzette Saint-Brobespierre",
19
19
  "Toshibro Sugar",
20
- "Adam Brogianti",
21
20
  "Art Brozak",
22
- "Nandita Bronon",
21
+ "Nandita Bronoun",
23
22
  "Ashley Aristocrunk",
24
23
  "Jennybro Jaynebro",
25
24
  "Brolga Vasserbro",
26
- "Bill Brong",
25
+ "Billy Brong",
27
26
  "Adam Collinsmix",
28
27
  "Parker Stevenson",
29
28
  "Steve AquiNoFear",
@@ -34,7 +33,7 @@ module Faker
34
33
  "Kevin Woodsostokeditsick",
35
34
  "Natalia Pintotallystoked",
36
35
  "Mike McCrunk",
37
- "Nick Brodulik",
36
+ "Brick Brodulik",
38
37
  "Greg Kerzhbro",
39
38
  "Michael Porchbro",
40
39
  "Mya Burrellbro",
@@ -72,7 +71,7 @@ module Faker
72
71
  end
73
72
 
74
73
  # Faker::Stoked.firstname
75
- # "Bronathan"
74
+ # "Bronathan"
76
75
  def firstname
77
76
  firstnames.sample
78
77
  end
@@ -82,7 +81,7 @@ module Faker
82
81
  Faker::Stoked.fullnames.each do |fullname|
83
82
  fullname_array = fullname.split(/[\s,]+/)
84
83
  fullname_array.shift
85
-
84
+
86
85
  unless fullname_array.size == 1
87
86
  @fullname = fullname_array.join(" ")
88
87
  end
@@ -100,12 +99,11 @@ module Faker
100
99
  # "McStallion"
101
100
  def lastname
102
101
  lastnames.sample
103
- end
102
+ end
104
103
 
105
104
  def celebroties
106
105
  [
107
106
 
108
- "AbrOham Lincoln",
109
107
  "abroham lincoln",
110
108
  "adrien brody",
111
109
  "Broba Fett",
@@ -124,7 +122,7 @@ module Faker
124
122
  "Broseidon King of the Brocean",
125
123
  "Bromeo and Juliet",
126
124
  "Brope john paul",
127
- "broprah winfrey",
125
+ "broprah winfrey",
128
126
  "brozilla",
129
127
  "bro dimaggio",
130
128
  "Bro Montana",
@@ -173,15 +171,15 @@ module Faker
173
171
  end
174
172
 
175
173
  # Somewhere a stoked bro might call home
176
- #
174
+ #
177
175
  # Faker::Stoked.place
178
176
  # "stokoslavia"
179
177
  def place
180
178
  places.sample
181
179
  end
182
-
180
+
183
181
  def jobs
184
- [
182
+ [
185
183
  "brorthopedist",
186
184
  "surfing",
187
185
  "broBGYN",
@@ -211,7 +209,7 @@ module Faker
211
209
  "brotanist"
212
210
  ]
213
211
  end
214
-
212
+
215
213
  # Somewhere a stoked bro might do to pay for her brotomobile insurance
216
214
  #
217
215
  # Faker::Stoked.job
@@ -223,7 +221,7 @@ module Faker
223
221
  end
224
222
 
225
223
  def foods
226
- [
224
+ [
227
225
  "brosghetti",
228
226
  "broast chicken breast",
229
227
  "broasted vegetables",
@@ -260,9 +258,9 @@ module Faker
260
258
  def food
261
259
  foods.sample
262
260
  end
263
-
261
+
264
262
  def sayings
265
-
263
+
266
264
  [
267
265
  "bro ho ho",
268
266
  "broyo",
@@ -281,21 +279,18 @@ module Faker
281
279
  def saying
282
280
  sayings.sample
283
281
  end
284
-
282
+
285
283
  def things
286
-
287
- [
284
+
285
+ [
288
286
  "Afbro",
289
287
  "autobrobile",
290
288
  "bee in your bronnet",
291
-
292
-
293
289
  "broactive",
294
290
  "broa constrictor",
295
291
  "brobot",
296
292
  "broca brola",
297
293
  "Brochi brOlympics",
298
- "broceed",
299
294
  "brocycle",
300
295
  "brocodile",
301
296
  "brodeo",
@@ -328,7 +323,7 @@ module Faker
328
323
  "brononamous tip",
329
324
  "Brorannosaurus Rex",
330
325
  "brontosaurus",
331
- "brorontosaurus",
326
+ "brorontosaurus",
332
327
  "brostache",
333
328
  "brotally",
334
329
  "brotanist",
@@ -350,7 +345,7 @@ module Faker
350
345
  ]
351
346
 
352
347
  end
353
-
348
+
354
349
  # something a stoked bro might be intereseted in
355
350
  #
356
351
  # Faker::Stoked.thing
@@ -362,16 +357,16 @@ module Faker
362
357
  def bands
363
358
  [
364
359
  "Miley Cyrus",
365
- "mc-brohammer",
366
- "Robin Thicke",
367
- "MGMT",
368
- "Katy Perry",
369
- "Drake",
370
- "One Direction",
371
- "Tool",
372
- "Warren Zevon",
373
- "Jem",
374
- "Justin Bieber",
360
+ "mc-brohammer",
361
+ "Robin Thicke",
362
+ "MGMT",
363
+ "Katy Perry",
364
+ "Drake",
365
+ "One Direction",
366
+ "Tool",
367
+ "Warren Zevon",
368
+ "Jem",
369
+ "Justin Bieber",
375
370
  "Gordon Lightfoot"
376
371
  ]
377
372
  end
@@ -386,12 +381,12 @@ module Faker
386
381
 
387
382
  def adjectives
388
383
  [
389
- "all-natural",
384
+ "all-natural",
390
385
  "american-made",
391
386
  "awesome",
392
- "cerebral",
387
+ "cerebral",
393
388
  "brohemian",
394
- "brodacious",
389
+ "brodacious",
395
390
  "broficient",
396
391
  "brolicious",
397
392
  "bromazing",
@@ -401,16 +396,16 @@ module Faker
401
396
  "brotesque",
402
397
  "brotastic",
403
398
  "fearless",
404
- "free-spirited",
405
- "radical",
399
+ "free-spirited",
400
+ "radical",
406
401
  "rad",
407
- "stoked",
408
- "stokealicious",
402
+ "stoked",
403
+ "stokealicious",
409
404
  "stokified",
410
405
  "all stoked up"
411
406
  ]
412
407
  end
413
-
408
+
414
409
  # band or musical act a stoked bro might listen to
415
410
  #
416
411
  # Faker::Stoked.band
@@ -422,11 +417,11 @@ module Faker
422
417
  def interests
423
418
  [
424
419
  "defying that which should be defied",
425
- "hamburgers",
420
+ "hamburgers",
426
421
  "painting",
427
422
  "country music",
428
423
  "defying death",
429
- "hamburgers",
424
+ "hamburgers",
430
425
  "kale",
431
426
  "kiteboarding",
432
427
  "techno dancing",
@@ -435,13 +430,13 @@ module Faker
435
430
  "teaching broga",
436
431
  "techno dancing",
437
432
  "raising money for breast cancer",
438
- "shredding sick pow",
433
+ "shredding sick pow",
439
434
  "speedflying",
440
435
  "working with orphans",
441
436
  "world peace"
442
437
  ]
443
438
  end
444
-
439
+
445
440
  # a stoked bro might be interested in
446
441
  #
447
442
  # Faker::Stoked.interest
@@ -450,12 +445,12 @@ module Faker
450
445
  interests.sample
451
446
  end
452
447
 
453
- def strengths
448
+ def strengths
454
449
  [
455
450
  "hard charging","forward","strong","outrageous work ethic","endurance"
456
451
  ]
457
452
  end
458
-
453
+
459
454
  # a stoked bro might describe himself as having a stregh like this
460
455
  #
461
456
  # Faker::Stoked.strength
@@ -465,4 +460,4 @@ module Faker
465
460
  end
466
461
  end
467
462
  end
468
- end
463
+ end
@@ -1,55 +1,56 @@
1
1
  module Faker
2
2
 
3
- class Stoked
3
+ module Stoked
4
4
 
5
5
  class << self
6
6
 
7
7
  def paragraphs(paragraph_count = 3)
8
8
  paragraphs = []
9
- paragraph_count.times do
9
+ paragraph_count.times do
10
+ paragraphs << "\t"
10
11
  paragraphs << paragraph
11
12
  end
12
- paragraphs.join(" ")
13
+ paragraphs.join("\n")
13
14
  end
14
15
 
15
16
  # a stoked developer brodie might want multiple stoked paragraphs for her bros
16
- # and/or brodies, and can pass in the number of paragraphs she would
17
+ # and/or brodies, and can pass in the number of paragraphs she would
17
18
  # like go generate as an argument. Output similar to sentences()
18
19
  #
19
20
  # Faker::StokeBot.paragraphs(2)
20
- # => ""Whoah? the athlete/groupie constructed intuition suffices to account
21
- # for an important distinction in language use. By combining stoke and certain
22
- # reformulations of the dominant extreme paradigm, the appearance of
23
- # non-stoked gaps in domains relatively inaccessible to ordinary
21
+ # => ""Whoah? the athlete/groupie constructed intuition suffices to account
22
+ # for an important distinction in language use. By combining stoke and certain
23
+ # reformulations of the dominant extreme paradigm, the appearance of
24
+ # non-stoked gaps in domains relatively inaccessible to ordinary
24
25
 
25
26
 
26
- def paragraph
27
+ def paragraph
27
28
  sentences(5)
28
29
  end
29
30
 
30
- # a stoked developer bro might multiple stoked sentences for his bros,
31
- # in which case the bro would pass in the number of sentences he would
31
+ # a stoked developer bro might multiple stoked sentences for his bros,
32
+ # in which case the bro would pass in the number of sentences he would
32
33
  # like go generate as an argument. shout out to chomskybot, bro.
33
34
  #
34
35
  # Faker::StokeBot.sentence(8)
35
- # => ""Whoah? the athlete/groupie constructed intuition suffices to account
36
- # for an important distinction in language use. By combining stoke and certain
37
- # reformulations of the dominant extreme paradigm, the appearance of
38
- # non-stoked gaps in domains relatively inaccessible to ordinary
39
- # radicalization raises serious doubts about irrelevant intervening
40
- # contexts in selectional rules. Note that this analysis of a stoked
41
- # construct as a pair of sets of awesome features appears to correlate
42
- # rather closely with the system of base rules exclusive of the bro dialect.
36
+ # => ""Whoah? the athlete/groupie constructed intuition suffices to account
37
+ # for an important distinction in language use. By combining stoke and certain
38
+ # reformulations of the dominant extreme paradigm, the appearance of
39
+ # non-stoked gaps in domains relatively inaccessible to ordinary
40
+ # radicalization raises serious doubts about irrelevant intervening
41
+ # contexts in selectional rules. Note that this analysis of a stoked
42
+ # construct as a pair of sets of awesome features appears to correlate
43
+ # rather closely with the system of base rules exclusive of the bro dialect.
43
44
  # For one thing, the systematic use of complex bro-isms is not subject to
44
- # the strong generative capacity of the theory. To bestow a bodacious structure
45
- # for T(Z,K), the systematic use of complex bro-isms is not to be considered
46
- # in determining a descriptive fact. From C1, it follows that a case of
47
- # semicenteredness of a different sort raises serious doubts about an abstract
48
- # underlying order. So far, the earlier discussion of deviance is, apparently,
45
+ # the strong generative capacity of the theory. To bestow a bodacious structure
46
+ # for T(Z,K), the systematic use of complex bro-isms is not to be considered
47
+ # in determining a descriptive fact. From C1, it follows that a case of
48
+ # semicenteredness of a different sort raises serious doubts about an abstract
49
+ # underlying order. So far, the earlier discussion of deviance is, apparently,
49
50
  # ...
50
51
  def sentences(sentence_count = 3)
51
52
  sentences = []
52
- sentence_count.times do
53
+ sentence_count.times do
53
54
  sentences << sentence
54
55
  end
55
56
  sentences.join(" ")
@@ -58,7 +59,7 @@ module Faker
58
59
  # a stoked developer bro might need a stoked sentence for his bros
59
60
  #
60
61
  # Faker::StokeBot.sentence
61
- # => "Brotastic but stokealicious skeleton rider. Love shredding sick pow,
62
+ # => "Brotastic but stokealicious skeleton rider. Love shredding sick pow,
62
63
  # brodacious raising money for breast cancer, Gordon Lightfoot.
63
64
  def sentence
64
65
  [intro, subject, verb, object].join(" ")
@@ -81,4 +82,4 @@ module Faker
81
82
  # end
82
83
  end
83
84
  end
84
- end
85
+ end