зеркало из https://github.com/github/gemoji.git
Add task to download Unicode 6.3 names list
This list contains textual descriptions for emoji characters.
This commit is contained in:
Родитель
07e15fde99
Коммит
0845c3898a
|
@ -0,0 +1,2 @@
|
|||
.ruby-version
|
||||
db/NamesList.txt
|
7
Rakefile
7
Rakefile
|
@ -9,11 +9,16 @@ end
|
|||
|
||||
namespace :db do
|
||||
desc %(Generate Emoji data files needed for development)
|
||||
task :generate => ['db/Category-Emoji.json']
|
||||
task :generate => ['db/Category-Emoji.json', 'db/NamesList.txt']
|
||||
end
|
||||
|
||||
emoji_plist = '/System/Library/Input Methods/CharacterPalette.app/Contents/Resources/Category-Emoji.plist'
|
||||
nameslist_url = 'http://www.unicode.org/Public/6.3.0/ucd/NamesList.txt'
|
||||
|
||||
task 'db/Category-Emoji.json' do |t|
|
||||
system "plutil -convert json -r '#{emoji_plist}' -o '#{t.name}'"
|
||||
end
|
||||
|
||||
file 'db/NamesList.txt' do |t|
|
||||
system "curl -fsSL '#{nameslist_url}' -o '#{t.name}'"
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче