sstephenson/execjs — pull request #84 by weppos (2012-05-07 13:14:48+00:00)
Title: Fix invalid MultiJson API detection (closes #82)

This commit is a patch for #82.

`#load` is defined in Kernel and inherited in every object, thus Object.respond_to?(:load) will always return true.

MultiJson switched to load/dump from decode/encode. It's safe to use a single check (to verify the presence of the `dump` method) for both encoding and decoding.