remoji 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remoji.rb +2 -1
- 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: 6ae3aea0a8f9827bddb9c49ed0d859624e4103f3632e210c7836127abc610074
|
4
|
+
data.tar.gz: 63f467ac5b178839e00d096658da9d5351cc0d20e8ccbe3a158c07ac57a35ff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8521de7667461162c1b29a37aca3f3d474f382ac19aff9abd3109255ade26222bfd5868d70dbae6b88d807cdb9932184dd540df6afd97da1e9aea50d8dab760e
|
7
|
+
data.tar.gz: 0d449ec0292aff89802512fa8edcfd3ba7c3aa0829d291ec0d41690f15e4ee2e8f76c803e0dd3bbc7f204d3936f9647b211aa571a6bf866e7f2660a80937f45e
|
data/lib/remoji.rb
CHANGED
@@ -208,6 +208,7 @@ class Remoji # rubocop:disable Metrics/ClassLength
|
|
208
208
|
def display(them) # rubocop:disab
|
209
209
|
die! 'No matching emojis found', 2 if them.empty?
|
210
210
|
|
211
|
+
join_char = @options.no ? ' ' : "\n"
|
211
212
|
them.map do |name, attrs|
|
212
213
|
attrs ||= { sym: name.split('S:').last, type: 'Raw String' }
|
213
214
|
if @options.no
|
@@ -217,7 +218,7 @@ class Remoji # rubocop:disable Metrics/ClassLength
|
|
217
218
|
else
|
218
219
|
[attrs[:sym], name].join(' : ')
|
219
220
|
end
|
220
|
-
end.join(
|
221
|
+
end.join(join_char).squeeze(join_char)
|
221
222
|
end
|
222
223
|
end
|
223
224
|
|