gemoji 3.0.0.rc1 → 3.0.0.rc2

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.
@@ -104,7 +104,9 @@ module Emoji
104
104
  next unless raw
105
105
  no_gender = raw.sub(/(#{VARIATION_SELECTOR_16})?#{ZERO_WIDTH_JOINER}(#{FEMALE_SYMBOL}|#{MALE_SYMBOL})/, '')
106
106
  next unless $2
107
- edit_emoji(find_by_unicode(no_gender)) do |emoji|
107
+ emoji = find_by_unicode(no_gender)
108
+ next unless emoji
109
+ edit_emoji(emoji) do
108
110
  emoji.add_unicode_alias(
109
111
  $2 == FEMALE_SYMBOL ?
110
112
  raw.sub(FEMALE_SYMBOL, MALE_SYMBOL) :
@@ -124,3 +126,6 @@ module Emoji
124
126
  @unicodes_index
125
127
  end
126
128
  end
129
+
130
+ # Preload emoji into memory
131
+ Emoji.all
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc1
4
+ version: 3.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Character information and metadata for standard and custom emoji.
14
14
  email: support@github.com