rails_emoji 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,14 +9,14 @@
9
9
 
10
10
  ## Installation
11
11
 
12
- * Add to your Gemfile: `gem 'rails_emoji', '~> 1.2'`, then: `$ bundle`.
12
+ * Add to your Gemfile: `gem 'rails_emoji', '~> 1.3'`, then: `$ bundle`.
13
13
 
14
- * Or, download the [rails_emoji-1.2.gem](https://github.com/jsw0528/rails_emoji/raw/master/rails_emoji-1.2.gem), then `$ gem install ./rails_emoji-1.2.gem --no-ri --no-rdoc`.
14
+ * Or, download the [rails_emoji-1.3.gem](https://github.com/jsw0528/rails_emoji/raw/master/rails_emoji-1.3.gem), then `$ gem install ./rails_emoji-1.3.gem --no-ri --no-rdoc`.
15
15
 
16
16
  ## Usage
17
17
 
18
18
  ```ruby
19
- ":smile:".emoji_to_html
19
+ ":smile:".emojify
20
20
  # output: "<img src="/assets/emojis/smile.png" width="20" height="20" title=":smile:" alt=":smile:" class="emoji" />"
21
21
 
22
22
  RailsEmoji.render ":smile:", :host => "http://MrZhang.me", :size => 64, :class => "emoji-smile"
@@ -29,7 +29,7 @@ end
29
29
  # extend to String class
30
30
  class String
31
31
 
32
- def emoji_to_html
32
+ def emojify
33
33
  RailsEmoji.render(self)
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module RailsEmoji
2
- VERSION = "1.2"
2
+ VERSION = "1.3"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_emoji
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 2
9
- version: "1.2"
8
+ - 3
9
+ version: "1.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jay-Jay.Zhang (http://MrZhang.me/)