remoji 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/remoji.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c49df6ca2064881a0d6fd1c5d703dc1ed0fc7a0dbfdbc930ee9aaa54f556c4ae
4
- data.tar.gz: fcae6f35e1b55052dde960dc218aca20d3ce200af8f510756d05a8ec24d6bec4
3
+ metadata.gz: 6ae3aea0a8f9827bddb9c49ed0d859624e4103f3632e210c7836127abc610074
4
+ data.tar.gz: 63f467ac5b178839e00d096658da9d5351cc0d20e8ccbe3a158c07ac57a35ff4
5
5
  SHA512:
6
- metadata.gz: fd8a811986ceedf75c1aeab50d105b4ecada1d9a6aa24fc11e0528341e51f19a29bd714c8d742afe47baa08ff9bcce4720bdadada2740d9561aaa1d50472608b
7
- data.tar.gz: 1dc7e6e73aeb87b9b873e2ad4fff9a92c55b9c08c91203e02aeabb07efcb78cf0b8b2c68e4cb95e599eda2dc34dca3f25b2f3f20a84473d56fc11763f3c177b6
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(' ').squeeze(' ')
221
+ end.join(join_char).squeeze(join_char)
221
222
  end
222
223
  end
223
224
 
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - tj@rubyists.com