josedonizetti / ruby-duration

Immutable type that represents some amount of time with accuracy in seconds.
http://bit.ly/ruby-duration
MIT License
124 stars 23 forks source link

invalid multibyte char (US-ASCII) (SyntaxError) #18

Closed atomical closed 9 years ago

atomical commented 10 years ago
$ rails c
~/.rvm/gems/ruby-1.9.3-p429/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require': /Users/.rvm/gems/ruby-1.9.3-p429/gems/duration-0.1.0/lib/duration/localizations/korean.rb:7: invalid multibyte char (US-ASCII) (SyntaxError)
/Users/.rvm/gems/ruby-1.9.3-p429/gems/duration-0.1.0/lib/duration/localizations/korean.rb:7: invalid multibyte char (US-ASCII)
/Users/.rvm/gems/ruby-1.9.3-p429/gems/duration-0.1.0/lib/duration/localizations/korean.rb:7: syntax error, unexpected $end, expecting keyword_end

The encoding needs to be added at the top of korean.rb in the duration gem. I'm not sure if this can be updated upstream in a reasonable amount of time or if it will need a fork. Thoughts?

# encoding: utf-8
peleteiro commented 9 years ago

This gem is named "ruby-duration", not "duration".