random_title 0.0.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 +7 -0
- data/lib/random_title.rb +96 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 8a4e69ca3ea5f06e1335d9b5cff45eb1a86c7b1e
|
|
4
|
+
data.tar.gz: 95d810c2fbd2e9dad95433a01a80486c15427c12
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b4d137c7b6ab073af3379bee997c9cc37df6bbdc3a90785278140748196a68e044f22aef688e3e94667b1e90abd71815d3194fe4fb7edd2955270f2ab450650e
|
|
7
|
+
data.tar.gz: e89f8c156c0598da9591978168af5b0de94b7dbf80f03ebc7e14c284570904f53ea8cddcf049b96836977d2b4152575ab7b4f15023e06a22bf4e056016c9126a
|
data/lib/random_title.rb
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
#Code as Javascript taken from http://www.ruggenberg.nl/titels.html
|
|
2
|
+
@nouns = ["Dream","Dreamer","Dreams","Waves",
|
|
3
|
+
"Sword","Kiss","Sex","Lover",
|
|
4
|
+
"Slave","Slaves","Pleasure","Servant",
|
|
5
|
+
"Servants","Snake","Soul","Touch",
|
|
6
|
+
"Men","Women","Gift","Scent",
|
|
7
|
+
"Ice","Snow","Night","Silk","Secret","Secrets",
|
|
8
|
+
"Game","Fire","Flame","Flames", "Chicken",
|
|
9
|
+
"Husband","Wife","Man","Woman","Boy","Girl",
|
|
10
|
+
"Truth","Edge","Boyfriend","Girlfriend",
|
|
11
|
+
"Body","Captive","Male","Wave","Predator",
|
|
12
|
+
"Female","Healer","Trainer","Teacher",
|
|
13
|
+
"Hunter","Obsession","Hustler","Consort",
|
|
14
|
+
"Dream", "Dreamer", "Dreams","Rainbow",
|
|
15
|
+
"Dreaming","Flight","Flying","Soaring",
|
|
16
|
+
"Wings","Mist","Sky","Wind",
|
|
17
|
+
"Winter","Misty","River","Door",
|
|
18
|
+
"Gate","Cloud","Fairy","Dragon",
|
|
19
|
+
"End","Blade","Beginning","Tale",
|
|
20
|
+
"Tales","Emperor","Prince","Princess",
|
|
21
|
+
"Willow","Birch","Petals","Destiny",
|
|
22
|
+
"Theft","Thief","Legend","Prophecy",
|
|
23
|
+
"Spark","Sparks","Stream","Streams","Waves",
|
|
24
|
+
"Sword","Darkness","Swords","Silence","Kiss",
|
|
25
|
+
"Butterfly","Shadow","Ring","Rings","Emerald",
|
|
26
|
+
"Storm","Storms","Mists","World","Worlds",
|
|
27
|
+
"Alien","Lord","Lords","Ship","Ships","Star",
|
|
28
|
+
"Stars","Force","Visions","Vision","Magic",
|
|
29
|
+
"Wizards","Wizard","Heart","Heat","Twins",
|
|
30
|
+
"Twilight","Moon","Moons","Planet","Shores",
|
|
31
|
+
"Pirates","Courage","Time","Academy",
|
|
32
|
+
"School","Rose","Roses","Stone","Stones",
|
|
33
|
+
"Sorcerer","Shard","Shards","Slave","Slaves",
|
|
34
|
+
"Servant","Servants","Serpent","Serpents",
|
|
35
|
+
"Snake","Soul","Souls","Savior","Spirit",
|
|
36
|
+
"Spirits","Voyage","Voyages","Voyager","Voyagers",
|
|
37
|
+
"Return","Legacy","Birth","Healer","Healing",
|
|
38
|
+
"Year","Years","Death","Dying","Luck","Elves",
|
|
39
|
+
"Tears","Touch","Son","Sons","Child","Children",
|
|
40
|
+
"Illusion","Sliver","Destruction","Crying","Weeping",
|
|
41
|
+
"Gift","Word","Words","Thought","Thoughts","Scent",
|
|
42
|
+
"Ice","Snow","Night","Silk","Guardian","Angel",
|
|
43
|
+
"Angels","Secret","Secrets","Search","Eye","Eyes",
|
|
44
|
+
"Danger","Game","Fire","Flame","Flames","Bride",
|
|
45
|
+
"Husband","Wife","Time","Flower","Flowers",
|
|
46
|
+
"Light","Lights","Door","Doors","Window","Windows",
|
|
47
|
+
"Bridge","Bridges","Ashes","Memory","Thorn",
|
|
48
|
+
"Thorns","Name","Names","Future","Past",
|
|
49
|
+
"History","Something","Nothing","Someone",
|
|
50
|
+
"Nobody","Person","Man","Woman","Boy","Girl",
|
|
51
|
+
"Way","Mage","Witch","Witches","Lover",
|
|
52
|
+
"Tower","Valley","Abyss","Hunter",
|
|
53
|
+
"Truth","Edge"]
|
|
54
|
+
|
|
55
|
+
@adjectives = ["Lost","Only","Last","First",
|
|
56
|
+
"Third","Sacred","Bold","Lovely",
|
|
57
|
+
"Final","Missing","Shadowy","Seventh",
|
|
58
|
+
"Dwindling","Missing","Absent",
|
|
59
|
+
"Vacant","Cold","Hot","Burning","Forgotten",
|
|
60
|
+
"Weeping","Dying","Lonely","Silent",
|
|
61
|
+
"Laughing","Whispering","Forgotten","Smooth",
|
|
62
|
+
"Silken","Rough","Frozen","Wild",
|
|
63
|
+
"Trembling","Fallen","Ragged","Broken",
|
|
64
|
+
"Cracked","Splintered","Slithering","Silky",
|
|
65
|
+
"Wet","Magnificent","Luscious","Swollen",
|
|
66
|
+
"Erect","Bare","Naked","Stripped",
|
|
67
|
+
"Captured","Stolen","Sucking","Licking",
|
|
68
|
+
"Growing","Kissing","Green","Red","Blue",
|
|
69
|
+
"Azure","Rising","Falling","Elemental",
|
|
70
|
+
"Bound","Prized","Obsessed","Unwilling",
|
|
71
|
+
"Hard","Eager","Ravaged","Sleeping",
|
|
72
|
+
"Wanton","Professional","Willing","Devoted",
|
|
73
|
+
"Misty","Lost","Only","Last","First",
|
|
74
|
+
"Final","Missing","Shadowy","Seventh",
|
|
75
|
+
"Dark","Darkest","Silver","Silvery","Living",
|
|
76
|
+
"Black","White","Hidden","Entwined","Invisible",
|
|
77
|
+
"Next","Seventh","Red","Green","Blue",
|
|
78
|
+
"Purple","Grey","Bloody","Emerald","Diamond",
|
|
79
|
+
"Frozen","Sharp","Delicious","Dangerous",
|
|
80
|
+
"Deep","Twinkling","Dwindling","Missing","Absent",
|
|
81
|
+
"Vacant","Cold","Hot","Burning","Forgotten",
|
|
82
|
+
"Some","No","All","Every","Each","Which","What",
|
|
83
|
+
"Playful","Silent","Weeping","Dying","Lonely","Silent",
|
|
84
|
+
"Laughing","Whispering","Forgotten","Smooth","Silken",
|
|
85
|
+
"Rough","Frozen","Wild","Trembling","Fallen",
|
|
86
|
+
"Ragged","Broken","Cracked","Splintered"]
|
|
87
|
+
|
|
88
|
+
def random_title
|
|
89
|
+
case rand(4)
|
|
90
|
+
when 0 then @adjectives.sample + " " + @nouns.sample
|
|
91
|
+
when 1 then "The " + @adjectives.sample + " " + @nouns.sample
|
|
92
|
+
when 2 then @nouns.sample + " of " + @adjectives.sample
|
|
93
|
+
when 3 then "The " + @nouns.sample + "'s " + @nouns.sample
|
|
94
|
+
when 4 then "The " + @nouns.sample + " of the " + @nouns.sample
|
|
95
|
+
end
|
|
96
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: random_title
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jonah Broh
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A random title generator
|
|
14
|
+
email: thepigking@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/random_title.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/random_title
|
|
21
|
+
licenses: []
|
|
22
|
+
metadata: {}
|
|
23
|
+
post_install_message:
|
|
24
|
+
rdoc_options: []
|
|
25
|
+
require_paths:
|
|
26
|
+
- lib
|
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0'
|
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '0'
|
|
37
|
+
requirements: []
|
|
38
|
+
rubyforge_project:
|
|
39
|
+
rubygems_version: 2.5.1
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: A random title generator
|
|
43
|
+
test_files: []
|