SteveW (Stephen Wattam)
- Login: SteveW
- Email: stephenwattam@gmail.com
- Registered on: 12/06/2012
- Last sign in: 03/04/2015
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/07/2012
-
10:42 PM Ruby Bug #7528: CSV.== fails to check object type
- I concur. Patch attached for easy application.
It's probably worth noting that the current, unpatched, behaviour seems to break foreach too. -
08:56 PM Ruby Bug #7528: CSV.== fails to check object type
- This seems to fix it:
```diff
478c478,479
< @row == other.row
---
> return @row == other.row if other.class == CSV::Row
> ...
-
12:04 AM Ruby Bug #7528 (Closed): CSV.== fails to check object type
- CSV::Row's equality method presumes it is comparing another CSV::Row. It fails when the object to be compared doesn't support the 'row' method:
/usr/lib/ruby/1.9.1/csv.rb:478:in `==': undefined method `row' for nil:NilClass (NoMethod...