mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-18 20:06:21 +08:00
1.9 compat
This commit is contained in:
@@ -24,6 +24,7 @@ task :apply_exceptions do
|
||||
h_orig = h + '.orig'
|
||||
next if File.exist?(h_orig)
|
||||
txt = File.read(h)
|
||||
txt.force_encoding(Encoding::ASCII_8BIT) if txt.respond_to?(:force_encoding)
|
||||
# workaround for new objc enum parsing bug
|
||||
changed = true if txt.gsub!(/NS_(ENUM|OPTIONS)\(([^\s,]+)\s*,\s*([^)]+)\)/, '\2 \3; enum')
|
||||
case File.basename(h)
|
||||
|
||||
Reference in New Issue
Block a user