emoticon_fontify 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,5 @@
1
1
  module EmoticonFontify
2
2
  module EmoticonHelper
3
- def emoticon_fontify(content)
4
- h(content).to_str.gsub(/(#{EmoticonFontify.emoticons.join('|')})/) do |match|
5
- '<span class="' + EmoticonFontify.emoticon_to_class(match) + '">' + match + '</span>'
6
- end.html_safe if content.present?
7
- end
3
+
8
4
  end
9
5
  end
@@ -32,4 +32,10 @@ module EmoticonFontify
32
32
 
33
33
  emoticons_to_classes[emote_variations.flatten]
34
34
  end
35
+
36
+ def self.emoticon_fontify(content)
37
+ h(content).to_str.gsub(/(#{emoticons.join('|')})/) do |match|
38
+ '<span class="' + emoticon_to_class(match) + '">' + match + '</span>'
39
+ end.html_safe if content.present?
40
+ end
35
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emoticon_fontify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  requirements: []
52
52
  rubyforge_project:
53
- rubygems_version: 1.8.23
53
+ rubygems_version: 1.8.24
54
54
  signing_key:
55
55
  specification_version: 3
56
56
  summary: Emoticon font assets