cool_name_gen 0.1.2 → 0.2.0
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 +4 -4
- data/.idea/cool_name_gen.iml +10 -6
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/lib/cool_name_gen/char_mappings.rb +33 -3
- data/lib/cool_name_gen/version.rb +1 -1
- data/lib/cool_name_gen.rb +4 -0
- data/sig/cool_name_gen/char_mappings.rbs +1 -0
- data/sig/cool_name_gen.rbs +2 -0
- metadata +45 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d64111c0b44ceb6e2ab26ad375e9bdbd312bb2018a31cc3e7474535f06bda3c3
|
|
4
|
+
data.tar.gz: 289ed218a56e7e96eb8484cf51925ba7c6253fd7a14551480a3cca869e96bf4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69bd8b02ed70ec355748210b555e46fcdf48076542f3d585ab04ea1eb230e4fca4ec973a2d7b82fef4431d415496829204bc8528dda1925a9f320b8cb06dfcad
|
|
7
|
+
data.tar.gz: 8dc0949dff0567e1e5080ccd54a2d491a523ba6104a6368d7fd094cf4468499daef1ad83d5b0114a6c04f33c3f2dda9e89e7d165525e6e6630ec651a9a92bb72
|
data/.idea/cool_name_gen.iml
CHANGED
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
|
9
9
|
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
10
10
|
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
11
|
+
<excludeFolder url="file://$MODULE_DIR$/coverage" />
|
|
11
12
|
</content>
|
|
12
13
|
<orderEntry type="inheritedJdk" />
|
|
13
14
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
14
15
|
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 3.3.4) [gem]" level="application" />
|
|
15
16
|
<orderEntry type="library" scope="PROVIDED" name="base64 (v0.1.1, rbenv: 3.3.4) [gem]" level="application" />
|
|
16
17
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.5.11, rbenv: 3.3.4) [gem]" level="application" />
|
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.6.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
18
20
|
<orderEntry type="library" scope="PROVIDED" name="json (v2.7.2, rbenv: 3.3.4) [gem]" level="application" />
|
|
19
21
|
<orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
20
22
|
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.26.3, rbenv: 3.3.4) [gem]" level="application" />
|
|
@@ -24,14 +26,16 @@
|
|
|
24
26
|
<orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, rbenv: 3.3.4) [gem]" level="application" />
|
|
25
27
|
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.9.2, rbenv: 3.3.4) [gem]" level="application" />
|
|
26
28
|
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.3.7, rbenv: 3.3.4) [gem]" level="application" />
|
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.
|
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.
|
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.
|
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.
|
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.
|
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.0.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.0.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.0.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.0.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.0.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
32
34
|
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.56.4, rbenv: 3.3.4) [gem]" level="application" />
|
|
33
35
|
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.30.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
34
36
|
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.17.1, rbenv: 3.3.4) [gem]" level="application" />
|
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.2, rbenv: 3.3.4) [gem]" level="application" />
|
|
35
39
|
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.5.0, rbenv: 3.3.4) [gem]" level="application" />
|
|
36
40
|
</component>
|
|
37
41
|
</module>
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -5,6 +5,7 @@ module CoolNameGen
|
|
|
5
5
|
# CharMappings module
|
|
6
6
|
module CharMappings
|
|
7
7
|
CHAR_TO_NUM_MAP = {
|
|
8
|
+
" " => "_",
|
|
8
9
|
"a" => "4",
|
|
9
10
|
"b" => "6",
|
|
10
11
|
"e" => "3",
|
|
@@ -13,8 +14,37 @@ module CoolNameGen
|
|
|
13
14
|
"l" => "1",
|
|
14
15
|
"o" => "0",
|
|
15
16
|
"s" => "5",
|
|
16
|
-
"z" => "2"
|
|
17
|
-
|
|
17
|
+
"z" => "2"
|
|
18
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
CHAR_TO_SQUARE_MAP = {
|
|
21
|
+
" " => "_",
|
|
22
|
+
"a" => "🄰",
|
|
23
|
+
"b" => "🄱",
|
|
24
|
+
"c" => "🄲",
|
|
25
|
+
"d" => "🄳",
|
|
26
|
+
"e" => "🄴",
|
|
27
|
+
"f" => "🄵",
|
|
28
|
+
"g" => "🄶",
|
|
29
|
+
"h" => "🄷",
|
|
30
|
+
"i" => "🄸",
|
|
31
|
+
"j" => "🄹",
|
|
32
|
+
"k" => "🄺",
|
|
33
|
+
"l" => "🄻",
|
|
34
|
+
"m" => "🄼",
|
|
35
|
+
"n" => "🄽",
|
|
36
|
+
"o" => "🄾",
|
|
37
|
+
"p" => "🄿",
|
|
38
|
+
"q" => "🅀",
|
|
39
|
+
"r" => "🅁",
|
|
40
|
+
"s" => "🅂",
|
|
41
|
+
"t" => "🅃",
|
|
42
|
+
"u" => "🅄",
|
|
43
|
+
"v" => "🅅",
|
|
44
|
+
"w" => "🅆",
|
|
45
|
+
"x" => "🅇",
|
|
46
|
+
"y" => "🅈",
|
|
47
|
+
"z" => "🅉"
|
|
18
48
|
}.freeze
|
|
19
49
|
end
|
|
20
|
-
end
|
|
50
|
+
end
|
data/lib/cool_name_gen.rb
CHANGED
|
@@ -10,4 +10,8 @@ module CoolNameGen
|
|
|
10
10
|
def self.to_alphanumeric(name)
|
|
11
11
|
name.downcase.chars.map { |char| CharMappings::CHAR_TO_NUM_MAP[char] || char }.join
|
|
12
12
|
end
|
|
13
|
+
|
|
14
|
+
def self.to_square(name)
|
|
15
|
+
name.downcase.chars.map { |char| CharMappings::CHAR_TO_SQUARE_MAP[char] || char }.join
|
|
16
|
+
end
|
|
13
17
|
end
|
data/sig/cool_name_gen.rbs
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,57 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cool_name_gen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mohit Kumar Yadav
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-03-
|
|
12
|
-
dependencies:
|
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rspec
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rubocop
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.21'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.21'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: simplecov
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
13
55
|
description: Generate cool names from boring latin characters.
|
|
14
56
|
email:
|
|
15
57
|
- me@only4.dev
|