moniker 0.0.1

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.
Files changed (6) hide show
  1. data/COPYING +21 -0
  2. data/README.rdoc +11 -0
  3. data/lib/animals +107 -0
  4. data/lib/moniker.rb +23 -0
  5. data/lib/verbs +390 -0
  6. metadata +63 -0
data/COPYING ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2009, dan sinclair. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY dan sinclair ''AS IS'' AND ANY
13
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL dan sinclair BE LIABLE FOR ANY
16
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,11 @@
1
+ = Moniker
2
+ A simple gem to build aliases for things.
3
+
4
+ = Example
5
+ require 'rubygems'
6
+ require 'moniker'
7
+ Moniker.name # => running-dolphin
8
+
9
+ = Contact
10
+ If you've got any questions, comments or bugs, please let me know. You can
11
+ contact me by email at dj2 at everburning dot com.
@@ -0,0 +1,107 @@
1
+ alligator
2
+ alpaca
3
+ ape
4
+ armadillo
5
+ badger
6
+ bat
7
+ bear
8
+ beaver
9
+ bee
10
+ bird
11
+ bison
12
+ boar
13
+ buffalo
14
+ butterfly
15
+ camel
16
+ cat
17
+ cattle
18
+ cheetah
19
+ chicken
20
+ clam
21
+ codfish
22
+ coyote
23
+ crane
24
+ crow
25
+ deer
26
+ dinosaur
27
+ dog
28
+ dolphin
29
+ donkey
30
+ dove
31
+ duck
32
+ eagle
33
+ eel
34
+ elephant
35
+ elk
36
+ emu
37
+ falcon
38
+ ferret
39
+ finch
40
+ fish
41
+ fly
42
+ fox
43
+ frog
44
+ gerbil
45
+ giraffe
46
+ gnu
47
+ goat
48
+ goose
49
+ gorilla
50
+ grashopper
51
+ gull
52
+ hamster
53
+ hare
54
+ hawk
55
+ hedgehog
56
+ heron
57
+ hog
58
+ horse
59
+ hound
60
+ jay
61
+ jellyfish
62
+ lark
63
+ leopard
64
+ lion
65
+ magpie
66
+ mallard
67
+ mole
68
+ monkey
69
+ moose
70
+ mouse
71
+ mule
72
+ nightingale
73
+ otter
74
+ owl
75
+ ox
76
+ oyster
77
+ panda
78
+ parrot
79
+ penguin
80
+ phesant
81
+ pig
82
+ pigeon
83
+ rabbit
84
+ raccoon
85
+ raven
86
+ reindeer
87
+ seal
88
+ seastar
89
+ shark
90
+ sheep
91
+ snake
92
+ sparrow
93
+ spider
94
+ squirrel
95
+ swan
96
+ tiger
97
+ toad
98
+ trout
99
+ turkey
100
+ turtle
101
+ walrus
102
+ weasel
103
+ whale
104
+ wolf
105
+ wombat
106
+ yak
107
+ zebra
@@ -0,0 +1,23 @@
1
+ class Moniker
2
+ # Generate the moniker
3
+ def self.name
4
+ "#{verbs[rand(verbs.size)]}-#{animals[rand(animals.size)]}"
5
+ end
6
+
7
+ protected
8
+
9
+ def self.verbs # :nodoc:
10
+ @@verbs ||= load_data_file('verbs')
11
+ end
12
+
13
+ def self.animals # :nodoc:
14
+ @@animals ||= load_data_file('animals')
15
+ end
16
+
17
+ def self.load_data_file(name) # :nodoc:
18
+ File.open(File.join(File.dirname(__FILE__), name)) do |f|
19
+ f.readlines.collect { |line| line.chomp.downcase }
20
+ end
21
+ end
22
+ end
23
+
@@ -0,0 +1,390 @@
1
+ abrasive
2
+ acid
3
+ adjacent
4
+ amber
5
+ amethyst
6
+ aqua
7
+ aquamarine
8
+ arc
9
+ avocado
10
+ azure
11
+ baggy
12
+ ball
13
+ banded
14
+ barking
15
+ bawling
16
+ beat
17
+ bellowing
18
+ biting
19
+ black
20
+ blaring
21
+ blue
22
+ boiling
23
+ booming
24
+ box
25
+ brass
26
+ breadth
27
+ bright
28
+ brilliant
29
+ brindle
30
+ bronze
31
+ bubbling
32
+ bubbly
33
+ buff
34
+ bumping
35
+ bumpy
36
+ burning
37
+ burping
38
+ bushy
39
+ cackling
40
+ canary
41
+ carmine
42
+ cawing
43
+ cerise
44
+ chapped
45
+ charcoal
46
+ chattering
47
+ checkered
48
+ cheeping
49
+ chestnut
50
+ chirping
51
+ chocolate
52
+ chrome
53
+ clammy
54
+ clanging
55
+ clapping
56
+ clattering
57
+ clear
58
+ clucking
59
+ coarse
60
+ cobalt
61
+ cold
62
+ concave
63
+ concentric
64
+ cone
65
+ contoured
66
+ convex
67
+ cooing
68
+ cool
69
+ copper
70
+ coral
71
+ corduroy
72
+ corkscrew
73
+ corrugated
74
+ cottony
75
+ coughing
76
+ crackling
77
+ crashing
78
+ cream
79
+ creamy
80
+ crescent
81
+ crested
82
+ crimson
83
+ croaking
84
+ crooning
85
+ crowing
86
+ crowned
87
+ crunching
88
+ crying
89
+ cube
90
+ cupped
91
+ curdled
92
+ curly
93
+ curved
94
+ cushioned
95
+ cyan
96
+ cylinder
97
+ damp
98
+ dank
99
+ dappled
100
+ dark
101
+ depth
102
+ diagonal
103
+ din
104
+ dirty
105
+ disc
106
+ doggy
107
+ downy
108
+ drab
109
+ drooping
110
+ dry
111
+ dull
112
+ dusty
113
+ earthy
114
+ ebony
115
+ emerald
116
+ engraved
117
+ fanned
118
+ fat
119
+ fiery
120
+ fine
121
+ fishy
122
+ fizzing
123
+ flat
124
+ flowery
125
+ fluffy
126
+ flushed
127
+ fluted
128
+ foamy
129
+ fragrance
130
+ frail
131
+ freezing
132
+ fresh
133
+ furry
134
+ fuzzy
135
+ garnet
136
+ glassy
137
+ globe
138
+ glossy
139
+ gold
140
+ grainy
141
+ greasy
142
+ green
143
+ grimy
144
+ gripped
145
+ gritty
146
+ grizzly
147
+ grooved
148
+ growling
149
+ grunting
150
+ hairy
151
+ hard
152
+ height
153
+ helix
154
+ hemisphere
155
+ hexagon
156
+ hissing
157
+ honking
158
+ horizontal
159
+ hot
160
+ howling
161
+ icy
162
+ indigo
163
+ inlaid
164
+ itching
165
+ ivory
166
+ jade
167
+ jet
168
+ keen
169
+ keening
170
+ khaki
171
+ knobbed
172
+ lacy
173
+ lake
174
+ lanky
175
+ lavender
176
+ lemon
177
+ length
178
+ light
179
+ lilac
180
+ lime
181
+ loamy
182
+ long
183
+ loud
184
+ magenta
185
+ mahogany
186
+ maize
187
+ maroon
188
+ matte
189
+ matted
190
+ mauve
191
+ melodious
192
+ metallic
193
+ mewing
194
+ milky
195
+ mint
196
+ minty
197
+ moaning
198
+ moist
199
+ mooing
200
+ mumbling
201
+ murmuring
202
+ mustard
203
+ musty
204
+ narrow
205
+ navy
206
+ noisy
207
+ numbing
208
+ obsidian
209
+ octagon
210
+ olive
211
+ onyx
212
+ opaque
213
+ orange
214
+ orb
215
+ orchid
216
+ oval
217
+ ovate
218
+ pale
219
+ parallel
220
+ peach
221
+ pealing
222
+ pearl
223
+ pearly
224
+ pentagon
225
+ perfumed
226
+ pied
227
+ piercing
228
+ pink
229
+ pinnate
230
+ pitch
231
+ plastic
232
+ plate
233
+ plum
234
+ plump
235
+ pocked
236
+ pointed
237
+ polished
238
+ polyhedron
239
+ popping
240
+ poppy
241
+ pressed
242
+ prickly
243
+ primrose
244
+ pulpy
245
+ purple
246
+ pyramid
247
+ quacking
248
+ quiet
249
+ racket
250
+ rasping
251
+ rattling
252
+ raw
253
+ rectangle
254
+ red
255
+ redolent
256
+ rhythmic
257
+ ringing
258
+ ripping
259
+ roaring
260
+ rocking
261
+ rolling
262
+ rose
263
+ round
264
+ rounded
265
+ ruby
266
+ ruddy
267
+ rumbling
268
+ rust
269
+ rustling
270
+ rutted
271
+ sable
272
+ saffron
273
+ salmon
274
+ sandy
275
+ sapphire
276
+ scalding
277
+ scaled
278
+ scarlet
279
+ scarred
280
+ scent
281
+ scorching
282
+ scratching
283
+ scratchy
284
+ sculptured
285
+ searing
286
+ shaggy
287
+ shallow
288
+ shapely
289
+ sharp
290
+ sheen
291
+ sheer
292
+ shimmering
293
+ shiny
294
+ short
295
+ shouting
296
+ shuffling
297
+ sienna
298
+ sighing
299
+ silent
300
+ silky
301
+ silver
302
+ singing
303
+ sinuous
304
+ slate
305
+ slick
306
+ slimy
307
+ slippery
308
+ smoky
309
+ smooth
310
+ snapping
311
+ snarling
312
+ sneezing
313
+ sniveling
314
+ snoring
315
+ snorting
316
+ snowy
317
+ soapy
318
+ sobbing
319
+ soft
320
+ solid
321
+ soothing
322
+ sooty
323
+ sopping
324
+ spherical
325
+ spicy
326
+ spiked
327
+ spiky
328
+ splashing
329
+ splintered
330
+ spoiled
331
+ spotted
332
+ spruce
333
+ square
334
+ squealing
335
+ steely
336
+ stinging
337
+ streamlined
338
+ stubbly
339
+ sunken
340
+ sweaty
341
+ sweet
342
+ swishing
343
+ tan
344
+ tangled
345
+ tapping
346
+ tart
347
+ tearing
348
+ terrain
349
+ thin
350
+ thread
351
+ thumping
352
+ thunderous
353
+ tickling
354
+ tinkling
355
+ tolling
356
+ topaz
357
+ tranquil
358
+ translucent
359
+ transparent
360
+ trapezoid
361
+ triangle
362
+ trumpeting
363
+ tune
364
+ tweedy
365
+ twinkling
366
+ twittering
367
+ umber
368
+ velvety
369
+ vermilion
370
+ vertical
371
+ violet
372
+ walnut
373
+ warm
374
+ waxy
375
+ wet
376
+ wheezing
377
+ whining
378
+ whispering
379
+ whistling
380
+ white
381
+ whooping
382
+ wide
383
+ width
384
+ winding
385
+ wine
386
+ woolly
387
+ yapping
388
+ yelling
389
+ yellow
390
+ yelping
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moniker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - dan sinclair
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-05 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Generate aliases for things
17
+ email: dj2@everburning.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
+ files:
25
+ - README.rdoc
26
+ - COPYING
27
+ - lib/moniker.rb
28
+ - lib/verbs
29
+ - lib/animals
30
+ has_rdoc: true
31
+ homepage: http://github.com/dj2/moniker/
32
+ licenses: []
33
+
34
+ post_install_message:
35
+ rdoc_options:
36
+ - --title
37
+ - Moniker Documentation
38
+ - --main
39
+ - README.rdoc
40
+ - --line-numbers
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: "0"
48
+ version:
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ requirements: []
56
+
57
+ rubyforge_project:
58
+ rubygems_version: 1.3.5
59
+ signing_key:
60
+ specification_version: 3
61
+ summary: Generate aliases for things
62
+ test_files: []
63
+