dbcfaker 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/dbcfaker-0.1.0.gem +0 -0
- data/dbcfaker-0.1.1.gem +0 -0
- data/dbcfaker-bak.gemspec +21 -0
- data/dbcfaker.gemspec +2 -1
- data/lib/dbcfaker.rb +2 -0
- data/lib/faker/cohort.rb +15 -3
- data/lib/faker/cohort_data.rb +272 -1
- data/lib/faker/quote.rb +38 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993adb1e91bb418d44b812c6ad97de991d8c01e7
|
4
|
+
data.tar.gz: 9d6f051c07ba80cac2611dc27451396f98839e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8238cc32567bc4771104d03047c31f2e0d6713429a008ae1eef85c58c3c331db3987ef3b951d48572a72908ad198a165fd7ec7458bdb1f38c92c1860af5e8b1
|
7
|
+
data.tar.gz: c3629bc0d2cbe0899544c921acaafb795565911731fc696848d7e5eb0493774a9f23bf28b82e14b449b7814154b2cca3d4e044b8b56f7b35a1a47c6d138dedb4
|
data/README.md
CHANGED
@@ -33,10 +33,13 @@ DbcFaker::Name.last_name #=> "Caroline"
|
|
33
33
|
|
34
34
|
```ruby
|
35
35
|
# Actual current and previous cohorts
|
36
|
-
DbcFaker::Cohort.
|
36
|
+
DbcFaker::Cohort.name #=> "Fiddle Crabs"
|
37
37
|
|
38
38
|
# Random and potentially funny cohort name
|
39
|
-
DbcFaker::Cohort.bs #=> "
|
39
|
+
DbcFaker::Cohort.bs #=> "Alliterative Amazing Aardvarks"
|
40
|
+
|
41
|
+
# Optional arguments for adjectives in ::Cohort.bs (default is 2)
|
42
|
+
DbcFaker::Cohort.bs(3) #=> "Blue Blissful Bogus Bumblebees"
|
40
43
|
|
41
44
|
```
|
42
45
|
|
@@ -46,9 +49,6 @@ DbcFaker::Cohort.bs #=> "Cuddly Ibex"
|
|
46
49
|
```ruby
|
47
50
|
# Actual quotes. #bs quotes are real too! :)
|
48
51
|
|
49
|
-
DbcFaker::Quote.
|
50
|
-
|
51
|
-
# Random and potentially funny cohort name
|
52
|
-
DbcFaker::Quote.bs #=> "Nap room is for napping" or "Sudocode!"
|
52
|
+
DbcFaker::Quote.quote #=> "confusion is the feeling that comes before understanding."
|
53
53
|
|
54
54
|
```
|
data/dbcfaker-0.1.0.gem
ADDED
Binary file
|
data/dbcfaker-0.1.1.gem
ADDED
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'dbcfaker'
|
7
|
+
s.version = '0.1.0'
|
8
|
+
s.date = '2015-02-20'
|
9
|
+
s.summary = "dbcfaker!"
|
10
|
+
s.description = "A DBC twist on the Faker gem"
|
11
|
+
s.authors = ["Sam Sedighian", "Rebecca Holzschuh", "Jonathan Berk", "Jeremy Gagon"]
|
12
|
+
s.files = ["lib/dbcfaker.rb"]
|
13
|
+
s.homepage =
|
14
|
+
'https://github.com/Sedighian/dbcfaker'
|
15
|
+
s.license = 'MIT'
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split($/)
|
18
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
end
|
data/dbcfaker.gemspec
CHANGED
@@ -4,11 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'dbcfaker'
|
7
|
-
s.version = '0.1.
|
7
|
+
s.version = '0.1.2'
|
8
8
|
s.date = '2015-02-20'
|
9
9
|
s.summary = "dbcfaker!"
|
10
10
|
s.description = "A DBC twist on the Faker gem"
|
11
11
|
s.authors = ["Sam Sedighian", "Rebecca Holzschuh", "Jonathan Berk", "Jeremy Gagon"]
|
12
|
+
s.email = ["samansb@gmail.com", "rebeccaholzschuh@gmail.com", "jergagon1@gmail.com", "jdsberk@gmail.com"]
|
12
13
|
s.files = ["lib/dbcfaker.rb"]
|
13
14
|
s.homepage =
|
14
15
|
'https://github.com/Sedighian/dbcfaker'
|
data/lib/dbcfaker.rb
CHANGED
data/lib/faker/cohort.rb
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
require_relative 'cohort_data.rb'
|
2
2
|
|
3
|
-
|
4
|
-
module DBCFAKER
|
3
|
+
module DbcFaker
|
5
4
|
class Cohort
|
6
|
-
|
7
5
|
def self.name
|
8
6
|
COHORTS.sample
|
9
7
|
end
|
10
8
|
|
9
|
+
def self.bs(num_of_adjectives = 2)
|
10
|
+
selected_animal = ALL_ANIMALS.sample
|
11
|
+
selected_letter_sym = selected_animal[0].downcase.to_sym
|
12
|
+
selected_adjectives = ALL_ADJECTIVES[selected_letter_sym]
|
13
|
+
selected_adjectives = selected_adjectives.shuffle.pop(num_of_adjectives)
|
14
|
+
selected_adjectives_string = selected_adjectives.map!{|word| word.capitalize}.join(' ')
|
15
|
+
cohort_name = "#{selected_adjectives_string} #{selected_animal}s"
|
16
|
+
end
|
11
17
|
end
|
12
18
|
end
|
19
|
+
|
20
|
+
########### DTC #############
|
21
|
+
|
22
|
+
# p DbcFaker::Cohort.name
|
23
|
+
# p DbcFaker::Cohort.bs()
|
24
|
+
|
data/lib/faker/cohort_data.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
|
2
|
+
|
1
3
|
COHORTS = [
|
2
4
|
"Fiddler Crabs",
|
3
5
|
"Squirrels",
|
@@ -48,7 +50,274 @@ COHORTS = [
|
|
48
50
|
|
49
51
|
##### ANIMALS #####
|
50
52
|
|
51
|
-
|
53
|
+
A_ANIMALS = %w[
|
54
|
+
Aardvark
|
55
|
+
Albatross
|
56
|
+
Alligator
|
57
|
+
Alpaca
|
58
|
+
Ant
|
59
|
+
Anteater
|
60
|
+
Antelope
|
61
|
+
Ape
|
62
|
+
Armadillo]
|
63
|
+
|
64
|
+
B_ANIMALS = %w[
|
65
|
+
Baboon
|
66
|
+
Badger
|
67
|
+
Barracuda
|
68
|
+
Bat
|
69
|
+
Bear
|
70
|
+
Beaver
|
71
|
+
Bee
|
72
|
+
Bison
|
73
|
+
Bluejay
|
74
|
+
Boar
|
75
|
+
Buffalo
|
76
|
+
Butterfly]
|
77
|
+
C_ANIMALS = %w[
|
78
|
+
Camel
|
79
|
+
Capybara
|
80
|
+
Caribou
|
81
|
+
Cassowary
|
82
|
+
Cat
|
83
|
+
Caterpillar
|
84
|
+
Cattl
|
85
|
+
Chamois
|
86
|
+
Cheetah
|
87
|
+
Chicken
|
88
|
+
Chimpanzee
|
89
|
+
Chinchilla
|
90
|
+
Chough
|
91
|
+
Clam
|
92
|
+
Cobra
|
93
|
+
Cockroach
|
94
|
+
Cod
|
95
|
+
Cormorant
|
96
|
+
Coyote
|
97
|
+
Crab
|
98
|
+
Crane
|
99
|
+
Crocodile
|
100
|
+
Crow
|
101
|
+
Curlew]
|
102
|
+
|
103
|
+
D_ANIMALS = %w[
|
104
|
+
Deer
|
105
|
+
Dinosaur
|
106
|
+
Dog
|
107
|
+
Dogfish
|
108
|
+
Dolphin
|
109
|
+
Donkey
|
110
|
+
Dotterel
|
111
|
+
Dove
|
112
|
+
Dragonfly
|
113
|
+
Duck
|
114
|
+
Dugong
|
115
|
+
Dunlin]
|
116
|
+
E_ANIMALS = %w[
|
117
|
+
Eagle
|
118
|
+
Echidna
|
119
|
+
Eel
|
120
|
+
Eland
|
121
|
+
Elephant
|
122
|
+
Elephant seal
|
123
|
+
Elk
|
124
|
+
Emu]
|
125
|
+
F_ANIMALS = %w[
|
126
|
+
Falcon
|
127
|
+
Ferret
|
128
|
+
Finch
|
129
|
+
Fish
|
130
|
+
Flamingo
|
131
|
+
Fly
|
132
|
+
Fox
|
133
|
+
Frog]
|
134
|
+
G_ANIMALS = %w[
|
135
|
+
Gaur
|
136
|
+
Gazelle
|
137
|
+
Gerbil
|
138
|
+
Giant Panda
|
139
|
+
Giraffe
|
140
|
+
Gnat
|
141
|
+
Gnu
|
142
|
+
Goat
|
143
|
+
Goose
|
144
|
+
Goldfinch
|
145
|
+
Goldfish
|
146
|
+
Gorilla
|
147
|
+
Goshawk
|
148
|
+
Grasshopper
|
149
|
+
Grouse
|
150
|
+
Guanaco
|
151
|
+
Guinea fowl
|
152
|
+
Guinea pig
|
153
|
+
Gull]
|
154
|
+
H_ANIMALS = %w[
|
155
|
+
Hamster
|
156
|
+
Hare
|
157
|
+
Hawk
|
158
|
+
Hedgehog
|
159
|
+
Heron
|
160
|
+
Herring
|
161
|
+
Hippopotamus
|
162
|
+
Hornet
|
163
|
+
Horse
|
164
|
+
Human
|
165
|
+
Hummingbird
|
166
|
+
Hyena]
|
167
|
+
I_ANIMALS = %w[
|
168
|
+
Ibex
|
169
|
+
Ibis]
|
170
|
+
J_ANIMALS = %w[
|
171
|
+
Jackal
|
172
|
+
Jaguar
|
173
|
+
Jellyfish]
|
174
|
+
K_ANIMALS = %w[
|
175
|
+
Kangaroo
|
176
|
+
Kingfisher
|
177
|
+
Koala
|
178
|
+
Komodo dragon
|
179
|
+
Kookabura
|
180
|
+
Kouprey
|
181
|
+
Kudu]
|
182
|
+
L_ANIMALS = %w[
|
183
|
+
Lapwing
|
184
|
+
Lark
|
185
|
+
Lemur
|
186
|
+
Leopard
|
187
|
+
Lion
|
188
|
+
Llama
|
189
|
+
Lobster
|
190
|
+
Locust
|
191
|
+
Loris
|
192
|
+
Louse
|
193
|
+
Lyrebird]
|
194
|
+
M_ANIMALS = %w[
|
195
|
+
Magpie
|
196
|
+
Mallard
|
197
|
+
Manatee
|
198
|
+
Mandrill
|
199
|
+
Mantis
|
200
|
+
Marten
|
201
|
+
Meerkat
|
202
|
+
Mink
|
203
|
+
Mole
|
204
|
+
Mongoose
|
205
|
+
Monkey
|
206
|
+
Moose
|
207
|
+
Mouse
|
208
|
+
Mosquito
|
209
|
+
Mule]
|
210
|
+
N_ANIMALS = %w[
|
211
|
+
Narwhal
|
212
|
+
Newt
|
213
|
+
Nightingale]
|
214
|
+
O_ANIMALS = %w[
|
215
|
+
Octopus
|
216
|
+
Okapi
|
217
|
+
Opossum
|
218
|
+
Oryx
|
219
|
+
Ostrich
|
220
|
+
Otter
|
221
|
+
Owl
|
222
|
+
Oyster]
|
223
|
+
P_ANIMALS = %w[
|
224
|
+
Panther
|
225
|
+
Parrot
|
226
|
+
Panda
|
227
|
+
Partridge
|
228
|
+
Peafowl
|
229
|
+
Pelican
|
230
|
+
Penguin
|
231
|
+
Pheasant
|
232
|
+
Pig
|
233
|
+
Pigeon
|
234
|
+
Polar Bear
|
235
|
+
Pony
|
236
|
+
Porcupine
|
237
|
+
Porpoise
|
238
|
+
Prairie Dog]
|
239
|
+
Q_ANIMALS = %w[
|
240
|
+
Quail
|
241
|
+
Quelea
|
242
|
+
Quetzal]
|
243
|
+
R_ANIMALS = %w[
|
244
|
+
Rabbit
|
245
|
+
Raccoon
|
246
|
+
Rail
|
247
|
+
Ram
|
248
|
+
Rat
|
249
|
+
Raven
|
250
|
+
Red deer
|
251
|
+
Red panda
|
252
|
+
Reindeer
|
253
|
+
Rhinoceros
|
254
|
+
Rook]
|
255
|
+
S_ANIMALS = %w[
|
256
|
+
Salamander
|
257
|
+
Salmon
|
258
|
+
Sand Dollar
|
259
|
+
Sandpiper
|
260
|
+
Sardine
|
261
|
+
Scorpion
|
262
|
+
Sea lion
|
263
|
+
Sea Urchin
|
264
|
+
Seahorse
|
265
|
+
Seal
|
266
|
+
Shark
|
267
|
+
Sheep
|
268
|
+
Shrew
|
269
|
+
Skunk
|
270
|
+
Snail
|
271
|
+
Snake
|
272
|
+
Sparrow
|
273
|
+
Spider
|
274
|
+
Spoonbill
|
275
|
+
Squid
|
276
|
+
Squirrel
|
277
|
+
Starling
|
278
|
+
Stingray
|
279
|
+
Stinkbug
|
280
|
+
Stork
|
281
|
+
Swallow
|
282
|
+
Swan]
|
283
|
+
T_ANIMALS = %w[
|
284
|
+
Tapir
|
285
|
+
Tarsier
|
286
|
+
Termite
|
287
|
+
Tiger
|
288
|
+
Toad
|
289
|
+
Trout
|
290
|
+
Turkey
|
291
|
+
Turtle]
|
292
|
+
U_ANIMALS = %w[]
|
293
|
+
V_ANIMALS = %w[
|
294
|
+
Vicuña
|
295
|
+
Viper
|
296
|
+
Vulture]
|
297
|
+
W_ANIMALS = %w[
|
298
|
+
Wallaby
|
299
|
+
Walrus
|
300
|
+
Wasp
|
301
|
+
Water buffalo
|
302
|
+
Weasel
|
303
|
+
Whale
|
304
|
+
Wildcat
|
305
|
+
Wolf
|
306
|
+
Wolverine
|
307
|
+
Wombat
|
308
|
+
Woodcock
|
309
|
+
Woodpecker
|
310
|
+
Worm
|
311
|
+
Wren]
|
312
|
+
X_ANIMALS = %w[]
|
313
|
+
Y_ANIMALS = %w[
|
314
|
+
Yak]
|
315
|
+
Z_ANIMALS = %w[
|
316
|
+
Zebra]
|
317
|
+
|
318
|
+
ALL_ANIMALS = A_ANIMALS + B_ANIMALS + C_ANIMALS + D_ANIMALS + E_ANIMALS + F_ANIMALS + G_ANIMALS + H_ANIMALS + I_ANIMALS + J_ANIMALS + K_ANIMALS + L_ANIMALS + M_ANIMALS + N_ANIMALS + O_ANIMALS + P_ANIMALS + Q_ANIMALS + R_ANIMALS + S_ANIMALS + T_ANIMALS + U_ANIMALS + V_ANIMALS + W_ANIMALS + X_ANIMALS + Y_ANIMALS + Z_ANIMALS
|
319
|
+
|
320
|
+
|
52
321
|
|
53
322
|
|
54
323
|
##### ADJECTIVES #####
|
@@ -1448,3 +1717,5 @@ zany
|
|
1448
1717
|
zealous
|
1449
1718
|
zesty
|
1450
1719
|
zigzag]
|
1720
|
+
|
1721
|
+
ALL_ADJECTIVES = {a: A_ADJECTIVES, b: B_ADJECTIVES, c: C_ADJECTIVES, d: D_ADJECTIVES, e: E_ADJECTIVES, f: F_ADJECTIVES, g: G_ADJECTIVES, h: H_ADJECTIVES, i: I_ADJECTIVES, j: J_ADJECTIVES, k: K_ADJECTIVES, l: L_ADJECTIVES, m: M_ADJECTIVES, n: N_ADJECTIVES, o: O_ADJECTIVES, p: P_ADJECTIVES, q: Q_ADJECTIVES, r: R_ADJECTIVES, s: S_ADJECTIVES, t: T_ADJECTIVES, u: U_ADJECTIVES, v: V_ADJECTIVES, w: W_ADJECTIVES, y: Y_ADJECTIVES, z: Z_ADJECTIVES}
|
data/lib/faker/quote.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
QUOTES = [["Jay is Kweli's favorite rapper, 50 is Eminem's favorite rapper, and I'm my favorite rapper.", "Interview from 2007"],
|
2
|
+
["I’m like a vessel, and God has chosen me to be the voice and the connector.", "The Fader, 2008"],
|
3
|
+
["My music isn't just music -- it's medicine.", "MusicWorld, 2006"],
|
4
|
+
["Don't ask me what I think the best song of last year was, because my opinion is the same as most of America's. It was 'Gold Digger.'", "Rolling Stone, 2006"],
|
5
|
+
["'Everything I'm not made me everything I am.' In my humble opinion, that's a prophetic statement. Gandhi would have said something like that.", "Rolling Stone, 2007"],
|
6
|
+
["Come on now! How could you be me and want to be someone else?", "Guardian, 2005"],
|
7
|
+
["When I think of competition it's like I try to create against the past. I think about Michelangelo and Picasso. You know, the pyramids.", "Slate, 2010"],
|
8
|
+
["I am so credible and so influential and so relevant that I will change things.", "June 2013, New York Times"],
|
9
|
+
["I’m the No. 1 living and breathing rock star.", "W Magazine, 2013"],
|
10
|
+
["When someone comes up and says something like, ‘I am a god,’ everybody says ‘Who does he think he is?’ I just told you who I thought I was. A god. I just told you. That’s who I think I am.", "BBC Radio 1’s Zane Lowe, 2013"],
|
11
|
+
["For me to say I wasn’t a genius, I would just be lying to you and to myself.", "Jimmy Kimmel Live, 2013"],
|
12
|
+
["I feel like a little bit, like, I’m the Braveheart of creativity.", "San Francisco's 99.7, 2013"],
|
13
|
+
["I am Warhol! I am the number one most impactful artist of our generation. I am Shakespeare in the flesh. Walt Disney, Nike, Google.", "Sway in the Morning, 2013"],
|
14
|
+
["Visiting my mind is like visiting the Hermès factory.", "W Magazine, 2013"],
|
15
|
+
["I'm doing pretty good as far as geniuses go ... I'm like a machine. I'm a robot.", "Radio interview with Tim Westwood, 2008"],
|
16
|
+
["I’m going down as a legend, whether or not you like me or not. I am the new Jim Morrison. I am the new Kurt Cobain.", "Radio interview with Tim Westwood, 2008"],
|
17
|
+
["My greatest pain in life is that I will never be able to see myself perform live.", "VH1 Storytellers, 2009"],
|
18
|
+
["You can't look at a glass half full or empty if it's overflowing.", "Twitter"],
|
19
|
+
["I have, like, nuclear power, like a superhero, like Cyclops when he puts his glasses on.", "Details, 2009"],
|
20
|
+
["Yeah. I'm rich and I'm famous, but I try not to be extra with it.", "Complex’s Westworld, April/May 2009"],
|
21
|
+
["A lot of people were wondering what I was going to do if I didn't win anything. I guess we'll never know.", "47th Grammy Award Acceptance Speech, 2005"],
|
22
|
+
["I'm a creative genius and there's no other way to word it.", "Jimmy Kimmel Live, 2013"]]
|
23
|
+
|
24
|
+
|
25
|
+
module DbcFaker
|
26
|
+
|
27
|
+
class Quote
|
28
|
+
|
29
|
+
def self.quote
|
30
|
+
QUOTES.sample[0]
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
######### DTC #########
|
38
|
+
# p DbcFaker::Quote.quote
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbcfaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Sedighian
|
@@ -14,7 +14,11 @@ cert_chain: []
|
|
14
14
|
date: 2015-02-20 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: A DBC twist on the Faker gem
|
17
|
-
email:
|
17
|
+
email:
|
18
|
+
- samansb@gmail.com
|
19
|
+
- rebeccaholzschuh@gmail.com
|
20
|
+
- jergagon1@gmail.com
|
21
|
+
- jdsberk@gmail.com
|
18
22
|
executables: []
|
19
23
|
extensions: []
|
20
24
|
extra_rdoc_files: []
|
@@ -32,12 +36,16 @@ files:
|
|
32
36
|
- dbcfaker-0.0.7.gem
|
33
37
|
- dbcfaker-0.0.8.gem
|
34
38
|
- dbcfaker-0.0.9.gem
|
39
|
+
- dbcfaker-0.1.0.gem
|
40
|
+
- dbcfaker-0.1.1.gem
|
41
|
+
- dbcfaker-bak.gemspec
|
35
42
|
- dbcfaker.gemspec
|
36
43
|
- lib/.DS_Store
|
37
44
|
- lib/dbcfaker.rb
|
38
45
|
- lib/faker/cohort.rb
|
39
46
|
- lib/faker/cohort_data.rb
|
40
47
|
- lib/faker/name.rb
|
48
|
+
- lib/faker/quote.rb
|
41
49
|
homepage: https://github.com/Sedighian/dbcfaker
|
42
50
|
licenses:
|
43
51
|
- MIT
|