gosu / releasy

A rake task generator to help with building/packaging/deploying Ruby applications (⚠️ unmaintained)
https://spooner.github.com/libraries/releasy/
MIT License
378 stars 29 forks source link

Handle OSX encoding a bit better #40

Open bil-bas opened 11 years ago

bil-bas commented 11 years ago

A better solution is provided in this workaround for Shoes:

https://github.com/shoes/shoes/issues/163#issuecomment-3594354

class Encoding
  %w[ASCII_8BIT US_ASCII UTF_16BE UTF_16LE UTF_32BE UTF_32LE].each do |ec|
    eval "#{ec} = '#{ec.sub '_', '-'}'"
  end unless RUBY_PLATFORM =~ /linux/
end 

Though might as well use #const_set rather than #eval