cheald/shadowcraft-ui — pull request #35 by timwoj (2014-09-21 02:42:51+00:00)
Title: Fix some errors with ruby 1.9.3-p0

Working on a vagrant setup for the UI. I have it built with Ruby 1.9.3-p0, and it gives me a couple errors when I run 'rails console production' to import items. The first happens when starting up rails:

/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in `require': /home/vagrant/shadowcraft-ui/lib/wow_armory/document.rb:97: invalid multibyte char (US-ASCII) (SyntaxError)
/home/vagrant/shadowcraft-ui/lib/wow_armory/document.rb:97: invalid multibyte char (US-ASCII)
/home/vagrant/shadowcraft-ui/lib/wow_armory/document.rb:97: syntax error, unexpected $end, expecting ')'
... realm.downcase.gsub(/['’]/, "").gsub(/ /, "-").gsub(...

The second happens when running the import:

1.9.3-p0 :001 > Item.populate_gear
importing now 51 random items
NotImplementedError: Please switch to Ruby 1.9's standard CSV library. It's FasterCSV plus support for Ruby 1.9's m17n encoding engine.
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/fastercsv-1.5.4/lib/faster_csv.rb:13:in `const_missing'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/fastercsv-1.5.4/lib/faster_csv.rb:19:in `method_missing'