pickaname 0.1.1 → 0.1.6

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,198 @@
1
+ abstruse
2
+ esoteric
3
+ recondite
4
+ cloaked
5
+ concealed
6
+ disguised
7
+ masked
8
+ shrouded
9
+ beclouded
10
+ bedimmed
11
+ befogged
12
+ clouded
13
+ cloudy
14
+ dim
15
+ faint
16
+ foggy
17
+ fuzzy
18
+ hazy
19
+ indistinct
20
+ indistinguishable
21
+ misty
22
+ muddy
23
+ obfuscatory
24
+ obnubilated
25
+ obscurant
26
+ shaded
27
+ shadowlike
28
+ shadowy
29
+ sphinxlike
30
+ indefinite
31
+ inexact
32
+ inexplicit
33
+ noncommittal
34
+ questionable
35
+ unclear
36
+ uncertain
37
+ undefined
38
+ undetermined
39
+ vague
40
+ impenetrable
41
+ incomprehensible
42
+ indecipherable
43
+ inexplicable
44
+ eerie
45
+ uncanny
46
+ weird
47
+ impalpable
48
+ inappreciable
49
+ intangible
50
+ invisible
51
+ unanswerable
52
+ unknowable
53
+ baffling
54
+ bewildering
55
+ confounding
56
+ confusing
57
+ mystifying
58
+ perplexing
59
+ puzzling
60
+ unfathomable
61
+ circuitous
62
+ indirect
63
+ roundabout
64
+ complex
65
+ complicated
66
+ difficult
67
+ obtuse
68
+ comprehensible
69
+ fathomable
70
+ intelligible
71
+ knowable
72
+ legible
73
+ pellucid
74
+ understandable
75
+ bright
76
+ distinct
77
+ evident
78
+ self-evident
79
+ self-explanatory
80
+ certain
81
+ firm
82
+ strong
83
+ sure
84
+ defined
85
+ determined
86
+ direct
87
+ straightforward
88
+ definite
89
+ exact
90
+ explicit
91
+ appreciable
92
+ palpable
93
+ tangible
94
+ visible
95
+ blatant
96
+ patent
97
+ unmistakable
98
+ dark
99
+ darkling
100
+ fuzzy
101
+ murky
102
+ obscure
103
+ shadowy
104
+ vague
105
+ ambiguous
106
+ equivocal
107
+ imponderable
108
+ incomprehensible
109
+ unfathomable
110
+ unintelligible
111
+ unsearchable
112
+ inexplicable
113
+ unaccountable
114
+ unexplainable
115
+ unanswerable
116
+ unknowable
117
+ metaphysical
118
+ mystical
119
+ numinous
120
+ supernatural
121
+ abstruse
122
+ esoteric
123
+ recondite
124
+ baffling
125
+ befuddling
126
+ bewildering
127
+ confounding
128
+ confusing
129
+ disorienting
130
+ mystifying
131
+ perplexing
132
+ puzzling
133
+ crepuscular
134
+ twilit
135
+ moonless
136
+ starless
137
+ sunless
138
+ cloudy
139
+ dull
140
+ dulled
141
+ lackluster
142
+ shadowlike
143
+ shadowy
144
+ shady
145
+ gray
146
+ leaden
147
+ pale
148
+ beclouded
149
+ befogged
150
+ clouded
151
+ foggy
152
+ fuliginous
153
+ misty
154
+ smoggy
155
+ soupy
156
+ blue
157
+ dejected
158
+ depressed
159
+ despondent
160
+ down
161
+ droopy
162
+ hangdog
163
+ inconsolable
164
+ low
165
+ melancholic
166
+ melancholy
167
+ mirthless
168
+ sad
169
+ unhappy
170
+ woebegone
171
+ woeful
172
+ dim
173
+ discomfiting
174
+ discouraging
175
+ disheartening
176
+ dismaying
177
+ dispiriting
178
+ distressful
179
+ distressing
180
+ upsetting
181
+ desperate
182
+ hopeless
183
+ pessimistic
184
+ lamentable
185
+ mournful
186
+ plaintive
187
+ sorrowful
188
+ colorless
189
+ drab
190
+ dull
191
+ dour
192
+ grim
193
+ lowering
194
+ lowery
195
+ menacing
196
+ negative
197
+ oppressive
198
+ threatening
@@ -0,0 +1,30 @@
1
+ bum
2
+ catty
3
+ wobble
4
+ colly
5
+ phobia
6
+ bumber
7
+ shoot
8
+ gag
9
+ lolly
10
+ snolly
11
+ toon
12
+ bro
13
+ poopy
14
+ drama
15
+ quire
16
+ lick
17
+ crabby
18
+ smelly
19
+ ass
20
+ jack
21
+ blubber
22
+ doozy
23
+ gibberish
24
+ bitty
25
+ bitch
26
+ wishy
27
+ butt
28
+ cry
29
+ baby
30
+ juicy
@@ -0,0 +1,5 @@
1
+ my
2
+ the
3
+ web
4
+ super
5
+ new
@@ -0,0 +1,3 @@
1
+ pro
2
+ plus
3
+ man
@@ -4,20 +4,54 @@ module Pickaname
4
4
  class Error < StandardError; end
5
5
 
6
6
  class Robot
7
- PREFIX = File.foreach("lib/data/prefix.txt").map { |line| line.split(' ') }
8
- SUFFIX = File.foreach("lib/data/suffix.txt").map { |line| line.split(' ') }
7
+ PREFIX = File.foreach(File.join(File.dirname(__FILE__), 'data', 'prefix.txt')).map { |line| line.split(' ') }
8
+ SUFFIX = File.foreach(File.join(File.dirname(__FILE__), 'data', 'suffix.txt')).map { |line| line.split(' ') }
9
+ FUNNY = File.foreach(File.join(File.dirname(__FILE__), 'data', 'funny.txt')).map { |line| line.split(' ') }
10
+ COMMON = File.foreach(File.join(File.dirname(__FILE__), 'data', 'common.txt')).map { |line| line.split(' ') }
11
+ DARK = File.foreach(File.join(File.dirname(__FILE__), 'data', 'dark.txt')).map { |line| line.split(' ') }
12
+
9
13
  PREFIX_SIZE = 1
10
14
  SUFFIX_SIZE = 1
11
15
 
12
16
  attr_reader :name
13
17
 
14
18
  def initialize()
15
- @name = pseudo_name
19
+ @name = random_string
20
+ end
21
+
22
+ # def self.pseudo
23
+ # @name = PREFIX.sample(PREFIX_SIZE).join << SUFFIX.sample(SUFFIX_SIZE).join
24
+ # end
25
+
26
+ def self.common
27
+ @name = COMMON.sample(PREFIX_SIZE).join << COMMON.sample(SUFFIX_SIZE).join
28
+ end
29
+
30
+ def self.funny
31
+ @name = COMMON.sample(PREFIX_SIZE).join << FUNNY.sample(SUFFIX_SIZE).join
16
32
  end
17
33
 
18
- def self.pseudo
19
- @name = PREFIX.sample(PREFIX_SIZE).join << SUFFIX.sample(SUFFIX_SIZE).join
34
+ def self.dark
35
+ @name = COMMON.sample(PREFIX_SIZE).join << DARK.sample(SUFFIX_SIZE).join
20
36
  end
21
37
 
38
+ def self.random_letters(record = Robot.new)
39
+ @name = record.random_string
40
+ end
41
+
42
+ def random_string
43
+ down = ('a'..'z').to_a
44
+ up = ('A'..'Z').to_a
45
+ digits = ('0'..'9').to_a
46
+ [extract1(down), extract1(up), extract1(digits)].
47
+ concat(((down+up+digits).sample(8))).shuffle.join
48
+ end
49
+
50
+ def extract1(arr)
51
+ i = arr.size.times.to_a.sample
52
+ c = arr[i]
53
+ arr.delete_at(i)
54
+ c
55
+ end
22
56
  end
23
57
  end
@@ -1,3 +1,3 @@
1
1
  module Pickaname
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickaname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-08-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Randomly generates a name
14
14
  email:
@@ -24,8 +24,14 @@ files:
24
24
  - LICENSE.txt
25
25
  - README.md
26
26
  - Rakefile
27
+ - _config.yml
27
28
  - bin/console
28
29
  - bin/setup
30
+ - lib/data/common.txt
31
+ - lib/data/dark.txt
32
+ - lib/data/funny.txt
33
+ - lib/data/prefix.txt
34
+ - lib/data/suffix.txt
29
35
  - lib/pickaname.rb
30
36
  - lib/pickaname/version.rb
31
37
  - pickaname.gemspec