lib/soap/property.rb in mumboe-soap4r-1.5.8.2 vs lib/soap/property.rb in mumboe-soap4r-1.5.8.3

- old
+ new

@@ -68,10 +68,10 @@ COMMENT_REGEXP = Regexp.new("^(?:#.*|)$") CATDEF_REGEXP = Regexp.new("^\\[\\s*#{KEY_REGSRC}\\s*\\]$") LINE_REGEXP = Regexp.new("^#{DEF_REGSRC}$") def load(stream) key_prefix = "" - stream.each_line.each_with_index do |line, lineno| + stream.readlines.each_with_index do |line, lineno| line.sub!(/\r?\n\z/u, '') case line when COMMENT_REGEXP next when CATDEF_REGEXP