gemojifyjs 0.0.3 → 0.0.4.2
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 +4 -2
- 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: 3793e94c270052d706d936e6e87577f26819fb06
|
4
|
+
data.tar.gz: c70047904d291440ea5a3af80a4e73fee0f3555b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbd474d26af147d94f14dca10dfe80ee8a77a5b66a23f81eda0cd3c65303d900288a71f5e69220f02e353f319268c0f51d1a016a4b5969a40fc211e700cd3685
|
7
|
+
data.tar.gz: f21feb27cfa6c6a0b805ac9c068ebfacb10c8f586ea585333c26fe7c5e8da9b16557d095a58fe6a707d773e1dbab5c06522a05b360fc55a241f1790c86303b7e
|
@@ -26,9 +26,11 @@ class Emojify
|
|
26
26
|
|
27
27
|
markup: (text) ->
|
28
28
|
for match in text.match(@normal_tags) or []
|
29
|
-
|
29
|
+
markup = match.substring(1, match.length-1)
|
30
|
+
text = text.replace(match, "<span class='emojify #{markup.toLowerCase()}' title='#{markup}'></span>")
|
30
31
|
for smiley in @smileys
|
31
|
-
|
32
|
+
for match in text.match(smiley[0]) or []
|
33
|
+
text = text.replace(match, "<span class='emojify #{smiley[1]}' title='#{match}'></span>")
|
32
34
|
return text
|
33
35
|
|
34
36
|
window.emojify = new Emojify
|
data/lib/gemojifyjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Breyer-Menke
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.0.
|
88
|
+
rubygems_version: 2.0.5
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Gem for emojify.js
|