antw/iniparse — Issue #3: Section names with '=' aren't recognized
Author: mlsquires
Created: 2011-12-21 19:18:44+00:00
State: open

If you have a section with a '=' in its name, and that is the first section in the file, iniparse fails. It may fail if it isn't the first section, but I haven't tried that yet.

The fix appears to be easy - in iniparse/parser.rb there is this code:
self.parse_types = [ IniParse::Lines::Option,
IniParse::Lines::Section, IniParse::Lines::Blank ]

If the order of those types is adjusted so sections are listed before options, everything seems to work fine.

Is this enough to work with, or would you like me to create a patch with additional test and the fix?