Do you have any solution?


%which ruby
/usr/local/bin/ruby

%ruby --version
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0]

%irb
irb(main):001:0> require 'csv'
=> true
irb(main):002:0> a = '1,2,3'
=> "1,2,3"
irb(main):003:0> CSV.parse(a, ',')
TypeError: can't convert String into Hash
  from /usr/local/lib/ruby/1.9.1/csv.rb:1548:in `merge'
  from /usr/local/lib/ruby/1.9.1/csv.rb:1548:in `initialize'
  from /usr/local/lib/ruby/1.9.1/csv.rb:1356:in `new'
  from /usr/local/lib/ruby/1.9.1/csv.rb:1356:in `parse'
  from (irb):3
  from /usr/local/bin/irb:12:in `<main>'
irb(main):004:0>  CSV.open('test.csv', 'r', ',') { |r| puts r }
TypeError: can't convert String into Integer
  from /usr/local/lib/ruby/1.9.1/csv.rb:1329:in `initialize'
  from /usr/local/lib/ruby/1.9.1/csv.rb:1329:in `open'
  from /usr/local/lib/ruby/1.9.1/csv.rb:1329:in `open'
  from (irb):4
  from /usr/local/bin/irb:12:in `<main>'
irb(main):005:0>

Exactly like Ticket #460:
status changed from new to closed
resolution set to invalid

what does it mean: resolution set to invalid?
-- 
Posted via http://www.ruby-forum.com/.