Releases: jollygoodcode/twemoji
v3.0.2
v3.0.1
- Fix
Twemoji.render_emoji - Fix
imgtagaltattribute render
v2.2.2
- Fix
find_by_unicodemethod cannot find multiple unicodes likeU+1F1EF U+1F1F5should return:jp:.
Full Changes
Enjoy!
v3.0.0
Twemoji 3.0.0 is released!
This release supports twemoji.js V2, which covers Unicode 8.0 and total of 1661 emojis.
breaking changes, features, and bug fixes please refer to CHANGELOG.
Full Changes
v2.2.1
- Add 47 missing emojis
- Fix a bug that
Twemoji.emoji_patterncannot match:+1:and:-1 - reduce released gem size
- 👍 and 👎
changes to👍and:-1`
Full Changes
Enjoy!
v2.1.1
Features
- Add a feature to export keyword-unicode mapping to json
Full Changes
Thanks every contributor who helped with this release.
v2.0.1
v2.0.0
-
Breaking change:
Tewmoji.parseimg_attroption changed toimg_attrs#16Old behaviour to specify
imgHTML attributes was passed in as a string to
img_attroption fromTwemoji.parse. This API is removed.Now please use
img_attrsand passed in attribute-value pair you want in the
form of Hash. You can now specify any HTML attributes to rendered emojiimg.Note that the value of
imgtag attributes can be a proc-like object run
against emoji name. Say if you do not want the colon from the title attribute
ofimgtag. You can define ano_colon = ->(name) { name.gsub(":", "") }
then passed intoTwemoji.parselike below example:> Twemoji.parse(":heart_eyes:", img_attrs: { title: no_colon }) <img draggable="false" title="heart_eyes" alt=":heart_eyes:" src="https://twemoji.maxcdn.com/16x16/1f60d.png" class="twemoji" >
Twemoji.configure do |config| config.img_attrs = { style: "height: 1.3em;" } end
-
Twemoji Configuration #15
Twemoji.configure do |config| config.asset_root = "https://twemoji.awesomecdn.com/" config.file_ext = ".svg" config.image_size = nil # only png need to set size config.class_name = "twemoji" config.img_attr = "style='height: 1.3em;'" end
Full Changes
Thanks all contributors.
v1.1.0
Improvements
-
Behave more like twemoji.js by @bramswenson #5
New Methods:
Twemoji.find_bynow acceptsunicodekeyword argument (either a raw unicode or escaped-unicode string) to find emoji text- Add
Twemoji.find_by_unicodeto find emoji text by raw emoji unicode or escaped-unicode string - Add
Twemoji.render_unicodeto render raw emoji unicode from emoji text or emoji code
Changes:
imgtag'saltchanges from emoji text like:heart_eyes:to actual unicode"😍"
-
Restrict Nokogiri to (1.4..1.6.5). @JuanitoFatas #3
-
Add more documentations
Full Changes