Jollygoodcode Twemoji Versions Save

:shipit: Twitter emoji in Ruby :blush:

v3.0.2

7 years ago
  • Fix handling codepoint less than 0x1000
  • Fix strange naming of kiss emoji

v3.0.1

7 years ago
  • Fix Twemoji.render_emoji
  • Fix img tag alt attribute render

v3.0.0

7 years ago

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

https://github.com/jollygoodcode/twemoji/compare/v2.2.2...v3.0.0

v1.0.0

7 years ago

Twemoji initial release! 🎉

v2.2.2

7 years ago
  • Fix find_by_unicode method cannot find multiple unicodes like U+1F1EF U+1F1F5 should return :jp:.

CHANGELOG

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v2.2.1...v2.2.2

Enjoy!

v2.2.1

7 years ago
  • Add 47 missing emojis
  • Fix a bug that Twemoji.emoji_pattern cannot match :+1: and :-1
  • reduce released gem size
  • :thumbsup: and :thumbsdown:changes to:+1:and:-1`

CHANGELOG.

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v2.1.1...v2.2.1

Enjoy!

v1.0.1

8 years ago

Features

  • Add ability to specify img tag attribute. @JuanitoFatas #1.

CHANGELOG

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v1.0.0...v1.0.1

v1.1.0

8 years ago

Improvements

  • Behave more like twemoji.js by @bramswenson #5

    New Methods:

    • Twemoji.find_by now accepts unicode keyword argument (either a raw unicode or escaped-unicode string) to find emoji text
    • Add Twemoji.find_by_unicode to find emoji text by raw emoji unicode or escaped-unicode string
    • Add Twemoji.render_unicode to render raw emoji unicode from emoji text or emoji code

    Changes:

    • img tag's alt changes from emoji text like :heart_eyes: to actual unicode "😍"
  • Restrict Nokogiri to (1.4..1.6.5). @JuanitoFatas #3

  • Add more documentations

CHANGELOG

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v1.0.1...v1.1.0

v2.0.0

8 years ago
  • Breaking change: Tewmoji.parse img_attr option changed to img_attrs #16

    Old behaviour to specify img HTML attributes was passed in as a string to img_attr option from Twemoji.parse. This API is removed.

    Now please use img_attrs and passed in attribute-value pair you want in the form of Hash. You can now specify any HTML attributes to rendered emoji img.

    Note that the value of img tag attributes can be a proc-like object run against emoji name. Say if you do not want the colon from the title attribute of img tag. You can define a no_colon = ->(name) { name.gsub(":", "") } then passed into Twemoji.parse like 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
    

CHANGELOG

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v1.1.0...v2.0.0

Thanks all contributors.

v2.0.1

8 years ago

Improvement

  • Soften Nokogiri dependency to ~> 1.6.2 (>= 1.6.2, < 1.7) #19

CHANGELOG

Full Changes

https://github.com/jollygoodcode/twemoji/compare/v2.0.0...v2.0.1