dnd-namer 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 70aaff76db6a24e74df7e8669caf98495332b940
4
+ data.tar.gz: 58db32f1d0afa07de426837d58cd83c7364b0e82
5
+ SHA512:
6
+ metadata.gz: 29797d8e6be6b48af77c5334388b2597ec79d2160ab56be02e7bfa3bba470022bf4ccde41145430faf988eb5fb38cf3853d65c3719e855239f18545fa4f913b7
7
+ data.tar.gz: 1ddb1797f973de2c8bece4b2c07f66862632040c372e689ab344455c026938c58666187e4ea689b07c847cf3fc56e3d2c250399d1e5776f5a608da467521e813
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dnd-namer.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Dave Allie
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # DnD Namer
2
+
3
+ DnD Namer is a random item and Heroku-ish name generator that uses D&D classes and races.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'dnd-namer', :git => 'https://github.com/daveallie/dnd-namer.git', :tag => '0.0.1'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ ## Usage
16
+
17
+ DndNamer.object
18
+ => "Dirty cleric"
19
+ => "Unusual monk"
20
+ => "Slippery gnome"
21
+
22
+ DndNamer.super_object
23
+ => "Unwavering harpy"
24
+ => "Tranquil wizard"
25
+ => "Exuberant human"
26
+
27
+ DndNamer.heroku
28
+ => "inquisitive-teifling-6617"
29
+ => "jubilant-shifter-9301"
30
+ => "frightened-bard-4542"
31
+
32
+ DndNamer.adj
33
+ => "Colossal"
34
+ DndNamer.race_class
35
+ => "Genasi"
36
+ DndNamer.super_adj
37
+ => "Limitless"
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'dnd-namer/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "dnd-namer"
8
+ gem.version = DndNamer::VERSION
9
+ gem.authors = ["Dave Allie"]
10
+ gem.email = ["dave@daveallie.com"]
11
+ gem.description = %q{Random item and Heroku-ish name generator that uses D&D classes and races.}
12
+ gem.summary = %q{DnD Namer is a random item and Heroku-ish name generator that uses D&D classes and races.}
13
+ gem.homepage = "https://github.com/daveallie/dnd-namer"
14
+ gem.license = "MIT"
15
+
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+ end
@@ -0,0 +1,28 @@
1
+ require 'dnd-namer/version'
2
+
3
+ module DndNamer
4
+ def self.race_class(options = {})
5
+ get_item('race_class', options).humanize
6
+ end
7
+ def self.adj(options = {})
8
+ get_item('adj', options).humanize
9
+ end
10
+ def self.object(options = {})
11
+ "#{ get_item('adj', options) } #{ get_item('race_class') }".humanize
12
+ end
13
+ def self.super_adj(options = {})
14
+ get_item('super_adj', options).humanize
15
+ end
16
+ def self.super_object(options = {})
17
+ "#{ get_item('super_adj', options) } #{ get_item('race_class', options) }".humanize
18
+ end
19
+ def self.heroku(options = {})
20
+ "#{ get_item('super_adj', options) }-#{ get_item('race_class', options) }-#{ rand(1000..9999) }"
21
+ end
22
+ def self.get_item(filename, options = {})
23
+ items = File.read(File.expand_path("../dnd-namer/#{filename}.txt", __FILE__)).split("\n")
24
+ items.select!{ |item| item.length <= options[:max_length] } if options[:max_length]
25
+ items.select!{|item | item[0,1] == options[:start_with]} if options[:start_with]
26
+ items.sample
27
+ end
28
+ end
@@ -0,0 +1,55 @@
1
+ attractive
2
+ average
3
+ beautiful
4
+ big
5
+ broad
6
+ bumpy
7
+ clean
8
+ colorful
9
+ colossal
10
+ crooked
11
+ curved
12
+ cute
13
+ dark
14
+ deep
15
+ dry
16
+ dull
17
+ dusty
18
+ fancy
19
+ flat
20
+ gigantic
21
+ gorgeous
22
+ graceful
23
+ great
24
+ high
25
+ hollow
26
+ huge
27
+ large
28
+ little
29
+ long
30
+ mammoth
31
+ massive
32
+ miniature
33
+ misty
34
+ muddy
35
+ narrow
36
+ petite
37
+ plain
38
+ precious
39
+ quaint
40
+ round
41
+ shallow
42
+ shiny
43
+ short
44
+ skinny
45
+ slippery
46
+ small
47
+ smooth
48
+ soft
49
+ steep
50
+ sticky
51
+ straight
52
+ tall
53
+ teeny
54
+ tiny
55
+ wide
@@ -0,0 +1,29 @@
1
+ cleric
2
+ fighter
3
+ rogue
4
+ wizard
5
+ barbarian
6
+ bard
7
+ druid
8
+ monk
9
+ paladin
10
+ ranger
11
+ sorcerer
12
+ warlock
13
+ aasimar
14
+ dragonborn
15
+ dwarf
16
+ elf
17
+ gnome
18
+ half-elf
19
+ half-orc
20
+ halfling
21
+ human
22
+ kender
23
+ tiefling
24
+ aarakocra
25
+ changeling
26
+ shifter
27
+ genasi
28
+ goliath
29
+ minotaur
@@ -0,0 +1,377 @@
1
+ able
2
+ action
3
+ active
4
+ actual
5
+ adept
6
+ adored
7
+ adroit
8
+ affectionate
9
+ agile
10
+ airy
11
+ alert
12
+ alive
13
+ alter
14
+ amiable
15
+ ample
16
+ anima
17
+ apt
18
+ ardent
19
+ arrogant
20
+ astute
21
+ august
22
+ avid
23
+ awake
24
+ aware
25
+ balmy
26
+ beefy
27
+ benevolent
28
+ big
29
+ billowing
30
+ blessed
31
+ bold
32
+ boss
33
+ brainy
34
+ brave
35
+ brawny
36
+ breezy
37
+ brief
38
+ bright
39
+ brisk
40
+ busy
41
+ calm
42
+ canny
43
+ cared
44
+ caring
45
+ casual
46
+ celestial
47
+ charming
48
+ chic
49
+ chief
50
+ choice
51
+ chosen
52
+ chummy
53
+ civic
54
+ civil
55
+ classy
56
+ clean
57
+ clear
58
+ clever
59
+ close
60
+ cogent
61
+ combative
62
+ composed
63
+ condemned
64
+ cool
65
+ cosmic
66
+ cozy
67
+ cuddly
68
+ cute
69
+ dainty
70
+ dandy
71
+ dapper
72
+ daring
73
+ dear
74
+ decent
75
+ deep
76
+ deft
77
+ deluxe
78
+ devout
79
+ direct
80
+ divine
81
+ doted
82
+ doting
83
+ dreamy
84
+ driven
85
+ dry
86
+ earthy
87
+ easy
88
+ elated
89
+ energized
90
+ enigmatic
91
+ equal
92
+ exact
93
+ exotic
94
+ expert
95
+ exuberant
96
+ fair
97
+ famed
98
+ famous
99
+ fancy
100
+ fast
101
+ fiery
102
+ fine
103
+ fit
104
+ flashy
105
+ fleet
106
+ flowing
107
+ fluent
108
+ fluffy
109
+ fluttering
110
+ flying
111
+ fond
112
+ frank
113
+ free
114
+ fresh
115
+ frightened
116
+ full
117
+ fun
118
+ funny
119
+ fuscia
120
+ genial
121
+ gentle
122
+ giddy
123
+ gifted
124
+ giving
125
+ glad
126
+ gnarly
127
+ gold
128
+ golden
129
+ good
130
+ goodly
131
+ graceful
132
+ grand
133
+ greasy
134
+ great
135
+ green
136
+ grieving
137
+ groovy
138
+ guided
139
+ gutsy
140
+ haloed
141
+ happy
142
+ hardy
143
+ harmonious
144
+ hearty
145
+ heroic
146
+ high
147
+ hip
148
+ hollow
149
+ holy
150
+ homeless
151
+ honest
152
+ huge
153
+ human
154
+ humane
155
+ humble
156
+ hunky
157
+ icy
158
+ ideal
159
+ immune
160
+ indigo
161
+ inquisitive
162
+ jazzed
163
+ jazzy
164
+ jolly
165
+ jovial
166
+ joyful
167
+ joyous
168
+ jubilant
169
+ juicy
170
+ just
171
+ keen
172
+ khaki
173
+ kind
174
+ kingly
175
+ large
176
+ lavish
177
+ lawful
178
+ left
179
+ legal
180
+ legit
181
+ light
182
+ like
183
+ liked
184
+ likely
185
+ limber
186
+ limitless
187
+ lively
188
+ lousy
189
+ loved
190
+ lovely
191
+ loyal
192
+ lucid
193
+ lucky
194
+ lush
195
+ main
196
+ major
197
+ master
198
+ mature
199
+ maxed
200
+ mellow
201
+ merciful
202
+ merry
203
+ mighty
204
+ mint
205
+ mirthful
206
+ modern
207
+ modest
208
+ money
209
+ moonlit
210
+ moral
211
+ moving
212
+ mucho
213
+ mutual
214
+ mysterious
215
+ native
216
+ natural
217
+ near
218
+ neat
219
+ needed
220
+ new
221
+ nice
222
+ nifty
223
+ nimble
224
+ noble
225
+ normal
226
+ noted
227
+ novel
228
+ numero
229
+ okay
230
+ open
231
+ outrageous
232
+ overt
233
+ pacific
234
+ parched
235
+ peachy
236
+ peppy
237
+ pithy
238
+ placid
239
+ pleasant
240
+ plucky
241
+ plum
242
+ poetic
243
+ poised
244
+ polite
245
+ posh
246
+ potent
247
+ pretty
248
+ prime
249
+ primo
250
+ prized
251
+ pro
252
+ prompt
253
+ proper
254
+ proud
255
+ pumped
256
+ punchy
257
+ pure
258
+ purring
259
+ quaint
260
+ quick
261
+ quiet
262
+ rad
263
+ radioactive
264
+ rapid
265
+ rare
266
+ reach
267
+ ready
268
+ real
269
+ regal
270
+ resilient
271
+ rich
272
+ right
273
+ robust
274
+ rooted
275
+ rosy
276
+ rugged
277
+ safe
278
+ sassy
279
+ saucy
280
+ savvy
281
+ scenic
282
+ screeching
283
+ secret
284
+ seemly
285
+ sensitive
286
+ serene
287
+ sharp
288
+ showy
289
+ shrewd
290
+ simple
291
+ sleek
292
+ slick
293
+ smart
294
+ smiley
295
+ smooth
296
+ snappy
297
+ snazzy
298
+ snowy
299
+ snugly
300
+ social
301
+ sole
302
+ solitary
303
+ sound
304
+ spacial
305
+ spicy
306
+ spiffy
307
+ spry
308
+ stable
309
+ star
310
+ stark
311
+ steady
312
+ stoic
313
+ strong
314
+ stunning
315
+ sturdy
316
+ suave
317
+ subtle
318
+ sunny
319
+ sunset
320
+ super
321
+ superb
322
+ sure
323
+ swank
324
+ sweet
325
+ swell
326
+ swift
327
+ talented
328
+ tasteless
329
+ teal
330
+ the
331
+ thoughtless
332
+ thriving
333
+ tidy
334
+ timely
335
+ top
336
+ tops
337
+ tough
338
+ touted
339
+ tranquil
340
+ trim
341
+ tropical
342
+ true
343
+ trusty
344
+ undisturbed
345
+ unique
346
+ united
347
+ unsightly
348
+ unwavering
349
+ upbeat
350
+ uplifting
351
+ urbane
352
+ usable
353
+ useful
354
+ utmost
355
+ valid
356
+ vast
357
+ vestal
358
+ viable
359
+ vital
360
+ vivid
361
+ vocal
362
+ vogue
363
+ voiceless
364
+ volant
365
+ wandering
366
+ wanted
367
+ warm
368
+ wealthy
369
+ whispering
370
+ whole
371
+ winged
372
+ wired
373
+ wise
374
+ witty
375
+ wooden
376
+ worthy
377
+ zealous
@@ -0,0 +1,3 @@
1
+ module DndNamer
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dnd-namer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Dave Allie
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Random item and Heroku-ish name generator that uses D&D classes and races.
14
+ email:
15
+ - dave@daveallie.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - LICENSE.txt
23
+ - README.md
24
+ - Rakefile
25
+ - dnd-namer.gemspec
26
+ - lib/dnd-namer.rb
27
+ - lib/dnd-namer/adj.txt
28
+ - lib/dnd-namer/race_class.txt
29
+ - lib/dnd-namer/super_adj.txt
30
+ - lib/dnd-namer/version.rb
31
+ homepage: https://github.com/daveallie/dnd-namer
32
+ licenses:
33
+ - MIT
34
+ metadata: {}
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubyforge_project:
51
+ rubygems_version: 2.4.6
52
+ signing_key:
53
+ specification_version: 4
54
+ summary: DnD Namer is a random item and Heroku-ish name generator that uses D&D classes
55
+ and races.
56
+ test_files: []