lib/iniparse.rb in iniparse-1.3.3 vs lib/iniparse.rb in iniparse-1.4.0
- old
+ new
@@ -5,11 +5,11 @@
require File.join(dir, 'line_collection')
require File.join(dir, 'lines')
require File.join(dir, 'parser')
module IniParse
- VERSION = '1.3.3'
+ VERSION = '1.4.0'
# A base class for IniParse errors.
class IniParseError < StandardError; end
# Raised if an error occurs parsing an INI document.
@@ -34,10 +34,10 @@
#
# ==== Returns
# IniParse::Document
#
def parse(source)
- IniParse::Parser.new(source).parse
+ IniParse::Parser.new(source.gsub("\\\n", '')).parse
end
# Opens the file at +path+, reads and parses it's contents.
#
# ==== Parameters