faker-stoked 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +59 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/faker-stoked.gemspec +69 -0
- data/faker_bro.rb +81 -0
- data/faker_review.rb +116 -0
- data/lib/faker/stoked.rb +1 -0
- data/lib/faker-stoked.rb +0 -0
- data/lib/faker_bro.rb +81 -0
- data/lib/faker_dea.rb +26 -0
- data/lib/medical.rb +1 -0
- data/lib/stoked.rb +1 -0
- data/test/helper.rb +20 -0
- data/test/test_faker-stoked.rb +8 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 011c600218110067e11c10ecc4febab30b617367
|
4
|
+
data.tar.gz: 725a2f3aee04972467f9d4607516a4e11d1e68fd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a8029b1a52ffebcd4f4baf881cf5b2d2420a50fb117efe74556de1428e822b077866a4bbc5599279af9416eeaa8f250445dbbe970989b9cbdc7b913759a4db4e
|
7
|
+
data.tar.gz: ac9cfecbb1d99baa92bc93c521ed5a652e35205dad643ba0a681587c02eb2e030db2976f232a5607c83ebd9eea27ff10e122c80c4d2bd8654001896766f9dba1
|
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
|
10
|
+
gem "faker", "~>1.2.0"
|
11
|
+
gem "minitest", ">= 0"
|
12
|
+
gem "rdoc", "~> 3.12"
|
13
|
+
gem "bundler", "~> 1.0"
|
14
|
+
gem "jeweler", "~> 1.8.7"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
faker (1.2.0)
|
7
|
+
i18n (~> 0.5)
|
8
|
+
faraday (0.8.8)
|
9
|
+
multipart-post (~> 1.2.0)
|
10
|
+
git (1.2.6)
|
11
|
+
github_api (0.10.1)
|
12
|
+
addressable
|
13
|
+
faraday (~> 0.8.1)
|
14
|
+
hashie (>= 1.2)
|
15
|
+
multi_json (~> 1.4)
|
16
|
+
nokogiri (~> 1.5.2)
|
17
|
+
oauth2
|
18
|
+
hashie (2.0.5)
|
19
|
+
highline (1.6.19)
|
20
|
+
httpauth (0.2.0)
|
21
|
+
i18n (0.6.5)
|
22
|
+
jeweler (1.8.8)
|
23
|
+
builder
|
24
|
+
bundler (~> 1.0)
|
25
|
+
git (>= 1.2.5)
|
26
|
+
github_api (= 0.10.1)
|
27
|
+
highline (>= 1.6.15)
|
28
|
+
nokogiri (= 1.5.10)
|
29
|
+
rake
|
30
|
+
rdoc
|
31
|
+
json (1.8.0)
|
32
|
+
jwt (0.1.8)
|
33
|
+
multi_json (>= 1.5)
|
34
|
+
minitest (5.0.8)
|
35
|
+
multi_json (1.8.2)
|
36
|
+
multi_xml (0.5.5)
|
37
|
+
multipart-post (1.2.0)
|
38
|
+
nokogiri (1.5.10)
|
39
|
+
oauth2 (0.9.2)
|
40
|
+
faraday (~> 0.8)
|
41
|
+
httpauth (~> 0.2)
|
42
|
+
jwt (~> 0.1.4)
|
43
|
+
multi_json (~> 1.0)
|
44
|
+
multi_xml (~> 0.5)
|
45
|
+
rack (~> 1.2)
|
46
|
+
rack (1.5.2)
|
47
|
+
rake (10.1.0)
|
48
|
+
rdoc (3.12.2)
|
49
|
+
json (~> 1.4)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
bundler (~> 1.0)
|
56
|
+
faker (~> 1.2.0)
|
57
|
+
jeweler (~> 1.8.7)
|
58
|
+
minitest
|
59
|
+
rdoc (~> 3.12)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Frederick D. Schoeneman
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= faker-stoked
|
2
|
+
|
3
|
+
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.
|
4
|
+
|
5
|
+
== Contributing to faker-stoked
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2013 Frederick D. Schoeneman. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "faker-stoked"
|
18
|
+
gem.homepage = "http://github.com/fdschoeneman/faker-stoked"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Stoke up your dev data, bro.}
|
21
|
+
gem.description = %Q{This is an extension of the faker gem, allowing stoked
|
22
|
+
bros and bro-ladies to effortlessly generate stoked bios, that are both
|
23
|
+
radical and awesome while simultaneously pitted.}
|
24
|
+
gem.email = "fred.schoeneman@gmail.com"
|
25
|
+
gem.authors = ["Frederick D. Schoeneman"]
|
26
|
+
# dependencies defined in Gemfile
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
require 'rake/testtask'
|
31
|
+
Rake::TestTask.new(:test) do |test|
|
32
|
+
test.libs << 'lib' << 'test'
|
33
|
+
test.pattern = 'test/**/test_*.rb'
|
34
|
+
test.verbose = true
|
35
|
+
end
|
36
|
+
|
37
|
+
task :default => :test
|
38
|
+
|
39
|
+
require 'rdoc/task'
|
40
|
+
Rake::RDocTask.new do |rdoc|
|
41
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
42
|
+
|
43
|
+
rdoc.rdoc_dir = 'rdoc'
|
44
|
+
rdoc.title = "faker-stoked #{version}"
|
45
|
+
rdoc.rdoc_files.include('README*')
|
46
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
47
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,69 @@
|
|
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
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "faker-stoked"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Frederick D. Schoeneman"]
|
12
|
+
s.date = "2013-10-15"
|
13
|
+
s.description = "This is an extension of the faker gem, allowing stoked \n bros and bro-ladies to effortlessly generate stoked bios, that are both \n radical and awesome while simultaneously pitted."
|
14
|
+
s.email = "fred.schoeneman@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"faker-stoked.gemspec",
|
28
|
+
"faker_bro.rb",
|
29
|
+
"faker_review.rb",
|
30
|
+
"lib/faker-stoked.rb",
|
31
|
+
"lib/faker/stoked.rb",
|
32
|
+
"lib/faker_bro.rb",
|
33
|
+
"lib/faker_dea.rb",
|
34
|
+
"lib/medical.rb",
|
35
|
+
"lib/stoked.rb",
|
36
|
+
"test/helper.rb",
|
37
|
+
"test/test_faker-stoked.rb"
|
38
|
+
]
|
39
|
+
s.homepage = "http://github.com/fdschoeneman/faker-stoked"
|
40
|
+
s.licenses = ["MIT"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = "2.0.3"
|
43
|
+
s.summary = "Stoke up your dev data, bro."
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
s.specification_version = 4
|
47
|
+
|
48
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
+
s.add_development_dependency(%q<faker>, ["~> 1.2.0"])
|
50
|
+
s.add_development_dependency(%q<minitest>, [">= 0"])
|
51
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
52
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<faker>, ["~> 1.2.0"])
|
56
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
57
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
58
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
59
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
60
|
+
end
|
61
|
+
else
|
62
|
+
s.add_dependency(%q<faker>, ["~> 1.2.0"])
|
63
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
64
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
data/faker_bro.rb
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
module Faker
|
2
|
+
|
3
|
+
class Stoked
|
4
|
+
|
5
|
+
class << self
|
6
|
+
|
7
|
+
def olympic_event
|
8
|
+
["Shredding sick pow"].sample
|
9
|
+
end
|
10
|
+
|
11
|
+
def camera_mount
|
12
|
+
["head strap", "chesty", "junior chesty", "jaws", "suction cup", "roll bar"].sample
|
13
|
+
end
|
14
|
+
|
15
|
+
def olympian_country
|
16
|
+
%w[Canada US Russia Japan China Australia Norway Austria Finland Sweden Germany Poland Belarus].sample
|
17
|
+
end
|
18
|
+
|
19
|
+
def olympian_music
|
20
|
+
[
|
21
|
+
"Miley Cyrus", "Robin Thicke", "MGMT", "Katy Perry", "Drake",
|
22
|
+
"One Direction", "Gordon Lightfoot"
|
23
|
+
].sample
|
24
|
+
end
|
25
|
+
|
26
|
+
def olympian_home_region
|
27
|
+
|
28
|
+
["Whistler", "Lake Tahoe", "Sarajevo", "Nepal", "Lake Placid","Alps","Bavaria","Grand Tetons"]
|
29
|
+
end
|
30
|
+
|
31
|
+
def bio
|
32
|
+
first = adj.capitalize + " " + intmodifier + " " + adj + " " + "snowboarder" + ". "
|
33
|
+
second = adverb.capitalize + " " + olympian_hobby + ", " + adj + " " + olympian_hobby + ", " + strength + "."
|
34
|
+
first + second
|
35
|
+
end
|
36
|
+
|
37
|
+
def adj
|
38
|
+
%w[ awesome radical rad bodacious free-spirited cerebral all-natural american-made
|
39
|
+
stoked stokealicious stokified stokastic fearless
|
40
|
+
].sample
|
41
|
+
end
|
42
|
+
|
43
|
+
def intmodifier
|
44
|
+
[
|
45
|
+
"but","and","almost","but equally","nearly","at the same time",
|
46
|
+
"yet paradoxically","nevertheless","yet oxymoronically","but inevitably"
|
47
|
+
].sample
|
48
|
+
end
|
49
|
+
|
50
|
+
def olympic_sport
|
51
|
+
[
|
52
|
+
"figure skater","speed skater","short track speed skater","ice hockey player",
|
53
|
+
"curler",
|
54
|
+
"cross-country skier","nordic skier","alpine racer",
|
55
|
+
"ski jumper","freestyle skier","snowboarder","biathlete","Luger","bobsleigher",
|
56
|
+
"skeleton rider"
|
57
|
+
].sample
|
58
|
+
end
|
59
|
+
|
60
|
+
def adverb
|
61
|
+
[
|
62
|
+
"loves","amazed by","stoked for","Spends free time"
|
63
|
+
].sample
|
64
|
+
end
|
65
|
+
|
66
|
+
def olympian_hobby
|
67
|
+
[
|
68
|
+
"hamburgers", "world peace","techno dancing","my mom","teachers","painting",
|
69
|
+
"Miley Cyrus","GoPro","country music","defying death",
|
70
|
+
"defying that which should be defied","work with orphans","raising money for cancer"
|
71
|
+
].sample
|
72
|
+
end
|
73
|
+
|
74
|
+
def strength
|
75
|
+
[
|
76
|
+
"hard charging","forward","strong","outrageous work ethic","endurance"
|
77
|
+
].sample
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
data/faker_review.rb
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
module Faker
|
2
|
+
|
3
|
+
class Boontling
|
4
|
+
|
5
|
+
class << self
|
6
|
+
|
7
|
+
def review
|
8
|
+
first = intro + " " + intmodifier + " " + adjective + " " + varietal + ". "
|
9
|
+
second = adverb + " " + flavor + ", " + adjective + " " + flavor + ", " + strength + " " + flavor
|
10
|
+
third = ". Drink now through " + end_date + "."
|
11
|
+
first + second + third
|
12
|
+
end
|
13
|
+
|
14
|
+
def intro
|
15
|
+
[
|
16
|
+
"Remarkable","Francophonic","Juicy","Desperate","Serviceable","Generous","Glassy",
|
17
|
+
"Blunt","Sturdy","Elegant","Lean","Spare","Simple","Self-righteous",
|
18
|
+
"Chewy","Powerful","Soft","Ripe in flavor","Ready to drink","Well focused",
|
19
|
+
"Medium-weight","Heavy-weight", "Light-weight","Austere",
|
20
|
+
"Light, simple","Modest","Markedly improved",
|
21
|
+
"Nearly matured","Almost matured","Somewhat matured","Overaged",
|
22
|
+
"Finely balanced","A firm, full textured",
|
23
|
+
"Fully refined","Unnatural","Historic","Classic","Crisp",
|
24
|
+
"Neo-classic","Modern","Overdone",
|
25
|
+
"Meaty","Unrefined","Direct","Deep and smokey",
|
26
|
+
"Dark and mysterious","Good","Evil","Impressive","Unimpressive",
|
27
|
+
"Big and strong","Wicked","Raw","Wimpy","Overdressed","Sweet","Rude",
|
28
|
+
"Creepy","Open-ended","Rounded","Corpulent","Overbearing","Twisted","Clean",
|
29
|
+
"Fun","Intense","Egocentric","Intelligently done","Unstinting","Flourished"
|
30
|
+
].sample
|
31
|
+
end
|
32
|
+
|
33
|
+
def intmodifier
|
34
|
+
[
|
35
|
+
"but","and","almost","but equally","nearly","at the same time",
|
36
|
+
"yet paradoxically","nevertheless","yet oxymoronically","but inevitably"
|
37
|
+
].sample
|
38
|
+
end
|
39
|
+
|
40
|
+
def varietal
|
41
|
+
[
|
42
|
+
"white","Barbera","Cabernet Franc","Cabernet","Gamay","Merlot","Syrah",
|
43
|
+
"Pinot Noir","Zinfandel","Chardonnay","Chenin Blanc",
|
44
|
+
"Gewurztraminer","Marsanne","Pinot Gris","Viognier","Sauvingnon Blanc",
|
45
|
+
"Semillon","Port","Dessert wine","Edelzwicker","Eiswein","Sticky","Sauterne"
|
46
|
+
].sample
|
47
|
+
end
|
48
|
+
|
49
|
+
def adjective
|
50
|
+
[
|
51
|
+
"sassy","desperate","romantic","sad","hopeless","intense","focused",
|
52
|
+
"meandering","melancholy","putrid","yellowed","degraded","acidic monster",
|
53
|
+
"graceful","open-ended","freakishly evil","plump","spiney", "brackish","ripe",
|
54
|
+
"closed","supple","broad-shouldered","big and plump","attractive",
|
55
|
+
"complex and stunning","sturdy","elegant","structured","hedonistic",
|
56
|
+
"aggressive","limp","lacking in character","morally superior","over-ripe",
|
57
|
+
"middle-aged","unripe","overdone","sweet","smoked","lackluster","hoppy",
|
58
|
+
"acidic","turgid","understated","fleshy","extra-ripe","zelous",
|
59
|
+
"underdone","oaky","over-oaked","american-oaked","french-oaked","musty",
|
60
|
+
"soggy","fat","wicked","whimsical","oily","astounding","corpulent",
|
61
|
+
"cotton","boggling","unripe","overcooked","sugary","over-the-top"
|
62
|
+
].sample
|
63
|
+
end
|
64
|
+
|
65
|
+
def adverb
|
66
|
+
[
|
67
|
+
"Contains","Shows","Detectable","Hints of","Forces","A mouthfull of",
|
68
|
+
"Strong","Spews","Resembles","Aromas of","Whispers of","Drops",
|
69
|
+
"Essenses of","Kicks you with","Throws out","Hits you with","Displays",
|
70
|
+
"Opens with","Reminecent of","Attacks with","Begins with","Starts with",
|
71
|
+
"Forcefully bites you with","Reminds one of","Evokes"
|
72
|
+
].sample
|
73
|
+
end
|
74
|
+
|
75
|
+
def flavor
|
76
|
+
[
|
77
|
+
"roast pork","apple","pear","peach-pit","anise","leather","used beer",
|
78
|
+
"blackberry","black-cherry","lemon","citrus","citron","toasty oak",
|
79
|
+
"cardboard","salted beef","beef","rosemary lamb","cafeteria fish sticks",
|
80
|
+
"gatorade but not in a bad way","prison oatmeal","guvmint cheese",
|
81
|
+
"ginger","tobacco","cigar box","fruit punch","acid","blueberry","mint",
|
82
|
+
"spice","currant","cedar","loganberry","coffee","herbs","dirt","cassis",
|
83
|
+
"earth","lime","raspberry","plum","toast","rye","tea notes","green tea",
|
84
|
+
"sun-dried tomato","caramel","dried berry","vanilla","bing-cherry","herbs",
|
85
|
+
"juniper","sage","wild berry","orange peel","lemon rind","banana","mocha",
|
86
|
+
"smoked bacon","clay","thyme","pepper","salt","buttered scones","onion",
|
87
|
+
"shallot","fois gras","kalamata olive","celery","fig","bacon-wrapped fig",
|
88
|
+
"pineapple","salad","taint","boot-leather","victory","napalm","bug spray",
|
89
|
+
"tomato","papaya","mango","chutney","mint julip","bourbon","marmalade",
|
90
|
+
"strawberry jam","barley","carrot","roasted vegetables","roasted meat",
|
91
|
+
"prune","prune juice","stewed prune","raisin","seedless watermelon",
|
92
|
+
"tangerine","peach","nectarine","honey","garlic","melon","cocoa",
|
93
|
+
"maple syrup","spruce","sweat","dog-breath","cat breath","carburetor cleaner",
|
94
|
+
"WD-40", "10w-30 Motor oil","lollipop","new car smell","talcum"
|
95
|
+
].sample
|
96
|
+
end
|
97
|
+
|
98
|
+
def strength
|
99
|
+
[
|
100
|
+
"lingering","forward","strong","weak","bashful","corpulent","insipid","banal",
|
101
|
+
"light","aggressive","hopeful","semi-weak","traces of","forceful",
|
102
|
+
"total absence of","perceptable","dainty","strong-willed","atomic traces of",
|
103
|
+
"scant","a modicum of"
|
104
|
+
].sample
|
105
|
+
end
|
106
|
+
|
107
|
+
def end_date
|
108
|
+
[
|
109
|
+
"2014","2015","2016","2017","2018","2019","2020","2021","2022",
|
110
|
+
"eternity","never","April","May","June","graduation",
|
111
|
+
"Christmas","Tuesday","Friday"
|
112
|
+
].sample
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
data/lib/faker/stoked.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'faker_bro'
|
data/lib/faker-stoked.rb
ADDED
File without changes
|
data/lib/faker_bro.rb
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
module Faker
|
2
|
+
|
3
|
+
class Stoked
|
4
|
+
|
5
|
+
class << self
|
6
|
+
|
7
|
+
def olympic_event
|
8
|
+
["Shredding sick pow"].sample
|
9
|
+
end
|
10
|
+
|
11
|
+
def camera_mount
|
12
|
+
["head strap", "chesty", "junior chesty", "jaws", "suction cup", "roll bar"].sample
|
13
|
+
end
|
14
|
+
|
15
|
+
def olympian_country
|
16
|
+
%w[Canada US Russia Japan China Australia Norway Austria Finland Sweden Germany Poland Belarus].sample
|
17
|
+
end
|
18
|
+
|
19
|
+
def olympian_music
|
20
|
+
[
|
21
|
+
"Miley Cyrus", "Robin Thicke", "MGMT", "Katy Perry", "Drake",
|
22
|
+
"One Direction", "Gordon Lightfoot"
|
23
|
+
].sample
|
24
|
+
end
|
25
|
+
|
26
|
+
def olympian_home_region
|
27
|
+
|
28
|
+
["Whistler", "Lake Tahoe", "Sarajevo", "Nepal", "Lake Placid","Alps","Bavaria","Grand Tetons"]
|
29
|
+
end
|
30
|
+
|
31
|
+
def bio
|
32
|
+
first = adj.capitalize + " " + intmodifier + " " + adj + " " + "snowboarder" + ". "
|
33
|
+
second = adverb.capitalize + " " + olympian_hobby + ", " + adj + " " + olympian_hobby + ", " + strength + "."
|
34
|
+
first + second
|
35
|
+
end
|
36
|
+
|
37
|
+
def adj
|
38
|
+
%w[ awesome radical rad bodacious free-spirited cerebral all-natural american-made
|
39
|
+
stoked stokealicious stokified stokastic fearless
|
40
|
+
].sample
|
41
|
+
end
|
42
|
+
|
43
|
+
def intmodifier
|
44
|
+
[
|
45
|
+
"but","and","almost","but equally","nearly","at the same time",
|
46
|
+
"yet paradoxically","nevertheless","yet oxymoronically","but inevitably"
|
47
|
+
].sample
|
48
|
+
end
|
49
|
+
|
50
|
+
def olympic_sport
|
51
|
+
[
|
52
|
+
"figure skater","speed skater","short track speed skater","ice hockey player",
|
53
|
+
"curler",
|
54
|
+
"cross-country skier","nordic skier","alpine racer",
|
55
|
+
"ski jumper","freestyle skier","snowboarder","biathlete","Luger","bobsleigher",
|
56
|
+
"skeleton rider"
|
57
|
+
].sample
|
58
|
+
end
|
59
|
+
|
60
|
+
def adverb
|
61
|
+
[
|
62
|
+
"loves","amazed by","stoked for","Spends free time"
|
63
|
+
].sample
|
64
|
+
end
|
65
|
+
|
66
|
+
def olympian_hobby
|
67
|
+
[
|
68
|
+
"hamburgers", "world peace","techno dancing","my mom","teachers","painting",
|
69
|
+
"Miley Cyrus","GoPro","country music","defying death",
|
70
|
+
"defying that which should be defied","work with orphans","raising money for cancer"
|
71
|
+
].sample
|
72
|
+
end
|
73
|
+
|
74
|
+
def strength
|
75
|
+
[
|
76
|
+
"hard charging","forward","strong","outrageous work ethic","endurance"
|
77
|
+
].sample
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
data/lib/faker_dea.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Faker
|
2
|
+
class Dea
|
3
|
+
class << self
|
4
|
+
def dea(type="A",last_name="Smith")
|
5
|
+
prefix = type + last_name.split("")[0]
|
6
|
+
suffix = Faker::Base.numerify('######')
|
7
|
+
prefix + suffix + check_digit(suffix)
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
def check_digit(dea_suffix_number)
|
12
|
+
n_array = dea_suffix_number.split("")
|
13
|
+
first_number = n_array[0].to_i + n_array[2].to_i + n_array[4].to_i
|
14
|
+
#puts first_number
|
15
|
+
sec_number = n_array[1].to_i + n_array[3].to_i + n_array[5].to_i
|
16
|
+
sec_number = sec_number * 2
|
17
|
+
#puts sec_number
|
18
|
+
check_digit = first_number + sec_number
|
19
|
+
#puts check_digit
|
20
|
+
check_digit.to_s.split("").last
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
data/lib/medical.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'faker_dea'
|
data/lib/stoked.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'faker_bro'
|
data/test/helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'minitest/unit'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
15
|
+
require 'faker-stoked'
|
16
|
+
|
17
|
+
class MiniTest::Unit::TestCase
|
18
|
+
end
|
19
|
+
|
20
|
+
MiniTest::Unit.autorun
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: faker-stoked
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Frederick D. Schoeneman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faker
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.12'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jeweler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.8.7
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.8.7
|
83
|
+
description: "This is an extension of the faker gem, allowing stoked \n bros and
|
84
|
+
bro-ladies to effortlessly generate stoked bios, that are both \n radical and
|
85
|
+
awesome while simultaneously pitted."
|
86
|
+
email: fred.schoeneman@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files:
|
90
|
+
- LICENSE.txt
|
91
|
+
- README.rdoc
|
92
|
+
files:
|
93
|
+
- .document
|
94
|
+
- Gemfile
|
95
|
+
- Gemfile.lock
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.rdoc
|
98
|
+
- Rakefile
|
99
|
+
- VERSION
|
100
|
+
- faker-stoked.gemspec
|
101
|
+
- faker_bro.rb
|
102
|
+
- faker_review.rb
|
103
|
+
- lib/faker-stoked.rb
|
104
|
+
- lib/faker/stoked.rb
|
105
|
+
- lib/faker_bro.rb
|
106
|
+
- lib/faker_dea.rb
|
107
|
+
- lib/medical.rb
|
108
|
+
- lib/stoked.rb
|
109
|
+
- test/helper.rb
|
110
|
+
- test/test_faker-stoked.rb
|
111
|
+
homepage: http://github.com/fdschoeneman/faker-stoked
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata: {}
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
requirements: []
|
130
|
+
rubyforge_project:
|
131
|
+
rubygems_version: 2.0.3
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: Stoke up your dev data, bro.
|
135
|
+
test_files: []
|