gemoji-cli 1.1.0 → 1.1.1

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: 9283afcf866c4b61bb6f5b374ba6fce3871d788dde3bcea098f77a7fc0a1e21e
4
- data.tar.gz: 6e307b2e43b8dec3b05c18da8bb77ed5ca12dbab9066a697c73cff96db0bccfd
3
+ metadata.gz: b91ef8ccf0c6d4e258cfc1ba0f534a2a6e3f327e8edd103910b11dc6e04ee155
4
+ data.tar.gz: 8e89138ad680b99c76a03dbbe541b2c601f2eb5921d90a92fa412a52a32dc78c
5
5
  SHA512:
6
- metadata.gz: d99a83870f3c610a221107e5001e1553cdcd5e8c47118fe496e2aaf7295855e217b0e5d84504e4bdf369888798ec0210be6bb144563a87e8e368987002044e50
7
- data.tar.gz: 8c9454b291599d081d81282abd375386ca50fef6ecca97009ead38c741d5814ddd17c122c7e51bc1c2b75c5c914c7c1c5e2a273991f81008ad8c16d82ffa5354
6
+ metadata.gz: 217ad99e67c360650e88c811438861f8350aa27b774a2df284336ed6643639419751b2c81f54ba6611539904ecc8e6484230b4742423b2b6716ce042c6f6a4c2
7
+ data.tar.gz: a9885fceed92910a6c2f4940aeb7a707b504c019c865d5992f3176428fc031ec8b0699efbf8dc91a45287d7ad267c75b3d53f36c39300396ba0db9580841d719
data/.rubocop.yml CHANGED
@@ -1,39 +1,41 @@
1
- ---
2
1
  AllCops:
3
2
  DisplayCopNames: true
4
3
  DisplayStyleGuide: true
5
4
  EnabledByDefault: true
6
5
  Exclude:
7
- - bin/**/*
8
- - vendor/**/*
6
+ - bin/**/*
7
+ - vendor/**/*
9
8
  ExtraDetails: true
9
+ NewCops: enable
10
10
  TargetRubyVersion: 3.2
11
11
  UseCache: true
12
+
12
13
  inherit_mode:
13
14
  merge:
14
- - Exclude
15
+ - Exclude
16
+
15
17
  plugins:
16
- - rubocop-performance
17
- - rubocop-rake
18
- - rubocop-rspec
19
- - rubocop-thread_safety
20
- require: []
21
- inherit_from:
22
- - .rubocop_todo.yml
23
- - .rubocop/bundler.yml
24
- - .rubocop/gemspec.yml
25
- - .rubocop/layout.yml
26
- - .rubocop/lint.yml
27
- - .rubocop/metrics.yml
28
- - .rubocop/migration.yml
29
- - .rubocop/naming.yml
30
- - .rubocop/performance.yml
31
- - .rubocop/rspec.yml
32
- - .rubocop/rake.yml
33
- - .rubocop/security.yml
34
- - .rubocop/style.yml
35
- - .rubocop/threadsafety.yml
18
+ - rubocop-performance
19
+ - rubocop-rake
20
+ - rubocop-rspec
21
+ - rubocop-thread_safety
22
+
23
+ inherit_gem:
24
+ docquet:
25
+ - config/cops/bundler.yml
26
+ - config/cops/gemspec.yml
27
+ - config/cops/layout.yml
28
+ - config/cops/lint.yml
29
+ - config/cops/metrics.yml
30
+ - config/cops/naming.yml
31
+ - config/cops/performance.yml
32
+ - config/cops/rake.yml
33
+ - config/cops/rspec.yml
34
+ - config/cops/security.yml
35
+ - config/cops/style.yml
36
+ - config/cops/thread_safety.yml
36
37
 
38
+ inherit_from: .rubocop_todo.yml
37
39
 
38
40
  Style/DisableCopsWithinSourceCodeDirective:
39
41
  AllowedCops:
data/.rubocop_todo.yml CHANGED
@@ -1,7 +1,20 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
3
- # using RuboCop version 1.72.2.
3
+ # using RuboCop version 1.81.7.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # This cop supports safe autocorrection (--autocorrect).
10
+ # Configuration parameters: AllowedCops.
11
+ Style/DisableCopsWithinSourceCodeDirective:
12
+ Exclude:
13
+ - 'lib/gemoji/cli/commands/list.rb'
14
+
15
+ # Configuration parameters: AllowedMethods, RequireForNonPublicMethods.
16
+ Style/DocumentationMethod:
17
+ Exclude:
18
+ - 'lib/gemoji/cli/commands/filter.rb'
19
+ - 'lib/gemoji/cli/commands/list.rb'
20
+ - 'lib/gemoji/cli/commands/version.rb'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.1] - 2025-11-02
4
+
5
+ ### Changed
6
+ - Bump minimum version requirement of ruby to 3.2
7
+
8
+ ### Development
9
+ - Use Trusted Publishing for RubyGems releases via GitHub Actions OIDC
10
+
3
11
  ## [1.1.0] - 2025-03-06
4
12
  - Loosen version requirement of ruby to 3.2.7
5
13
 
data/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  :construction: **This project is under active development** :construction:
4
4
 
5
- A command-line interface for searching and displaying emoji characters from your terminal. Built on top of GitHub's [gemoji](https://github.com/github/gemoji) library, this tool provides an easy way to find and use emojis in your daily terminal work.
5
+ A command-line interface for converting emoji codes to Unicode characters and listing available emojis. Built on top of GitHub's [gemoji](https://github.com/github/gemoji) library, this tool provides an easy way to work with emojis in your terminal.
6
6
 
7
7
  ## Features
8
8
 
9
- - :mag: Search emojis by name, description, or aliases
10
- - :dart: Exact and fuzzy matching support
9
+ - :arrows_counterclockwise: Convert GitHub-style emoji codes (`:emoji_name:`) to Unicode characters
10
+ - :page_facing_up: List all available emojis in Markdown or CSV format
11
11
  - :computer: Cross-platform support
12
12
 
13
13
  ## Installation
@@ -18,22 +18,16 @@ gem install gemoji-cli
18
18
 
19
19
  ## Usage
20
20
 
21
- ### Basic Search
21
+ ### Filter Emoji Codes
22
22
 
23
- Search for emoji by name:
23
+ Convert emoji codes in standard input to Unicode characters:
24
24
 
25
25
  ```bash
26
- gemoji search smile
26
+ echo "Hello :smile: :wave:" | gemoji filter
27
+ # Output: Hello 😊 👋
27
28
  ```
28
29
 
29
- This will display all emojis with "smile" in their name, description, or aliases:
30
-
31
- ```
32
- 😊 smile - smiling face with smiling eyes
33
- 😃 smiley - grinning face with big eyes
34
- 😄 smile_cat - grinning cat with smiling eyes
35
- ...
36
- ```
30
+ This will convert all valid emoji codes (`:emoji_name:`) to their corresponding Unicode characters. Custom emoji codes will remain unchanged.
37
31
 
38
32
  ### List All Emojis
39
33
 
@@ -43,6 +37,31 @@ Display all available emojis:
43
37
  gemoji list
44
38
  ```
45
39
 
40
+ By default, this will output a Markdown-formatted table:
41
+
42
+ ```markdown
43
+ | Name | Raw |
44
+ |------|-----|
45
+ | :smile: | 😊 |
46
+ | :wave: | 👋 |
47
+ ...
48
+ ```
49
+
50
+ You can also get the output in CSV format:
51
+
52
+ ```bash
53
+ gemoji list --format=csv
54
+ ```
55
+
56
+ This will output:
57
+
58
+ ```csv
59
+ Name,Raw
60
+ :smile:,😊
61
+ :wave:,👋
62
+ ...
63
+ ```
64
+
46
65
  ## Development
47
66
 
48
67
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Gemoji
4
4
  module CLI
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  public_constant :VERSION
7
7
  end
8
8
  end
data/mise.toml CHANGED
@@ -2,4 +2,4 @@
2
2
  _.path = ["bin", "exe"]
3
3
 
4
4
  [tools]
5
- ruby = "3.2.7"
5
+ ruby = "3.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemoji-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-06 00:00:00.000000000 Z
11
+ date: 2025-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 3.2.7
99
+ version: 3.2.8
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="