remoji 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +8 -0
- data/lib/remoji.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6536981d41d7c2adc112def4b1f5bda0302a91eb5dc626d036a33563e286a03
|
4
|
+
data.tar.gz: c25a80438db3aa86c56f1abeb9af9a16e8127a0f5839ec1d3274d7955d105651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 952bfa6602ddde8822e882fe26cd1fc9eb06ea0ab3dc4111f949cd3f1ff914f8170942ece0b417c7a7451fe921494baccbe6bde203a9dc6d81667081f436d6e0
|
7
|
+
data.tar.gz: 7163093ba99e46fc84a7292a6bfdfdfa5e0ecd449d55cf4aaf945df10b3bbf38dd75205de6f806530e1fc674fae09edad338ed89bbf3ee8f4bc9cdb0e38612dd
|
data/README.adoc
CHANGED
@@ -100,3 +100,11 @@ Print the emoji that exactly matches 'cat'
|
|
100
100
|
|
101
101
|
🐈
|
102
102
|
----
|
103
|
+
|
104
|
+
Print Jenny's number
|
105
|
+
|
106
|
+
----
|
107
|
+
% emj 'keycap: 8' 'keycap: 6' 'keycap: 7' 'minus sign' 'minus sign' 'keycap: 5' 'keycap: 3' 'keycap: 0' 'keycap: 9' -n
|
108
|
+
|
109
|
+
8️⃣ 6️⃣ 7️⃣ ➖ 5️⃣ 3️⃣ 0️⃣ 9️⃣
|
110
|
+
----
|
data/lib/remoji.rb
CHANGED
@@ -111,9 +111,9 @@ class Remoji # rubocop:disable Metrics/ClassLength
|
|
111
111
|
exit
|
112
112
|
end
|
113
113
|
|
114
|
-
found =
|
114
|
+
found = []
|
115
115
|
args.each do |arg|
|
116
|
-
found
|
116
|
+
found << find_in_filter_hash(arg)
|
117
117
|
end
|
118
118
|
|
119
119
|
output found
|
@@ -186,9 +186,11 @@ class Remoji # rubocop:disable Metrics/ClassLength
|
|
186
186
|
|
187
187
|
def output(them)
|
188
188
|
if @options.no
|
189
|
-
puts them.map { |
|
189
|
+
puts them.map { |k| k[k.keys.first][:sym] }.join(' ')
|
190
190
|
else
|
191
|
-
them.each do |k
|
191
|
+
them.each do |k|
|
192
|
+
key = k.keys.first
|
193
|
+
v = k[key]
|
192
194
|
if @options.verbose.positive?
|
193
195
|
puts "#{k}: #{v}"
|
194
196
|
else
|