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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac110dc06b6a7d007b8a84353a6cebf181b9cbc36e43c6984987bf79ace862ff
4
- data.tar.gz: 3904670ca97d38c8a744f5d1ac1483fa9428e6c529bbe66aee375a3ae5dd37bf
3
+ metadata.gz: d64111c0b44ceb6e2ab26ad375e9bdbd312bb2018a31cc3e7474535f06bda3c3
4
+ data.tar.gz: 289ed218a56e7e96eb8484cf51925ba7c6253fd7a14551480a3cca869e96bf4f
5
5
  SHA512:
6
- metadata.gz: 2c9002150b8793cdf53fe047bb24aca1c33c47286a50b004d1d4719b5a6b7714464d3bcd762ea7d0018b27e62d0f0e496aac2bb8aa4452077f08067a0dc0e64e
7
- data.tar.gz: aec1484fe1574442d32b73d04e8de1b91e77a02b6d608dc46127d3dc5aa5a124fdbe85a552459e382076e1b423e9e4e40776bb1f689ca49022a80a7557013c99
6
+ metadata.gz: 69bd8b02ed70ec355748210b555e46fcdf48076542f3d585ab04ea1eb230e4fca4ec973a2d7b82fef4431d415496829204bc8528dda1925a9f320b8cb06dfcad
7
+ data.tar.gz: 8dc0949dff0567e1e5080ccd54a2d491a523ba6104a6368d7fd094cf4468499daef1ad83d5b0114a6c04f33c3f2dda9e89e7d165525e6e6630ec651a9a92bb72
@@ -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.5.1, rbenv: 3.3.4) [gem]" level="application" />
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.12.0, rbenv: 3.3.4) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.12.3, rbenv: 3.3.4) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.12.4, rbenv: 3.3.4) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.12.3, rbenv: 3.3.4) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.12.2, rbenv: 3.3.4) [gem]" level="application" />
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
@@ -1,5 +1,9 @@
1
1
  ## Changelog
2
2
 
3
+ ## [0.2.0] - 2025-03-18
4
+ ### Added
5
+ - Added square cool name generator
6
+
3
7
  ## [0.1.1] - 2025-03-16
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # CoolNameGen
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/cool_name_gen.svg?icon=si%3Arubygems)](https://badge.fury.io/rb/cool_name_gen)
4
+
3
5
  Generate cool names from boring latin characters.
4
6
 
5
7
  ## Installation
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CoolNameGen
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  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
@@ -1,5 +1,6 @@
1
1
  module CoolNameGen
2
2
  module CharMappings
3
3
  CHAR_TO_NUM_MAP: hash[string, string]
4
+ CHAR_TO_SQUARE_MAP: hash[string, string]
4
5
  end
5
6
  end
@@ -2,4 +2,6 @@ module CoolNameGen
2
2
  VERSION: String
3
3
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
4
  def self.to_alphanumeric: -> string
5
+
6
+ def self.to_square: -> string
5
7
  end
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.1.2
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-16 00:00:00.000000000 Z
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