internuity / map-fields

A Rails plugin to handle the mapping of an uploaded CSV file to an expected format
62 stars 19 forks source link

Non-compatibility with Ruby 1.9.2/Rails 3 #1

Open tfwright opened 14 years ago

tfwright commented 14 years ago

Hi, you're probably already aware of this if you've looked at this at all recently, but the FasterCSV dependency breaks on Ruby 1.9.2 (and hence Rails 3). Exits with

Please switch to Ruby 1.9's standard CSV library.  It's FasterCSV plus
support for Ruby 1.9's m17n encoding engine.
andrewtimberlake commented 14 years ago

Thanks for letting me know. Unfortunately I don't have time to deal with this yet. I'll be migrating the project I use this on in the next few months and will need to deal with it then. Feel free to submit a patch in the mean time if you manage to solve it

tklenke commented 13 years ago

I'm climbing the R3 curve but here's the hacks I made. 1 - replace FasterCSV with just CSV in all occurrences in lib/map_fields.rb 2 - move directory views to app/views

seems to work just fine.