remoji 0.2.0 → 0.2.1

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 +17 -3
  3. data/lib/remoji.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8726b1419bb4466309d2cba91ebed4da62334560a09690d091e5136cd5b2b8c
4
- data.tar.gz: e582403321f9c4d462f541d924d021c4d8760b82a91c3fe903bfbc6ce6ced7f4
3
+ metadata.gz: 4d2faaf80c9a16a161c39738eef7e5ab0e32eb5b754af3c10ed0b76fdcff61dc
4
+ data.tar.gz: 892639d62b47da9001dc72a191b8bfb39c8a2b7395c66d0e32097050ac29f9ce
5
5
  SHA512:
6
- metadata.gz: 47cc546e38e03e79bd45460562a2dde345461886f0df52e6de4d07bd771cd483d1e98932eb968aa8992bd84a3150dc28c435036d244396170207c2de253039db
7
- data.tar.gz: 5486e83886f85ba783c013937764ab91c26d077ece40e4e88840bfa2f96e999f3bf8a5fa147965f6234dded6e3bacf452b8328dcc259d9b6d620ff4266b9bd30
6
+ metadata.gz: 3e923305fadb64e51d39337cdc208ded327dfc159ad229ed4af25257daa9960c295760d299a650d9df42e24202f6aa9c6b2b6ef7233bf32ae08222c659c8d2df
7
+ data.tar.gz: 363fb1498ac4d5969863044dc267a72e165961b743d69550ee17482f144c56f8ae1be8a80ba6a585045ec0dc755d320e880747920c6881268bc79df826cf4160
data/README.adoc CHANGED
@@ -145,18 +145,32 @@ Print Jenny's number
145
145
 
146
146
  ### (R)Emoji!
147
147
 
148
- Set some aliases up for fun/common stuff
148
+ Set further aliases up for fun/common stuff
149
149
 
150
150
  ----
151
- /alias smiles /emj -s smiles
151
+ /alias smiles /emj -s :smiles:
152
152
  /smiles
153
153
  11/09-14:32 < bougyman> 😀 😃 😄 😁 😆 😅 🤣 😂 🙂 🙃 😉 😊 😇
154
154
  11/09-14:32 -=- Irssi: process 0 (emj -n -s smiling) terminated with return code 0
155
- /alias monkeysee /emj 'evil monkey'
155
+ /alias monkeysee /emj :evil monkey:
156
156
  11/09-14:33 < bougyman> 🙈 🙉 🙊
157
157
  11/09-14:33 -=- Irssi: process 0 (emj -n 'evil monkey') terminated with return code 0
158
158
  ----
159
159
 
160
+ Or just use casually.
161
+
162
+ ----
163
+ /emj The :cow: jumped over the :moon:
164
+ 11/16-21:41 <bougyman> The 🤠 🐮 🐄 jumped over the 🥮 🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘 🌙 🌚 🌛 🌜 🌝 🎑
165
+ ----
166
+
167
+ Get more exact
168
+
169
+ ----
170
+ /emj -e The :cow: jumped over the :full moon:.
171
+ 11/16-21:41 <bougyman> The 🐄 jumped over the 🌕.
172
+ ----
173
+
160
174
  ## Test your Emoji Support
161
175
 
162
176
  This is every emoji defined in http://unicode.org/emoji/charts/full-emoji-list.html[The Full Unicode Emoji List]
data/lib/remoji.rb CHANGED
@@ -148,8 +148,8 @@ class Remoji # rubocop:disable Metrics/ClassLength
148
148
  end
149
149
 
150
150
  def replace_emojis(string)
151
- string.gsub(/:[^:]+:/) do |r|
152
- string_for r[1..-2]
151
+ string.gsub(/:[^:]*:/) do |r|
152
+ r == '::' ? '' : string_for(r[1..-2])
153
153
  end
154
154
  end
155
155
 
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tj@rubyists.com