TwP / inifile

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

Lack of newline at end of file causes error #12

Closed jm closed 12 years ago

jm commented 12 years ago

If you have an ini file without a newline at the end of the file, it will fail to parse with a Could not parse line error. Example file:

[my_section]
my_property = And now I die.
jm commented 12 years ago

Simple fix is to just add a \n to @content. If that works for you, then I'll PR it.

TwP commented 12 years ago

Just pushed a new release (v 2.0.2) with the patch from @erebor.