remoji 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +8 -0
  3. data/lib/remoji.rb +6 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc2bfd9cd57f71d2bd03569109b5274c93d112c86e3b822d863a7af19254a802
4
- data.tar.gz: ae32ee840920e677e19528b650e7efae139264e9b6d29403f97f60538b552016
3
+ metadata.gz: c6536981d41d7c2adc112def4b1f5bda0302a91eb5dc626d036a33563e286a03
4
+ data.tar.gz: c25a80438db3aa86c56f1abeb9af9a16e8127a0f5839ec1d3274d7955d105651
5
5
  SHA512:
6
- metadata.gz: 8b8c3a8f9844562ec902d9bd0b284d606a6506521677f0397e801c6d6e11ca1f0d4096b735456df37045311a6d14bfd7260c7dbb65b97d34b2a5347092bf9dd2
7
- data.tar.gz: d4131760122704a5bf7e8c917afb51e9040d489672120721b9a84f9564fbcfbef622f75e3c36f361209effd168ec7aa34ea8c51b7601065c4c552d3b9ac83ca6
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.merge!(find_in_filter_hash(arg))
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 { |_k, v| v[:sym] }.join(' ')
189
+ puts them.map { |k| k[k.keys.first][:sym] }.join(' ')
190
190
  else
191
- them.each do |k, v|
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
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.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tj@rubyists.com