twemoji 3.1.7 → 3.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9a1954a7f67da596f244eda65edc096ff49e2ad2b99d1f5953ebd80eb4db463
4
- data.tar.gz: 5769167d7fe63671ac1a4270b7a7091559693aa3011f026c58904bf2ef2bb866
3
+ metadata.gz: 2234c251d175548199d9753ca53bd56f76b2dcfa12a08930fc16723376b5561d
4
+ data.tar.gz: bd38221b6e87c2e15725466e660bdaf798dd85a408cbe5b75f564a469240ee9d
5
5
  SHA512:
6
- metadata.gz: 7b17055f1396ed5bf86453c5bf81fea0a341eddb3bf0ef2566f809697a07a0c6a54426c4fa55f94607f6423b60e30ab54f13dcd2ff853e07d9869fb402b291a1
7
- data.tar.gz: 4ab9fcd8d6f1c66a64c90eb8704edfc70a75e80600eeb4d6610289adabcf9a1f5ee72b66379dd52c1f1381e59b44a09cb318ad73560916421c741efb2df8b64d
6
+ metadata.gz: 42cd46ca1bb4672f93b6a2b8914ceeb8959d1b2c49b0eba9416b9a8481343be86da46d40688e2d02834b336d2049e071d87731ef2c5217f0b72a48352d992945
7
+ data.tar.gz: 1dfad31671c59fd8f29610a0a6d2af49d5f95c79abb54dd04f098c21a8ffa6f051dfc75adee6e42f7b6a669477f55d8abd46f754645b8ece50e698f3e7f8e767
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.1.8 - 2020.12.21
6
+
7
+ - Fix retained memory.
8
+
5
9
  ## 3.1.7 - 2020.09.28
6
10
 
7
11
  - Relax required ruby version
@@ -34,8 +38,8 @@
34
38
  ## 3.1.0 - 2016.12.13
35
39
 
36
40
  - `Twemoji.parse` can now parse unicode values, too [#35](https://github.com/jollygoodcode/twemoji/pull/35)
37
- * [New API] `Twemoji.emoji_pattern_unicode` - List all emoji unicodes in a regex
38
- * [New API] `Twemoji.emoji_pattern_all` - List all emoji names and unicodes in a regex
41
+ - [New API] `Twemoji.emoji_pattern_unicode` - List all emoji unicodes in a regex
42
+ - [New API] `Twemoji.emoji_pattern_all` - List all emoji names and unicodes in a regex
39
43
 
40
44
  ## 3.0.2 - 2016.11.15
41
45
 
@@ -153,15 +157,15 @@
153
157
 
154
158
  **New Methods**:
155
159
 
156
- * [`Twemoji.find_by`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L9-L35) now accepts `unicode` keyword argument (either a raw unicode or escaped-unicode string) to find emoji text
160
+ - [`Twemoji.find_by`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L9-L35) now accepts `unicode` keyword argument (either a raw unicode or escaped-unicode string) to find emoji text
157
161
 
158
- * Add [`Twemoji.find_by_unicode`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L61-L71) to find emoji text by raw emoji unicode or escaped-unicode string
162
+ - Add [`Twemoji.find_by_unicode`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L61-L71) to find emoji text by raw emoji unicode or escaped-unicode string
159
163
 
160
- * Add [`Twemoji.render_unicode`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L73-L86) to render raw emoji unicode from emoji text or emoji code
164
+ - Add [`Twemoji.render_unicode`](https://github.com/jollygoodcode/twemoji/blob/fe2810ddbe1f2cfdb496bcdd9e1576ba1e05eb06/lib/twemoji.rb#L73-L86) to render raw emoji unicode from emoji text or emoji code
161
165
 
162
166
  **Changes**:
163
167
 
164
- * `img` tag's `alt` changes from emoji text like `:heart_eyes:` to actual unicode `"😍"`
168
+ - `img` tag's `alt` changes from emoji text like `:heart_eyes:` to actual unicode `"😍"`
165
169
 
166
170
  - Restrict Nokogiri to (1.4..1.6.5). @JuanitoFatas [#3](https://github.com/jollygoodcode/twemoji/pull/3)
167
171
 
@@ -113,7 +113,7 @@ module Twemoji
113
113
 
114
114
  options[:asset_root] = asset_root
115
115
  options[:file_ext] = file_ext
116
- options[:img_attrs] = { class: class_name }.merge! img_attrs
116
+ options[:img_attrs] = { class: class_name }.merge(img_attrs)
117
117
 
118
118
  if text.is_a?(Nokogiri::HTML::DocumentFragment)
119
119
  parse_document(text)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Twemoji
4
- VERSION = "3.1.7"
4
+ VERSION = "3.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twemoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.7
4
+ version: 3.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-28 00:00:00.000000000 Z
12
+ date: 2020-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri