mojombo/jekyll — pull request #441 by kylev (2011-11-26 23:24:25+00:00)
Title: Work around the return-type change in Liquid 2.3.0 by optionally converting from array to string.

Sadly Liquid decided to change the return type of a supposedly stable API call from an Array to a String. This means that jekyll breaks when used with Liquid 2.3.0. To handle this change, we optionally .join if an array is returned.

I explored using .to_s, but that only works in Ruby 1.8.x. In 1.9.x, Array#to_s returns something much more like .inspect rather than .join.

I tested this patch on all combinations of Ruby 1.8.7 and 1.9.2 with Liquid 2.2.2 and 2.3.0. All pass, and this should resolve issue #422.