gemojifyjs 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/gemojifyjs/emojify.js.coffee +3 -3
- data/lib/gemojifyjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f7a2df156ef2dc1251db2521e5522ba2ea7447e
|
4
|
+
data.tar.gz: 5351f00f7b25764e4928e25dd7532e25ca74ea12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4a00e75d5f202555740934e1f83edc8e1cb1a5e1737d53973a3346d4edb8e71d6ba171352c4b322d0606a5b98b95ee7ca5b1ae3fc06f1632f5d17d9d85cefee
|
7
|
+
data.tar.gz: 35c1eeb0fcef18172f179c62871192a99722fec2e0b2830afce4da83db4a79dc2cc2c4f7c50ec2810852db7ba23ab050c9018b73363134e95f9bddd8e8bca204
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Emojify
|
2
2
|
constructor: ->
|
3
|
-
@normal_tags =
|
3
|
+
@normal_tags = /:[-\w]+:/g
|
4
4
|
@smileys = [
|
5
5
|
[/:-*\)/g, 'blush'],
|
6
6
|
[/:-*o/gi, 'scream'],
|
@@ -26,9 +26,9 @@ class Emojify
|
|
26
26
|
|
27
27
|
markup: (text) ->
|
28
28
|
for match in text.match(@normal_tags) or []
|
29
|
-
text = text.replace(match, "<span class='emojify #{match.substring(1, match.length-1).toLowerCase()}'></span>")
|
29
|
+
text = text.replace(match, "<span class='emojify #{match.substring(1, match.length-1).toLowerCase()}' title='#{match}'></span>")
|
30
30
|
for smiley in @smileys
|
31
|
-
text = text.replace(smiley[0], "<span class='emojify #{smiley[1]}'></span>")
|
31
|
+
text = text.replace(smiley[0], "<span class='emojify #{smiley[1]}' title='#{match}'></span>")
|
32
32
|
return text
|
33
33
|
|
34
34
|
window.emojify = new Emojify
|
data/lib/gemojifyjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemojifyjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Breyer-Menke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|