Skip to content

Commit

Permalink
Updated lib/psych.rb
Browse files Browse the repository at this point in the history
Recent modification broke postrank-uri's yaml reading, Streams take single argument.
I applied the fix locally and the bug was resolved
  • Loading branch information
noverloop committed Mar 28, 2012
1 parent 4d7c3bc commit 97b9e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/psych.rb
Expand Up @@ -200,7 +200,7 @@ def self.parser
def self.parse_stream yaml, filename = nil, &block
if block_given?
parser = Psych::Parser.new(Handlers::DocumentStream.new(&block))
parser.parse yaml, filename
parser.parse yaml
else
parser = self.parser
parser.parse yaml, filename
Expand Down

0 comments on commit 97b9e45

Please sign in to comment.