Laurent,Sure I can do that. I just wanted to check here before I did that incase it a problem with me.Buddy---
Buddy Lindsey
http://www.buddylindsey.com
http://www.twitter.com/buddylindsey
On Thu, Jan 6, 2011 at 4:45 PM, Laurent Sansonetti <lsansonetti@apple.com> wrote:Hi Buddy,It doesn't look like a MacRuby bug. Maybe the csv.rb library hasn't been updated recently. Could you file a ticket? We will have a look.
LaurentOn Jan 6, 2011, at 12:05 PM, Buddy Lindsey, Jr. wrote:_______________________________________________I am not sure if I am just doing something wrong or what, but I am trying to read in a CSV file and it seems the code I use for ruby 1.9.2 works fine, but not in MacRuby. I think I am doing something wrong, but not quite sure what since I am still new to MacRuby and getting familiar with it.I have put the following code in 'irb' and it works just fine and spits out the first part of the array.CSV.open('save.csv', 'r') do |row|row[1]endWith irb I getsmithsmithsmithusing 'macirb' I get this.NoMethodError: undefined method `[]' for #<CSV:0x2005c9a20>/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/csv.rb:1340:in `open'Same code two different irb'sMy csv file has this in it:John,Smith,john@smith.com,1234567John,Smith,john@smith.com,1234567John,Smith,john@smith.com,1234567Can someone point out to me what I am doing wrong?Thanks,Buddy---
Buddy Lindsey
http://www.buddylindsey.com
http://www.twitter.com/buddylindsey
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel