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 +4 -4
- data/CHANGELOG.md +10 -6
- data/lib/twemoji.rb +1 -1
- data/lib/twemoji/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2234c251d175548199d9753ca53bd56f76b2dcfa12a08930fc16723376b5561d
|
4
|
+
data.tar.gz: bd38221b6e87c2e15725466e660bdaf798dd85a408cbe5b75f564a469240ee9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42cd46ca1bb4672f93b6a2b8914ceeb8959d1b2c49b0eba9416b9a8481343be86da46d40688e2d02834b336d2049e071d87731ef2c5217f0b72a48352d992945
|
7
|
+
data.tar.gz: 1dfad31671c59fd8f29610a0a6d2af49d5f95c79abb54dd04f098c21a8ffa6f051dfc75adee6e42f7b6a669477f55d8abd46f754645b8ece50e698f3e7f8e767
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
38
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/twemoji.rb
CHANGED
@@ -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
|
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)
|
data/lib/twemoji/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|