gitlab_emoji-0.3.1/0000755000004100000410000000000012672212620014170 5ustar www-datawww-datagitlab_emoji-0.3.1/Rakefile0000644000004100000410000000025312672212620015635 0ustar www-datawww-datarequire "bundler/gem_tasks" begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: :spec rescue LoadError # no rspec available end gitlab_emoji-0.3.1/CHANGELOG0000644000004100000410000000012512672212620015400 0ustar www-datawww-datav 0.2.0 - Add updated set of emoji v 0.1.0 - Move to EmojiOne - Tests added gitlab_emoji-0.3.1/Gemfile0000644000004100000410000000011212672212620015455 0ustar www-datawww-datasource "https://rubygems.org" gemspec gem 'rake' gem 'rspec', '~> 2.99' gitlab_emoji-0.3.1/.rspec0000644000004100000410000000003212672212620015300 0ustar www-datawww-data--color --format progress gitlab_emoji-0.3.1/spec/0000755000004100000410000000000012672212620015122 5ustar www-datawww-datagitlab_emoji-0.3.1/spec/spec_helper.rb0000644000004100000410000000133612672212620017743 0ustar www-datawww-data# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' end gitlab_emoji-0.3.1/spec/gitlab_emoji_spec.rb0000644000004100000410000000141612672212620021110 0ustar www-datawww-datarequire 'spec_helper' require_relative '../lib/gitlab_emoji' describe Emoji do describe 'emojis' do let(:emojis) { Emoji.emojis } it { emojis.should be_a(Hash) } it { emojis.size.should be >= 1700 } end describe 'emojis_by_moji' do let(:emojis) { Emoji.emojis_by_moji } it { emojis.should be_a(Hash) } it { emojis.size.should be_between(800, 1000) } end describe 'emojis_names' do subject { Emoji.emojis_names } it { should be_a(Array) } it { should include ("+1") } end describe 'emoji_filename' do subject { Emoji.emoji_filename("+1") } it { should eq("1F44D") } end describe 'images_path' do it 'returns a valid path' do expect(Dir.exist?(described_class.images_path)).to eq true end end end gitlab_emoji-0.3.1/lib/0000755000004100000410000000000012672212620014736 5ustar www-datawww-datagitlab_emoji-0.3.1/lib/gitlab_emoji.rb0000644000004100000410000000064512672212620017715 0ustar www-datawww-datarequire 'gemojione' module Emoji extend self def emojis Gemojione.index.instance_variable_get(:@emoji_by_name) end def emojis_by_moji Gemojione.index.instance_variable_get(:@emoji_by_moji) end def emojis_names emojis.keys.sort end def emoji_filename(name) emojis[name]["unicode"] end # DEPRECATED: Built into Gemojione def images_path Gemojione.index.images_path end end gitlab_emoji-0.3.1/gitlab_emoji.gemspec0000644000004100000410000000114212672212620020160 0ustar www-datawww-data# coding: utf-8 Gem::Specification.new do |spec| spec.name = "gitlab_emoji" spec.version = `cat VERSION` spec.authors = ["Marin Jankovski", "Dmitriy Zaporozhets"] spec.email = ["marin@gitlab.com", "dmitriy.zaporozhets@gmail.com"] spec.description = %q{GitLab emoji assets} spec.summary = %q{Ruby gem for emojis in GitLab} spec.homepage = "https://gitlab.com/gitlab-org/gitlab_emoji" spec.license = "MIT" spec.files = `git ls-files`.split($/) spec.require_paths = ["lib"] spec.add_dependency "gemojione", "~> 2.2", ">= 2.2.1" end gitlab_emoji-0.3.1/.gitlab-ci.yml0000644000004100000410000000057712672212620016635 0ustar www-datawww-databefore_script: - apt-get update -qqqy && apt-get install -y locales - echo "en_US UTF-8" > /etc/locale.gen - locale-gen en_US.UTF-8 - export LANG=en_US.UTF-8 - export LANGUAGE=en_US:en - export LC_ALL=en_US.UTF-8 - which ruby - ruby -v - gem install bundler --no-ri --no-rdoc - bundle install --jobs $(nproc) "${FLAGS[@]}" spec: script: - bundle exec rake gitlab_emoji-0.3.1/.gitignore0000644000004100000410000000002412672212620016154 0ustar www-datawww-data*.gem /Gemfile.lock gitlab_emoji-0.3.1/LICENSE0000644000004100000410000000222212672212620015173 0ustar www-datawww-dataCopyright (c) 2013-2016, Steve Klabnik, GitLab B.V. Marin Jankovski, Jonathan Wiesel The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Emoji by [Emojione](http://emojione.com/). gitlab_emoji-0.3.1/VERSION0000644000004100000410000000000612672212620015234 0ustar www-datawww-data0.3.1 gitlab_emoji-0.3.1/README.md0000644000004100000410000000035312672212620015450 0ustar www-datawww-data# GitLab Emoji Gem extending [gemojione gem](https://github.com/jonathanwiesel/gemojione). # Assets Precompiling ``` # config/application.rb config.assets.paths << Gemojione.images_path config.assets.precompile << "emoji/*.png" ```