Permalink
Browse files

Add task to download Unicode 6.3 names list

This list contains textual descriptions for emoji characters.
  • Loading branch information...
1 parent 07e15fd commit 0845c3898a352d76b94c3f05aa95e8f6a8a48f35 @mislav mislav committed Mar 12, 2014
Showing with 8 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +6 −1 Rakefile
View
@@ -0,0 +1,2 @@
+.ruby-version
+db/NamesList.txt
View
@@ -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

0 comments on commit 0845c38

Please sign in to comment.