remoji 0.0.8 → 0.0.9

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +21 -3
  3. data/lib/remoji.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c75476c47ca7b6c763454e478fd9799bce7c53faf3e07dbb918b6dcfe2f7cfb6
4
- data.tar.gz: 48f4c44378c1c6974bc65e337b9fa375d68c3f11b70ca9009937aeefa80acfeb
3
+ metadata.gz: dc2bfd9cd57f71d2bd03569109b5274c93d112c86e3b822d863a7af19254a802
4
+ data.tar.gz: ae32ee840920e677e19528b650e7efae139264e9b6d29403f97f60538b552016
5
5
  SHA512:
6
- metadata.gz: aaf22d4a603b6e68c3ddc65e34b585cc04046999ffd73c7f4d91389d926434bab57b99a1bdc1a88988144aefa621678f64b29d7f541e4fab72174563a28f46de
7
- data.tar.gz: bee77b6c23833062797fb0d63d9160755cd5e7c81f8e427722e4011b166ba6a168b5ede7b734cf396ea563de236d37e20c76f0d79297325b2867c6c4840761e5
6
+ metadata.gz: 8b8c3a8f9844562ec902d9bd0b284d606a6506521677f0397e801c6d6e11ca1f0d4096b735456df37045311a6d14bfd7260c7dbb65b97d34b2a5347092bf9dd2
7
+ data.tar.gz: d4131760122704a5bf7e8c917afb51e9040d489672120721b9a84f9564fbcfbef622f75e3c36f361209effd168ec7aa34ea8c51b7601065c4c552d3b9ac83ca6
data/README.adoc CHANGED
@@ -4,6 +4,11 @@ Doc Writer <tj@rubyists.com>
4
4
  :toc:
5
5
 
6
6
  Remoji is a simple emoji command line tool. It will search for and output emojis.
7
+ This was written in order to be able to easily script emojis in various terminal
8
+ and command line interfaces (specifically for irssi, initially). Inspired by
9
+ `em-keyboard`, a python program which was meant to do the same. However, the output
10
+ of `em-keyboard` was not suitable for piping to `xclip` (or in fact to piping at all).
11
+ Remoji consists of a single executable, `emj`.
7
12
 
8
13
  == Installation
9
14
  ----
@@ -16,14 +21,19 @@ NOTE: The first time emj runs, it will offer to import an emoji database. You
16
21
  must have internet access for this
17
22
 
18
23
  ----
24
+ % emj --help
25
+
19
26
  emj [options] EMOJI ANOTHER_EMOJI ...
20
27
 
21
28
  Where EMOJI is an emoji name to search for
22
29
  -c, --cat CAT Find matches in a category
23
30
  -s, --subcat CAT Find matches in a subcategory
24
31
  -n, --no-details Just print the emojis
25
- --subs, --subcategories
26
- --cats, --categories
32
+ --subs, --subcategories List subcategories
33
+ --cats, --categories List Categories
34
+ -v, --verbose Increase verbosity
35
+ -e, --exact Exactly match the emoji given, do not search for it
36
+ -r, --regex Consider each argument a regular expression
27
37
  -h, --help
28
38
  ----
29
39
 
@@ -37,7 +47,7 @@ cat face: 🐱
37
47
  cat: 🐈
38
48
  ----
39
49
 
40
- Without any metadata (-n)
50
+ Same search without any metadata (-n)
41
51
 
42
52
  ----
43
53
  % emj -n -c Animal cat
@@ -82,3 +92,11 @@ sponge: 🧽
82
92
  fire extinguisher: 🧯
83
93
  shopping cart: 🛒
84
94
  ----
95
+
96
+ Print the emoji that exactly matches 'cat'
97
+
98
+ ----
99
+ % emj -ne cat
100
+
101
+ 🐈
102
+ ----
data/lib/remoji.rb CHANGED
@@ -151,7 +151,7 @@ class Remoji # rubocop:disable Metrics/ClassLength
151
151
  end
152
152
 
153
153
  def regex_opt(opt)
154
- opt.on('-r', '--regex', 'Consider each argument a regular expressoin') { @options.regex = true }
154
+ opt.on('-r', '--regex', 'Consider each argument a regular expression') { @options.regex = true }
155
155
  end
156
156
 
157
157
  def verbose_opt(opt)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - tj@rubyists.com