mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-12 10:36:58 +08:00
* 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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user