rails_emoji 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,9 +9,9 @@
9
9
 
10
10
  ## Installation
11
11
 
12
- * Add to your Gemfile: `gem 'rails_emoji', '~> 1.7.0'`, then: `$ bundle`.
12
+ * Add to your Gemfile: `gem 'rails_emoji', '~> 1.7.1'`, then: `$ bundle`.
13
13
 
14
- * Or, download the [rails_emoji-1.7.0.gem](https://rubygems.org/downloads/rails_emoji-1.7.0.gem), then `$ gem install ./rails_emoji-1.7.0.gem --no-ri --no-rdoc`.
14
+ * Or, download the [rails_emoji-1.7.1.gem](https://rubygems.org/downloads/rails_emoji-1.7.1.gem), then `$ gem install ./rails_emoji-1.7.1.gem --no-ri --no-rdoc`.
15
15
 
16
16
  ## Usage
17
17
 
data/lib/rails_emoji.rb CHANGED
@@ -3,6 +3,15 @@ require 'rails_emoji/render'
3
3
  require 'rails_emoji/version'
4
4
 
5
5
  module RailsEmoji
6
+
7
+ def self.host=(host)
8
+ @host = host
9
+ end
10
+
11
+ def self.host
12
+ @host
13
+ end
14
+
6
15
  # People, Nature, Objects, Places, Symbols
7
16
  EMOJI = %w{
8
17
  bowtie smile laughing blush smiley relaxed smirk heart_eyes kissing_heart kissing_closed_eyes flushed relieved satisfied grin wink stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes grinning kissing kissing_smiling_eyes stuck_out_tongue sleeping worried frowning anguished open_mouth grimacing confused hushed expressionless unamused sweat_smile sweat disappointed_relieved weary pensive disappointed confounded fearful cold_sweat persevere cry sob joy astonished scream neckbeard tired_face angry rage triumph sleepy yum mask sunglasses dizzy_face imp smiling_imp neutral_face no_mouth innocent alien yellow_heart blue_heart purple_heart heart green_heart broken_heart heartbeat heartpulse two_hearts revolving_hearts cupid sparkling_heart sparkles star star2 dizzy boom collision anger exclamation question grey_exclamation grey_question zzz dash sweat_drops notes musical_note fire hankey poop shit +1 thumbsup -1 thumbsdown ok_hand punch facepunch fist v wave hand raised_hand open_hands point_up point_down point_left point_right raised_hands pray point_up_2 clap muscle metal fu walking runner running couple family two_men_holding_hands two_women_holding_hands dancer dancers ok_woman no_good information_desk_person raising_hand bride_with_veil person_with_pouting_face person_frowning bow couplekiss couple_with_heart massage haircut nail_care boy girl woman man baby older_woman older_man person_with_blond_hair man_with_gua_pi_mao man_with_turban construction_worker cop angel princess smiley_cat smile_cat heart_eyes_cat kissing_cat smirk_cat scream_cat crying_cat_face joy_cat pouting_cat japanese_ogre japanese_goblin see_no_evil hear_no_evil speak_no_evil guardsman skull feet lips kiss droplet ear eyes nose tongue love_letter bust_in_silhouette busts_in_silhouette speech_balloon thought_balloon feelsgood finnadie goberserk godmode hurtrealbad rage1 rage2 rage3 rage4 suspect trollface
@@ -3,7 +3,7 @@ module RailsEmoji
3
3
 
4
4
  def render(*args)
5
5
  options = args.extract_options!.stringify_keys
6
- host = options['host']
6
+ host = options['host'] || RailsEmoji.host
7
7
  return if args[0].blank?
8
8
 
9
9
  if options.key? 'size'
@@ -1,3 +1,3 @@
1
1
  module RailsEmoji
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_emoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-13 00:00:00.000000000 Z
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails