* Fixed the Rakefile created by `motion create' to include the magic utf8

comment, as the file may contain multibyte characters and be parsed by
    Ruby 1.9. Patch by @pchw.
This commit is contained in:
Laurent Sansonetti
2012-06-06 17:38:40 +02:00
parent 21cb18495c
commit 214d9be963

View File

@@ -99,6 +99,7 @@ module Motion; module Project
App.log 'Create', File.join(app_name, 'Rakefile')
File.open('Rakefile', 'w') do |io|
io.puts <<EOS
# -*- coding: utf-8 -*-
$:.unshift(\"#{$motion_libdir}\")
require 'motion/project'