0.12
The project is in a healthy, maintained state
Returns Unicode / Emoji versions of current and previous Rubies
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Unicode::Version.unicode_version [version] [ci]

Makes it easy to check for Unicode and Emoji support of your current Ruby (and older Rubies)

Setup

Add to your Gemfile:

gem "unicode-version"

Usage

# Returns current Unicode version (example with Ruby 3.1.0)
Unicode::Version.unicode_version # => 13.0.0

# Returns Unicode version of older Rubies
Unicode::Version.unicode_version "2.6.2" # => 12.0.0
Unicode::Version.unicode_version 1.9 # => 5.2.0

# Returns nil when Ruby version too old (before 1.9)
Unicode::Version.unicode_version 1.8 # => nil

# Returns current Emoji version (example with Ruby 3.1.0)
Unicode::Version.emoji_version # => 13.1

# Returns Emoji version of older Rubies
Unicode::Version.emoji_version "2.6.2" # => 12.0
Unicode::Version.emoji_version 2.5 # => 5.0

# Returns nil when Ruby version too old (before 2.5)
Unicode::Version.emoji_version 2.4 # => nil

MIT License

Copyright (C) 2020-2023 Jan Lelis https://janlelis.com. Released under the MIT license.