gitlab_emoji 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +21 -0
- data/README.md +21 -0
- data/Rakefile +5 -0
- data/VERSION +1 -0
- data/assets/images/+1.png +0 -0
- data/assets/images/-1.png +0 -0
- data/assets/images/blue_heart.png +0 -0
- data/assets/images/broken_heart.png +0 -0
- data/assets/images/check_button_green.png +0 -0
- data/assets/images/green_heart.png +0 -0
- data/assets/images/purple_heart.png +0 -0
- data/assets/images/thumbs_down_sign.png +0 -0
- data/assets/images/thumbs_up_sign.png +0 -0
- data/assets/images/thumbsdown.png +0 -0
- data/assets/images/thumbsup.png +0 -0
- data/assets/images/white_check_mark.png +0 -0
- data/assets/images/white_heavy_check_mark.png +0 -0
- data/assets/images/white_large_square.png +0 -0
- data/assets/images/white_up_pointing_index.png +0 -0
- data/assets/images/yellow_heart.png +0 -0
- data/gitlab_emoji.gemspec +17 -0
- data/lib/gitlab_emoji.rb +39 -0
- data/lib/tasks/copy.rake +21 -0
- metadata +85 -0
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Copyright (c) 2014 Marin Jankovski
|
2
|
+
|
3
|
+
The MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# GitLab Emoji
|
2
|
+
|
3
|
+
Gem extending [emoji gem](https://github.com/steveklabnik/emoji) and [PhantomOpenEmoji]https://github.com/Genshin/PhantomOpenEmoji
|
4
|
+
|
5
|
+
# Permission to use emoji from emojidex set
|
6
|
+
|
7
|
+
Genshin Souzou Kabushiki Kaisha of Aichi, Japan Hereby grants permission to use the following emoji from the emojidex set:
|
8
|
+
|
9
|
+
white_heavy_check_mark
|
10
|
+
white_large_square
|
11
|
+
thumbs_up_sign
|
12
|
+
thumbs_down_sign
|
13
|
+
blue_heart
|
14
|
+
broken_heart
|
15
|
+
green_heart
|
16
|
+
purple_heart
|
17
|
+
yellow_heart
|
18
|
+
white_up_pointing_index
|
19
|
+
|
20
|
+
These emoji may be used in all versions of GitLab, both commercial and otherwise, without restriction or fee.
|
21
|
+
Genshin Souzou Kabushiki Kaisha CEO Rei Kagetsuki
|
data/Rakefile
ADDED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "gitlab_emoji"
|
5
|
+
spec.version = `cat VERSION`
|
6
|
+
spec.authors = ["Marin Jankovski"]
|
7
|
+
spec.email = ["marin@gitlab.com"]
|
8
|
+
spec.description = %q{GitLab emoji assets}
|
9
|
+
spec.summary = %q{Ruby gem for emojis in GitLab}
|
10
|
+
spec.homepage = "https://gitlab.com/gitlab-org/gitlab_emoji"
|
11
|
+
spec.license = "MIT"
|
12
|
+
|
13
|
+
spec.files = `git ls-files`.split($/)
|
14
|
+
spec.require_paths = ["lib"]
|
15
|
+
|
16
|
+
spec.add_dependency "emoji", "~> 1.0.1"
|
17
|
+
end
|
data/lib/gitlab_emoji.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'emoji'
|
2
|
+
|
3
|
+
module Emoji
|
4
|
+
extend self
|
5
|
+
|
6
|
+
def names
|
7
|
+
emoji_list.keys.sort
|
8
|
+
end
|
9
|
+
|
10
|
+
def emoji_list
|
11
|
+
list = index.instance_variable_get(:@emoji_by_name)
|
12
|
+
list.merge!(additional_emojis)
|
13
|
+
end
|
14
|
+
|
15
|
+
def find_by_name(name)
|
16
|
+
emoji_list[name]
|
17
|
+
end
|
18
|
+
|
19
|
+
def additional_emojis
|
20
|
+
{
|
21
|
+
"check_button_green"=> {"name"=>"check_button_green", "category"=>"gesture"},
|
22
|
+
"white_large_square"=> {"name"=>"white_large_square", "category"=>"gesture"},
|
23
|
+
"thumbs_up_sign"=> {"name"=>"thumbs_up_sign", "category"=>"gesture"},
|
24
|
+
"thumbs_down_sign"=> {"name"=>"thumbs_down_sign", "category"=>"gesture"},
|
25
|
+
"white_up_pointing_index"=> {"name"=>"white_up_pointing_index", "category"=>"gesture"},
|
26
|
+
"blue_heart"=> {"name"=>"blue_heart", "category"=>"abstract"},
|
27
|
+
"broken_heart"=> {"name"=>"broken_heart", "category"=>"abstract"},
|
28
|
+
"green_heart"=> {"name"=>"green_heart", "category"=>"abstract"},
|
29
|
+
"purple_heart"=> {"name"=>"purple_heart", "category"=>"abstract"},
|
30
|
+
"yellow_heart"=> {"name"=>"yellow_heart", "category"=>"abstract"},
|
31
|
+
"white_check_mark"=> {"name"=>"check_button_green", "category"=>"gesture"},
|
32
|
+
"thumbsup"=> {"name"=>"thumbs_up_sign", "category"=>"gesture"},
|
33
|
+
"thumbsdown"=> {"name"=>"thumbs_down_sign", "category"=>"gesture"},
|
34
|
+
"+1"=> {"name"=>"thumbs_up_sign", "category"=>"gesture"},
|
35
|
+
"-1"=> {"name"=>"thumbs_down_sign", "category"=>"gesture"}
|
36
|
+
}
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
data/lib/tasks/copy.rake
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
desc "Copy GitLab emojis to public/images directory"
|
2
|
+
task :emoji do
|
3
|
+
require 'gitlab_emoji'
|
4
|
+
require 'emoji'
|
5
|
+
|
6
|
+
# Copy the emojis from the 'emoji' gem
|
7
|
+
ENV['TARGET']='assets/images/'
|
8
|
+
Rake::Task["emoji:install_assets"].execute
|
9
|
+
|
10
|
+
project_target = ENV['GITLAB_TARGET'] ||= File.join(Rails.root, 'app/assets/images/emoji')
|
11
|
+
source = File.absolute_path(File.dirname(__FILE__) + '/../../assets/images')
|
12
|
+
unless File.exists?(project_target)
|
13
|
+
puts "- Creating #{project_target}..."
|
14
|
+
FileUtils.mkdir_p(project_target)
|
15
|
+
end
|
16
|
+
|
17
|
+
puts "Copying emojis:"
|
18
|
+
Dir.glob("#{source}/*").entries.each do |asset|
|
19
|
+
FileUtils.cp_r(asset, project_target, verbose: true, preserve: false)
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gitlab_emoji
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Marin Jankovski
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: emoji
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.1
|
30
|
+
description: GitLab emoji assets
|
31
|
+
email:
|
32
|
+
- marin@gitlab.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- LICENSE
|
38
|
+
- README.md
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- assets/images/+1.png
|
42
|
+
- assets/images/-1.png
|
43
|
+
- assets/images/blue_heart.png
|
44
|
+
- assets/images/broken_heart.png
|
45
|
+
- assets/images/check_button_green.png
|
46
|
+
- assets/images/green_heart.png
|
47
|
+
- assets/images/purple_heart.png
|
48
|
+
- assets/images/thumbs_down_sign.png
|
49
|
+
- assets/images/thumbs_up_sign.png
|
50
|
+
- assets/images/thumbsdown.png
|
51
|
+
- assets/images/thumbsup.png
|
52
|
+
- assets/images/white_check_mark.png
|
53
|
+
- assets/images/white_heavy_check_mark.png
|
54
|
+
- assets/images/white_large_square.png
|
55
|
+
- assets/images/white_up_pointing_index.png
|
56
|
+
- assets/images/yellow_heart.png
|
57
|
+
- gitlab_emoji.gemspec
|
58
|
+
- lib/gitlab_emoji.rb
|
59
|
+
- lib/tasks/copy.rake
|
60
|
+
homepage: https://gitlab.com/gitlab-org/gitlab_emoji
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 1.8.25
|
82
|
+
signing_key:
|
83
|
+
specification_version: 3
|
84
|
+
summary: Ruby gem for emojis in GitLab
|
85
|
+
test_files: []
|