[macruby-changes] [824] MacRuby/trunk/lib/hotcocoa/template.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Feb 28 19:22:42 PST 2009


Revision: 824
          http://trac.macosforge.org/projects/ruby/changeset/824
Author:   lsansonetti at apple.com
Date:     2009-02-28 19:22:41 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
fix for #181 (patch by sandor.szuecs AT fu-berlin.de)

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/template.rb

Modified: MacRuby/trunk/lib/hotcocoa/template.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/template.rb	2009-03-01 02:42:28 UTC (rev 823)
+++ MacRuby/trunk/lib/hotcocoa/template.rb	2009-03-01 03:22:41 UTC (rev 824)
@@ -4,6 +4,7 @@
 module HotCocoa
   class Template
     def self.copy_to(directory, app_name)
+      FileUtils.mkdir_p(directory)
       dir = Config::CONFIG['datadir']
       Dir.glob(File.join(dir, "hotcocoa_template", "**/*")).each do |file|
         short_name = file[(dir.length+19)..-1]
@@ -19,4 +20,4 @@
       end
     end
   end
-end
\ No newline at end of file
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090228/77935bb8/attachment.html>


More information about the macruby-changes mailing list