Permalink
Browse files

Add task to find unnamed images

  • Loading branch information...
1 parent c0c2f10 commit 7ffe22d83ce197b2c9568d2aa09dbd0ca924f6ed @josh josh committed Nov 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 Rakefile
View
@@ -0,0 +1,7 @@
+desc "Checks for missing aliases to unicode sources"
+task :unnamed do
+ unicodes = Dir["./images/emoji/unicode/*.png"].map { |fn| File.basename(fn) }
+ aliases = Dir["./images/emoji/*.png"].select { |fn| File.symlink?(fn) }.map { |fn| File.basename(fn) }
+ used_unicodes = aliases.map { |name| File.basename(File.readlink("./images/emoji/#{name}")) }.uniq
+ puts unicodes - used_unicodes
+end

0 comments on commit 7ffe22d

Please sign in to comment.