Git Product home page Git Product logo

Gem Version CircleCI Code Climate Coverage Status Inline docs Gitter chat

emojidex

emojidex core tools and scripts in Ruby. Provides a set of tools to utilize emojidex emoji right away in Ruby. Available as the "emojidex" gem.

Usage

The emojidex gem can be used either on-line or off-line. Offline components require you to bundle the assets you want to use by including either the emojidex-vectors gem for SVG assets or emojidex-rasters gem for PNG assets. Simply including "emojidex-vectors" or "emojidex-rasters" in your Gemfile or having the gem installed will enable this. Without one or both of these gems installed the off-line components will fall back to connecting to the emojidex service and, if they are unable to connect, will attempt to find the assets in the emojidex cache (usually found in $HOME/.emojidex).

emojidex isn't just a set of emoji and some tools, it's a full service that allows anyone to register their own emoji and for anyone else to use them. emojidex can also store a users favorites and history.

emojidex Client

The emojidex Client attempts to make using emojidex for an end-user application as simple as possible. There is no need to manually cache or join collections or separately instantiate a user as these are all done for you. A client will automatically try to load user details and a primary emoji cache from $HOME/.emojidex unless overridden by the EMOJI_CACHE environment variable or by instantiating a client with the cache_path option like emojidex = Emojidex::Client.new(cache_path: "/path/to/cache").

emoji Collections

The Collection is the primary container for sets of emoji. All containers inherit from Emojidex::Data::Collection.

emoji

the Emojidex::Data::Emoji object contains the details of a single emoji.

emoji.path(:png, :hdpi)

emoji Indexes

Off-line Usage

When using emojidex off-line you will only have access to the collections you have included or have available locally. Two collections are available as gems, the emojidex-rasters gem contains PNG in various sizes and the emojidex-vectors gem contains SVG assets. Both contain the UTF and Extended collections. To use either of them you simply need to make an instance of one or more of the named collections in 'emojidex/data' after requiring either 'emojidex-rasters' or 'emojidex-vectors. We'll use the more-commonly used PNG rasters for this example:

For UTF (Unicode Standard) emoji:

require 'emojidex-rasters'
require 'emojidex/data/utf'

emoji = Emojidex::Data::UTF.new

For Extended (emojidex Original) emoji:

require 'emojidex-rasters'
require 'emojidex/data/extended'

emoji = Emojidex::Data::Extended.new

For all emoji in the cache (will include UTF and Extended if they have been cached):

require 'emojidex/data/collection'

emoji = Emojidex::Data::Collection.new

For a combined set of UTF, Extended and Cached emoji:

require 'emojidex/data/collection'
require 'emojidex/data/utf'
require 'emojidex/data/extended'

emoji = Emojidex::Data::Collection.new
emoji << Emojidex::Data::UTF.new
emoji << Emojidex::Data::Extended.new

Warning
Off-line usage is limited to open-source and licensed projects. If you are using this gem without connecting to the emojidex service and your project is not open-source a commercial license is required. Please contact info at emojidex dot com for details.

Assets

You can find Vectors here: emojidex-vectors
You can find Rasters here: emojidex-rasters

License

emojidex and emojidex tools are licensed under the emojidex Open License.

©2013 the emojidex project / K.K. GenSouSha [Phantom Creation Inc.]

emojidex's Projects

emoji.tools icon emoji.tools

emoji.tools site (to add info about your tools put up an issue first asking for permission, then add and make a PR)

emojidex icon emojidex

Core tools for emojidex / full emojidex toolkit written in Ruby

emojidex-site icon emojidex-site

Repo for the emojidex site to report issues or request improvements. Basically no code here~

emojidex-web icon emojidex-web

widgets and jQuery extensions to use emojidex on a web site

emojidex-web-client icon emojidex-web-client

the core web[js] client for emojidex, written in coffee, packaged for npm as emojidex-client

libemojidex icon libemojidex

Low level library with emojidex core functionality, written in C++

slate icon slate

Beautiful static documentation for your API

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.