TwP / inifile

Native Ruby package for reading and writing INI files
http://codeforpeople.rubyforge.org/inifile
95 stars 47 forks source link

Allow parameter to appear in values if escaped #16

Closed nicobrevin closed 10 years ago

nicobrevin commented 11 years ago

I am using an inifile format to put some gem-esque version restrictions, a bit like:

[production]
web-api = ">= 1.4"

which reads OK, but if you try and write it out, it fails to quote or escape, which then fails to be read.

The commit I've written escapes the equals sign (wikipedia seemed to say that was a recognised escape for ini files), which also reads back in correctly.

Cheers, Nick