Twitter Emoji

This commit is contained in:
Yuki 2015-06-13 20:23:11 +05:30
parent 6ad9dc4a26
commit f65bfa9e75
3 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,8 @@ gem 'fog-aws'
gem 'momentjs-rails', '>= 2.9.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.7.14'
gem 'twemoji-rails'
gem 'ruby-progressbar'
gem 'rails_admin'

View File

@ -435,6 +435,8 @@ GEM
simple_oauth
turbolinks (2.5.3)
coffee-rails
twemoji-rails (1.2.1.3)
railties (>= 3.0.0)
twitter (5.14.0)
addressable (~> 2.3)
buftok (~> 0.2.0)
@ -533,6 +535,7 @@ DEPENDENCIES
thin
tumblr_client
turbolinks
twemoji-rails
twitter
uglifier (>= 1.3.0)
unicorn

View File

@ -3,6 +3,7 @@
#= require jquery.turbolinks
#= require turbolinks
#= require bootstrap
#= require twemoji
#= require nprogress
#= require nprogress-turbolinks
#= require growl
@ -64,5 +65,17 @@ _ready = ->
dotColor: '#5e35b1'
lineColor: '#5e35b1'
if twemoji?
twemoji.parse document.body,
size: 16
callback: (icon, options) ->
switch icon
# copyright, registered, trademark
when 'a9' or 'ae' or '2122'
false
else
''.concat(options.base, options.size, '/', icon, options.ext)
$(document).ready _ready
$(document).on 'page:load', _ready