random_name_generator 1.0.3 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/Gemfile +2 -2
- data/Gemfile.lock +57 -78
- data/bin/random_name_generator +16 -4
- data/lib/random_name_generator/languages/elven-ru.txt +84 -0
- data/lib/random_name_generator/languages/fantasy-ru.txt +356 -0
- data/lib/random_name_generator/languages/goblin-ru.txt +48 -0
- data/lib/random_name_generator/languages/roman-ru.txt +35 -0
- data/lib/random_name_generator/random_name_generator.rb +13 -0
- data/random_name_generator.gemspec +5 -5
- metadata +17 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74d35fcbc2b3d29c404257f11dd5514f78b9f1fd96e543ccbf2db119d3cb9b5c
|
4
|
+
data.tar.gz: 92e3a23199ec5b67165e6bc30f4cbca8e9d04ce06b2718d99d28f302fbd230a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0776bb1b2bae49c6fd3d21b8d1ab5a218aa006b296962bd45b3287ac9599bd8a22820965c85e6b3e162ff3c8b1c12386e824fa47e4219064e3af7c5ed62ee4
|
7
|
+
data.tar.gz: d4e118fa0a1d60974bd34353350eee29cd930dfb81e5fbd1de81ea0f2613792a0d885cf09089aadf437f7da264f6861cb4baab1defdb06934edf8c7847505ecd
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,36 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
random_name_generator (1.
|
4
|
+
random_name_generator (1.2.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ansi (1.5.0)
|
10
10
|
ast (2.4.0)
|
11
|
-
|
12
|
-
descendants_tracker (~> 0.0.4)
|
13
|
-
ice_nine (~> 0.11.0)
|
14
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
15
|
-
builder (3.2.3)
|
16
|
-
codeclimate-engine-rb (0.4.1)
|
17
|
-
virtus (~> 1.0)
|
11
|
+
builder (3.2.4)
|
18
12
|
coderay (1.1.2)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
descendants_tracker (0.0.4)
|
28
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
29
|
-
docile (1.1.5)
|
30
|
-
equalizer (0.0.11)
|
31
|
-
ffi (1.10.0)
|
13
|
+
coveralls (0.7.2)
|
14
|
+
multi_json (~> 1.3)
|
15
|
+
rest-client (= 1.6.7)
|
16
|
+
simplecov (>= 0.7)
|
17
|
+
term-ansicolor (= 1.2.2)
|
18
|
+
thor (= 0.18.1)
|
19
|
+
docile (1.3.2)
|
20
|
+
ffi (1.12.2)
|
32
21
|
formatador (0.2.5)
|
33
|
-
guard (2.
|
22
|
+
guard (2.16.2)
|
34
23
|
formatador (>= 0.2.4)
|
35
24
|
listen (>= 2.7, < 4.0)
|
36
25
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -43,95 +32,85 @@ GEM
|
|
43
32
|
guard-minitest (2.4.6)
|
44
33
|
guard-compat (~> 1.2)
|
45
34
|
minitest (>= 3.0)
|
46
|
-
ice_nine (0.11.2)
|
47
|
-
jaro_winkler (1.5.2)
|
48
|
-
json (2.1.0)
|
49
35
|
kwalify (0.7.2)
|
50
|
-
listen (3.1
|
51
|
-
rb-fsevent (~> 0.
|
52
|
-
rb-inotify (~> 0.9, >= 0.9.
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
minitest
|
36
|
+
listen (3.2.1)
|
37
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
38
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
39
|
+
lumberjack (1.2.4)
|
40
|
+
method_source (1.0.0)
|
41
|
+
mime-types (3.3.1)
|
42
|
+
mime-types-data (~> 3.2015)
|
43
|
+
mime-types-data (3.2020.0425)
|
44
|
+
minitest (5.14.0)
|
45
|
+
minitest-reporters (1.4.2)
|
59
46
|
ansi
|
60
47
|
builder
|
61
48
|
minitest (>= 5.0)
|
62
49
|
ruby-progressbar
|
63
|
-
mocha (1.
|
64
|
-
|
50
|
+
mocha (1.11.2)
|
51
|
+
multi_json (1.14.1)
|
65
52
|
nenv (0.3.0)
|
66
|
-
notiffany (0.1.
|
53
|
+
notiffany (0.1.3)
|
67
54
|
nenv (~> 0.1)
|
68
55
|
shellany (~> 0.0)
|
69
|
-
parallel (1.
|
70
|
-
parser (2.
|
56
|
+
parallel (1.19.1)
|
57
|
+
parser (2.7.1.2)
|
71
58
|
ast (~> 2.4.0)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
method_source (~> 0.8.1)
|
76
|
-
slop (~> 3.4)
|
59
|
+
pry (0.13.1)
|
60
|
+
coderay (~> 1.1)
|
61
|
+
method_source (~> 1.0)
|
77
62
|
psych (3.1.0)
|
78
63
|
rainbow (3.0.0)
|
79
|
-
rake (
|
80
|
-
rb-fsevent (0.10.
|
81
|
-
rb-inotify (0.10.
|
64
|
+
rake (13.0.1)
|
65
|
+
rb-fsevent (0.10.4)
|
66
|
+
rb-inotify (0.10.1)
|
82
67
|
ffi (~> 1.0)
|
83
|
-
reek (
|
84
|
-
codeclimate-engine-rb (~> 0.4.0)
|
68
|
+
reek (6.0.0)
|
85
69
|
kwalify (~> 0.7.0)
|
86
|
-
parser (>= 2.5.0.0, < 2.
|
70
|
+
parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
|
87
71
|
psych (~> 3.1.0)
|
88
72
|
rainbow (>= 2.0, < 4.0)
|
89
|
-
|
90
|
-
|
73
|
+
rest-client (1.6.7)
|
74
|
+
mime-types (>= 1.16)
|
75
|
+
rexml (3.2.4)
|
76
|
+
rubocop (0.83.0)
|
91
77
|
parallel (~> 1.10)
|
92
|
-
parser (>= 2.
|
93
|
-
powerpack (~> 0.1)
|
78
|
+
parser (>= 2.7.0.1)
|
94
79
|
rainbow (>= 2.2.2, < 4.0)
|
80
|
+
rexml
|
95
81
|
ruby-progressbar (~> 1.7)
|
96
|
-
unicode-display_width (
|
97
|
-
ruby-progressbar (1.10.
|
98
|
-
ruby_dep (1.5.0)
|
82
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
83
|
+
ruby-progressbar (1.10.1)
|
99
84
|
shellany (0.0.1)
|
100
|
-
simplecov (0.
|
101
|
-
docile (~> 1.1
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
tins (1.20.2)
|
111
|
-
unicode-display_width (1.4.1)
|
112
|
-
virtus (1.0.5)
|
113
|
-
axiom-types (~> 0.1)
|
114
|
-
coercible (~> 1.0)
|
115
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
116
|
-
equalizer (~> 0.0, >= 0.0.9)
|
85
|
+
simplecov (0.18.5)
|
86
|
+
docile (~> 1.1)
|
87
|
+
simplecov-html (~> 0.11)
|
88
|
+
simplecov-html (0.12.2)
|
89
|
+
slop (4.8.1)
|
90
|
+
term-ansicolor (1.2.2)
|
91
|
+
tins (~> 0.8)
|
92
|
+
thor (0.18.1)
|
93
|
+
tins (0.13.2)
|
94
|
+
unicode-display_width (1.7.0)
|
117
95
|
|
118
96
|
PLATFORMS
|
119
97
|
ruby
|
120
98
|
|
121
99
|
DEPENDENCIES
|
122
|
-
bundler
|
100
|
+
bundler
|
123
101
|
coveralls
|
124
102
|
guard
|
125
103
|
guard-minitest
|
126
104
|
minitest
|
127
105
|
minitest-reporters
|
128
106
|
mocha
|
129
|
-
pry
|
130
|
-
rake
|
107
|
+
pry
|
108
|
+
rake
|
131
109
|
random_name_generator!
|
132
110
|
reek
|
133
111
|
rubocop
|
134
112
|
simplecov
|
113
|
+
slop (~> 4.2)
|
135
114
|
|
136
115
|
BUNDLED WITH
|
137
|
-
1.
|
116
|
+
2.1.2
|
data/bin/random_name_generator
CHANGED
@@ -10,15 +10,27 @@ opts = Slop.parse do |o|
|
|
10
10
|
o.bool '-g', '--goblin', 'Use Goblin eyllable file'
|
11
11
|
o.bool '-r', '--roman', 'Use Roman eyllable file'
|
12
12
|
o.bool '-f', '--flipmode', 'Flip mode in effect'
|
13
|
+
o.bool '-c', '--cyrillic', 'Use Cyrillic mode'
|
13
14
|
o.bool '-?', '--help', 'How to'
|
14
15
|
end
|
15
16
|
|
16
|
-
|
17
|
-
lang = RandomNameGenerator::
|
18
|
-
lang = RandomNameGenerator::
|
17
|
+
if opts.cyrillic?
|
18
|
+
lang = RandomNameGenerator::FANTASY_RU
|
19
|
+
lang = RandomNameGenerator::ELVEN_RU if opts.elven?
|
20
|
+
lang = RandomNameGenerator::GOBLIN_RU if opts.goblin?
|
21
|
+
lang = RandomNameGenerator::ROMAN_RU if opts.roman?
|
22
|
+
else
|
23
|
+
lang = RandomNameGenerator::ELVEN if opts.elven?
|
24
|
+
lang = RandomNameGenerator::GOBLIN if opts.goblin?
|
25
|
+
lang = RandomNameGenerator::ROMAN if opts.roman?
|
26
|
+
end
|
19
27
|
|
20
28
|
if opts.flipmode?
|
21
|
-
|
29
|
+
if opts.cyrillic?
|
30
|
+
puts "#{RandomNameGenerator.flip_mode_cyrillic.compose} #{RandomNameGenerator.flip_mode_cyrillic.compose}"
|
31
|
+
else
|
32
|
+
puts "#{RandomNameGenerator.flip_mode.compose} #{RandomNameGenerator.flip_mode.compose}"
|
33
|
+
end
|
22
34
|
elsif opts.help?
|
23
35
|
puts opts
|
24
36
|
else
|
@@ -0,0 +1,84 @@
|
|
1
|
+
-Аэль
|
2
|
+
-Аэр
|
3
|
+
-аф
|
4
|
+
-а
|
5
|
+
-ам
|
6
|
+
-ама
|
7
|
+
-ан
|
8
|
+
-анг +v
|
9
|
+
-анср +v
|
10
|
+
-каэль
|
11
|
+
-даэ +c
|
12
|
+
-до
|
13
|
+
-ейр
|
14
|
+
-фи
|
15
|
+
-фир
|
16
|
+
-ла
|
17
|
+
-се
|
18
|
+
-сел
|
19
|
+
-ев
|
20
|
+
-фис
|
21
|
+
-ху
|
22
|
+
-ха
|
23
|
+
-гфр
|
24
|
+
-гил
|
25
|
+
-ка
|
26
|
+
-кан
|
27
|
+
-я
|
28
|
+
-за
|
29
|
+
-зи
|
30
|
+
-мара
|
31
|
+
-маи +c
|
32
|
+
-луэ +c
|
33
|
+
-ни
|
34
|
+
-ше
|
35
|
+
-сум
|
36
|
+
-сил
|
37
|
+
аэ +c -c
|
38
|
+
аэл -c
|
39
|
+
дар
|
40
|
+
дэт +v
|
41
|
+
дре -v
|
42
|
+
дрим -v
|
43
|
+
дул
|
44
|
+
эан -c
|
45
|
+
эл
|
46
|
+
эмар
|
47
|
+
хал
|
48
|
+
иат -c
|
49
|
+
ма
|
50
|
+
тэн
|
51
|
+
куэ -v +c
|
52
|
+
риа
|
53
|
+
риал
|
54
|
+
тэр
|
55
|
+
тус
|
56
|
+
ти
|
57
|
+
сан
|
58
|
+
+аэль -c
|
59
|
+
+дар
|
60
|
+
+дэт
|
61
|
+
+дре
|
62
|
+
+дрим
|
63
|
+
+дул
|
64
|
+
+эан -c
|
65
|
+
+эл
|
66
|
+
+эиар
|
67
|
+
+нэс
|
68
|
+
+нин
|
69
|
+
+от
|
70
|
+
+хал
|
71
|
+
+иат
|
72
|
+
+ма
|
73
|
+
+тэн
|
74
|
+
+тэр
|
75
|
+
+тус
|
76
|
+
+ти
|
77
|
+
+ран
|
78
|
+
+ат
|
79
|
+
+эсс
|
80
|
+
+сан
|
81
|
+
+ит
|
82
|
+
+лас
|
83
|
+
+лиан
|
84
|
+
+эвар
|
@@ -0,0 +1,356 @@
|
|
1
|
+
-а +c
|
2
|
+
-аб
|
3
|
+
-ак
|
4
|
+
-ац
|
5
|
+
-ад
|
6
|
+
-аф
|
7
|
+
-ам
|
8
|
+
-ан
|
9
|
+
-ап
|
10
|
+
-ар
|
11
|
+
-ас
|
12
|
+
-ат
|
13
|
+
-ав
|
14
|
+
-аз
|
15
|
+
-аэль
|
16
|
+
-аэл
|
17
|
+
-ао
|
18
|
+
-аэр
|
19
|
+
-аш
|
20
|
+
-арш +v
|
21
|
+
-ат
|
22
|
+
-арг +v
|
23
|
+
-арв +v
|
24
|
+
-арт +v
|
25
|
+
-арн +v
|
26
|
+
-аг
|
27
|
+
-анг +v
|
28
|
+
-антр +v
|
29
|
+
-ба +c
|
30
|
+
-бе +c
|
31
|
+
-би
|
32
|
+
-бо +c
|
33
|
+
-бу +c
|
34
|
+
-бео +c
|
35
|
+
-бра +c
|
36
|
+
-бре +c
|
37
|
+
-бей
|
38
|
+
-бро +c
|
39
|
+
-бру
|
40
|
+
-брео +c
|
41
|
+
-брао +c
|
42
|
+
-да +c
|
43
|
+
-де +c
|
44
|
+
-ди
|
45
|
+
-до +c
|
46
|
+
-ду +c
|
47
|
+
-дае +c
|
48
|
+
-даи
|
49
|
+
-дао +c
|
50
|
+
-дра +c
|
51
|
+
-дре +c
|
52
|
+
-дри
|
53
|
+
-дро +c
|
54
|
+
-даш
|
55
|
+
-деш
|
56
|
+
-дош
|
57
|
+
-дарр +v
|
58
|
+
-дар
|
59
|
+
-дерр +v
|
60
|
+
-дер
|
61
|
+
-дорр +v
|
62
|
+
-дор
|
63
|
+
-дурр +v
|
64
|
+
-дур
|
65
|
+
-дран
|
66
|
+
-дрен
|
67
|
+
-дрон
|
68
|
+
-друн
|
69
|
+
-драв
|
70
|
+
-древ
|
71
|
+
-дров
|
72
|
+
-дов
|
73
|
+
-дув
|
74
|
+
-дарв +v
|
75
|
+
-дорв +v
|
76
|
+
-дурв +v
|
77
|
+
-эо +c
|
78
|
+
-эи +c
|
79
|
+
-ед
|
80
|
+
-га +c
|
81
|
+
-го +c
|
82
|
+
-гу +c
|
83
|
+
-гра +c
|
84
|
+
-гро +c
|
85
|
+
-гру +c
|
86
|
+
-гарл
|
87
|
+
-горл
|
88
|
+
-ха +c
|
89
|
+
-хэ +c
|
90
|
+
-хе +c
|
91
|
+
-хи +c
|
92
|
+
-хо +c
|
93
|
+
-ху +c
|
94
|
+
-хан
|
95
|
+
-хун
|
96
|
+
-хон
|
97
|
+
-идр +v
|
98
|
+
-игр +v
|
99
|
+
-ирн +v
|
100
|
+
-игн +v
|
101
|
+
-ин
|
102
|
+
-инс
|
103
|
+
-интр +v
|
104
|
+
-ка +c
|
105
|
+
-ке +c
|
106
|
+
-ки
|
107
|
+
-ко +c
|
108
|
+
-ку +c
|
109
|
+
-ков
|
110
|
+
-корв +v
|
111
|
+
-кран
|
112
|
+
-крен
|
113
|
+
-крон
|
114
|
+
-крун
|
115
|
+
-карн
|
116
|
+
-керн
|
117
|
+
-корн
|
118
|
+
-курн
|
119
|
+
-лод +v
|
120
|
+
-лодд +v
|
121
|
+
-ла +c
|
122
|
+
-лад +v
|
123
|
+
-ладд +v
|
124
|
+
-лор
|
125
|
+
-лорн +v
|
126
|
+
-ллор
|
127
|
+
-ллорн +v
|
128
|
+
-ллорв +v
|
129
|
+
-орв +v
|
130
|
+
-орн +v
|
131
|
+
-оргл +v
|
132
|
+
-ра +c
|
133
|
+
-ру +c
|
134
|
+
-ро +c
|
135
|
+
-ра +c
|
136
|
+
-ре +c
|
137
|
+
-ру +c
|
138
|
+
-раб +v
|
139
|
+
-рак
|
140
|
+
-роб +v
|
141
|
+
-рок
|
142
|
+
-руб +v
|
143
|
+
-рук
|
144
|
+
-стра +c
|
145
|
+
-стре +c
|
146
|
+
-сто +c
|
147
|
+
-сар
|
148
|
+
-сор
|
149
|
+
-сер
|
150
|
+
-ту +c
|
151
|
+
-тук
|
152
|
+
-тув +v
|
153
|
+
-ун
|
154
|
+
-унн +v
|
155
|
+
-унд
|
156
|
+
-уд
|
157
|
+
-ук
|
158
|
+
-ва
|
159
|
+
-ваа +c
|
160
|
+
-ве +c
|
161
|
+
-во +c
|
162
|
+
-ву +c
|
163
|
+
-вал
|
164
|
+
-вел
|
165
|
+
-вол
|
166
|
+
-вул
|
167
|
+
-враал
|
168
|
+
-врал
|
169
|
+
-врул
|
170
|
+
-враат +v
|
171
|
+
-вроот +v
|
172
|
+
-врод +v
|
173
|
+
-врок +v
|
174
|
+
-ворк +v
|
175
|
+
-ворт +v
|
176
|
+
-за +c
|
177
|
+
-заа +c
|
178
|
+
-звр
|
179
|
+
-зон
|
180
|
+
-золл +v
|
181
|
+
аб -c
|
182
|
+
ац -c
|
183
|
+
ад -c
|
184
|
+
аф -c
|
185
|
+
ак -c
|
186
|
+
ам -c
|
187
|
+
ан -c
|
188
|
+
ап -c
|
189
|
+
ар -c
|
190
|
+
ас -c
|
191
|
+
ат -c
|
192
|
+
ав -c
|
193
|
+
аз -c
|
194
|
+
аэл -c
|
195
|
+
аэль c
|
196
|
+
ао -c
|
197
|
+
аэр -c
|
198
|
+
ба
|
199
|
+
бе
|
200
|
+
би
|
201
|
+
бо
|
202
|
+
бу
|
203
|
+
бео
|
204
|
+
бра
|
205
|
+
бре
|
206
|
+
бей
|
207
|
+
бро
|
208
|
+
бру
|
209
|
+
брео
|
210
|
+
брао
|
211
|
+
да
|
212
|
+
де
|
213
|
+
ди
|
214
|
+
до
|
215
|
+
ду
|
216
|
+
даэ
|
217
|
+
даи
|
218
|
+
дао
|
219
|
+
дра
|
220
|
+
дре
|
221
|
+
дри
|
222
|
+
дро
|
223
|
+
даш
|
224
|
+
деш
|
225
|
+
дош
|
226
|
+
дарр
|
227
|
+
дар
|
228
|
+
дерр
|
229
|
+
дер
|
230
|
+
дорр
|
231
|
+
дор
|
232
|
+
дурр
|
233
|
+
дур
|
234
|
+
дран
|
235
|
+
дрен
|
236
|
+
дрон
|
237
|
+
друн
|
238
|
+
драв
|
239
|
+
древ
|
240
|
+
дров
|
241
|
+
дов
|
242
|
+
дув
|
243
|
+
дарв
|
244
|
+
дорв
|
245
|
+
дурв
|
246
|
+
эо -c +c
|
247
|
+
эи -c
|
248
|
+
ео -c +c
|
249
|
+
еи -c
|
250
|
+
эд -c
|
251
|
+
ед -c
|
252
|
+
га -v +c
|
253
|
+
го -v +c
|
254
|
+
гу -v +c
|
255
|
+
гра -v
|
256
|
+
гро -v
|
257
|
+
гру -v +c
|
258
|
+
гарл -v
|
259
|
+
горл -v
|
260
|
+
ха -v +c
|
261
|
+
хэ -v +c
|
262
|
+
хи -v
|
263
|
+
хо -v +c
|
264
|
+
ху -v +c
|
265
|
+
хан -v
|
266
|
+
хун -v
|
267
|
+
хон -v
|
268
|
+
идр -c +v
|
269
|
+
игр -c +v
|
270
|
+
ирн -c +v
|
271
|
+
игн -c +v
|
272
|
+
ин
|
273
|
+
инс
|
274
|
+
интр -c
|
275
|
+
ка -v +c
|
276
|
+
ке -v +c
|
277
|
+
ки -v
|
278
|
+
ко -v +c
|
279
|
+
ку -v +c
|
280
|
+
ков -v +v
|
281
|
+
корв -v +v
|
282
|
+
кран -v +v
|
283
|
+
крен -v +v
|
284
|
+
крон -v +v
|
285
|
+
крун -v +v
|
286
|
+
карн -v +v
|
287
|
+
курн -v +v
|
288
|
+
корн -v +v
|
289
|
+
курн -v +v
|
290
|
+
лод -v
|
291
|
+
лодд -v
|
292
|
+
ла -v +c
|
293
|
+
лад -v
|
294
|
+
ладд -v +v
|
295
|
+
лор -v
|
296
|
+
лорн -v +v
|
297
|
+
орв -c +v
|
298
|
+
орн -c +v
|
299
|
+
оргл -c +v
|
300
|
+
па -v +c
|
301
|
+
пу -v +c
|
302
|
+
по -v +c
|
303
|
+
ра -v +c
|
304
|
+
ре -v +c
|
305
|
+
рэ -v +c
|
306
|
+
ру -v +c
|
307
|
+
раб -v +c
|
308
|
+
рак -v +c
|
309
|
+
роб -v +c
|
310
|
+
рок -v
|
311
|
+
руб -v +c
|
312
|
+
рук -v
|
313
|
+
стра -v +c
|
314
|
+
стре -v +c
|
315
|
+
сто -v +c
|
316
|
+
сар -v
|
317
|
+
сор -v
|
318
|
+
серр -v +c
|
319
|
+
ту -v +c
|
320
|
+
тук -v
|
321
|
+
тув -v +c
|
322
|
+
ун -c
|
323
|
+
унн -c +v
|
324
|
+
унд -c +v
|
325
|
+
уд -c +v
|
326
|
+
ук -c
|
327
|
+
ва -v +c
|
328
|
+
ваа -v +c
|
329
|
+
ве -v +c
|
330
|
+
во -v +c
|
331
|
+
ву -v +c
|
332
|
+
вал -v
|
333
|
+
вел -v
|
334
|
+
вол -v
|
335
|
+
вул -v
|
336
|
+
врал -v +v
|
337
|
+
врул -v +v
|
338
|
+
+ал -c
|
339
|
+
+ол -c
|
340
|
+
+ул -c
|
341
|
+
+ат -c
|
342
|
+
+от -c
|
343
|
+
+ан -c
|
344
|
+
+ун -c
|
345
|
+
+ен -c
|
346
|
+
+эн -c
|
347
|
+
+иэл -c
|
348
|
+
+иол -c
|
349
|
+
+иул -c
|
350
|
+
+ат -c
|
351
|
+
+ут -c
|
352
|
+
+лл -v
|
353
|
+
+д -v
|
354
|
+
+ст -v
|
355
|
+
+сс -v
|
356
|
+
+с
|
@@ -0,0 +1,48 @@
|
|
1
|
+
-ваа +c
|
2
|
+
-боо +c
|
3
|
+
-гар
|
4
|
+
-бар
|
5
|
+
-дар
|
6
|
+
-жар
|
7
|
+
-вар
|
8
|
+
-кра
|
9
|
+
-гра
|
10
|
+
-дра
|
11
|
+
-зра
|
12
|
+
-гоб
|
13
|
+
-доб
|
14
|
+
-роб
|
15
|
+
-фоб
|
16
|
+
-зоб
|
17
|
+
-раг
|
18
|
+
-наг
|
19
|
+
-даг
|
20
|
+
бра
|
21
|
+
га
|
22
|
+
да
|
23
|
+
до
|
24
|
+
го
|
25
|
+
зе
|
26
|
+
ша
|
27
|
+
наз
|
28
|
+
зуб
|
29
|
+
зу
|
30
|
+
на
|
31
|
+
гор
|
32
|
+
бу +c
|
33
|
+
+быр
|
34
|
+
+гыр
|
35
|
+
+дыр
|
36
|
+
+выр
|
37
|
+
+зыр
|
38
|
+
+ыр -c
|
39
|
+
+зог
|
40
|
+
+рог
|
41
|
+
+гог
|
42
|
+
+ог -c
|
43
|
+
+гул
|
44
|
+
+дул
|
45
|
+
+бул
|
46
|
+
+рул
|
47
|
+
+ул -c
|
48
|
+
+ргх -v
|
@@ -0,0 +1,35 @@
|
|
1
|
+
-а
|
2
|
+
-ал
|
3
|
+
-ау +c
|
4
|
+
-ан
|
5
|
+
-ба
|
6
|
+
-бе
|
7
|
+
-би
|
8
|
+
-бр +v
|
9
|
+
-да
|
10
|
+
-ди
|
11
|
+
-до
|
12
|
+
-ду
|
13
|
+
-е
|
14
|
+
-эу +c
|
15
|
+
-фа
|
16
|
+
би
|
17
|
+
бе
|
18
|
+
бо
|
19
|
+
бу
|
20
|
+
нул +v
|
21
|
+
гу
|
22
|
+
да
|
23
|
+
ау +c -c
|
24
|
+
фри
|
25
|
+
гус
|
26
|
+
+тус
|
27
|
+
+лус
|
28
|
+
+лиус
|
29
|
+
+нус
|
30
|
+
+эс
|
31
|
+
+иус -c
|
32
|
+
+кус
|
33
|
+
+тор
|
34
|
+
+цио
|
35
|
+
+тин
|
@@ -22,6 +22,11 @@ class RandomNameGenerator
|
|
22
22
|
GOBLIN = File.new("#{dirname}/languages/goblin.txt")
|
23
23
|
ROMAN = File.new("#{dirname}/languages/roman.txt")
|
24
24
|
|
25
|
+
ELVEN_RU = File.new("#{dirname}/languages/elven-ru.txt")
|
26
|
+
FANTASY_RU = File.new("#{dirname}/languages/fantasy-ru.txt")
|
27
|
+
GOBLIN_RU = File.new("#{dirname}/languages/goblin-ru.txt")
|
28
|
+
ROMAN_RU = File.new("#{dirname}/languages/roman-ru.txt")
|
29
|
+
|
25
30
|
attr_reader :pre, :pre_syllables, :sur_syllables, :mid_syllables
|
26
31
|
|
27
32
|
def initialize(filename = RandomNameGenerator::FANTASY, random: Random.new)
|
@@ -44,6 +49,14 @@ class RandomNameGenerator
|
|
44
49
|
new(langs.sample)
|
45
50
|
end
|
46
51
|
|
52
|
+
def self.flip_mode_cyrillic
|
53
|
+
langs = [RandomNameGenerator::FANTASY_RU,
|
54
|
+
RandomNameGenerator::ELVEN_RU,
|
55
|
+
RandomNameGenerator::GOBLIN_RU,
|
56
|
+
RandomNameGenerator::ROMAN_RU]
|
57
|
+
new(langs.sample)
|
58
|
+
end
|
59
|
+
|
47
60
|
def compose(count = RandomNameGenerator.pick_number_of_syllables)
|
48
61
|
@pre = pre_syllables.sample
|
49
62
|
return @pre.to_s.capitalize if count < 2
|
@@ -3,13 +3,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'random_name_generator'
|
6
|
-
spec.version = '1.
|
6
|
+
spec.version = '1.2.1'
|
7
7
|
spec.authors = ['folkengine']
|
8
8
|
spec.email = ['gaoler@electronicpanopticon.com']
|
9
9
|
spec.licenses = ['GPL-3.0']
|
10
10
|
|
11
11
|
spec.summary = 'Random Name Generator'
|
12
|
-
spec.description = 'Generates random names based upon custom collections of syllables. Styles include Elvish, Fantasy, Goblin, and Roman'
|
12
|
+
spec.description = 'Generates random names based upon custom collections of syllables. Styles include Elvish, Fantasy, Goblin, and Roman. Has Englich(default) and Cyrillic modes.'
|
13
13
|
spec.homepage = 'https://github.com/folkengine/random_name_generator'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.required_ruby_version = '>= 2.
|
21
|
-
spec.add_development_dependency 'bundler'
|
22
|
-
spec.add_development_dependency 'rake'
|
20
|
+
spec.required_ruby_version = '>= 2.5'
|
21
|
+
spec.add_development_dependency 'bundler'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: random_name_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- folkengine
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description: Generates random names based upon custom collections of syllables. Styles
|
42
|
-
include Elvish, Fantasy, Goblin, and Roman
|
42
|
+
include Elvish, Fantasy, Goblin, and Roman. Has Englich(default) and Cyrillic modes.
|
43
43
|
email:
|
44
44
|
- gaoler@electronicpanopticon.com
|
45
45
|
executables: []
|
@@ -63,9 +63,13 @@ files:
|
|
63
63
|
- config.reek
|
64
64
|
- lib/random_name_generator.rb
|
65
65
|
- lib/random_name_generator/languages/demonic.txt
|
66
|
+
- lib/random_name_generator/languages/elven-ru.txt
|
66
67
|
- lib/random_name_generator/languages/elven.txt
|
68
|
+
- lib/random_name_generator/languages/fantasy-ru.txt
|
67
69
|
- lib/random_name_generator/languages/fantasy.txt
|
70
|
+
- lib/random_name_generator/languages/goblin-ru.txt
|
68
71
|
- lib/random_name_generator/languages/goblin.txt
|
72
|
+
- lib/random_name_generator/languages/roman-ru.txt
|
69
73
|
- lib/random_name_generator/languages/roman.txt
|
70
74
|
- lib/random_name_generator/random_name_generator.rb
|
71
75
|
- lib/random_name_generator/rng_syllable.rb
|
@@ -82,15 +86,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
86
|
requirements:
|
83
87
|
- - ">="
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version: '2.
|
89
|
+
version: '2.5'
|
86
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
91
|
requirements:
|
88
92
|
- - ">="
|
89
93
|
- !ruby/object:Gem::Version
|
90
94
|
version: '0'
|
91
95
|
requirements: []
|
92
|
-
|
93
|
-
rubygems_version: 2.7.7
|
96
|
+
rubygems_version: 3.0.8
|
94
97
|
signing_key:
|
95
98
|
specification_version: 4
|
96
99
|
summary: Random Name Generator
|