Masafumi Yokoyama
null+****@clear*****
Mon Sep 8 01:10:59 JST 2014
Masafumi Yokoyama 2014-09-08 01:10:59 +0900 (Mon, 08 Sep 2014) New Revision: 61d743f4616b29df30f3ef3185cf07e68e1b470d https://github.com/ranguba/packnga/commit/61d743f4616b29df30f3ef3185cf07e68e1b470d Message: Enclose code into a task Because this method is for *defining* a task. It fixes a bug in commit 56995b95de8fa980aa4e5cea6990cb1810e9e576 Modified files: lib/packnga/reference-task.rb Modified: lib/packnga/reference-task.rb (+7 -1) =================================================================== --- lib/packnga/reference-task.rb 2014-09-05 00:26:22 +0900 (fb26e6f) +++ lib/packnga/reference-task.rb 2014-09-08 01:10:59 +0900 (1d8166e) @@ -168,11 +168,17 @@ module Packnga po_file = "#{@po_dir}/#{language}/#{@spec.name}.po" yard_po_file = "#{@po_dir}/#{language}.po" yard_po_files << yard_po_file + namespace :po do + namespace language do + task :prepare do if File.exist?(yard_po_file) mkdir_p(File.dirname(po_file)) mv(yard_po_file, po_file) end - file yard_po_file => po_file do + end + end + end + file yard_po_file => ["po:#{language}:prepare", po_file] do cp(po_file, yard_po_file) end end -------------- next part -------------- HTML����������������������������...Download