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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f961b0af862777f64762aac747a4203605eeddd9
4
- data.tar.gz: 954e125cef1a258cba0fe8ef47ab208e4d48ad30
3
+ metadata.gz: 0f7a2df156ef2dc1251db2521e5522ba2ea7447e
4
+ data.tar.gz: 5351f00f7b25764e4928e25dd7532e25ca74ea12
5
5
  SHA512:
6
- metadata.gz: bf7f0f1718e6c59219b5c03c28a398f2d02373e59b571f521bdbdbcff3a8235087c831194fb511e54bc74548894f68b5883e52a10ba079cc918b2a57cc68f7fe
7
- data.tar.gz: f7119bb6902dc21c698c4aa36aa32bc188d1e3a2452533ef17a9f91563fea28c2aef0dd4782dee5ec48af983b7c52d7216855c24aa211fa7c4245c37ef213f83
6
+ metadata.gz: f4a00e75d5f202555740934e1f83edc8e1cb1a5e1737d53973a3346d4edb8e71d6ba171352c4b322d0606a5b98b95ee7ca5b1ae3fc06f1632f5d17d9d85cefee
7
+ data.tar.gz: 35c1eeb0fcef18172f179c62871192a99722fec2e0b2830afce4da83db4a79dc2cc2c4f7c50ec2810852db7ba23ab050c9018b73363134e95f9bddd8e8bca204
@@ -1,6 +1,6 @@
1
1
  class Emojify
2
2
  constructor: ->
3
- @normal_tags = /:\w+:/g
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
@@ -1,3 +1,3 @@
1
1
  module Gemojifyjs
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler