fog/fog — pull request #877 by nirvdrum (2012-04-25 14:34:52+00:00)
Title: Fixed #875: Loosen multi_json version.

If I could get another set of eyes to either review the code or at least verify it works, I'd appreciate that. I ran the tests with multi_json 1.2.0 and 1.3.2 and didn't seem to have any problems.

One change introduced that I'm not wild about is we use to lazy require 'multi_json'. I now require it optimistically in 'fog/core/json.rb', but this file gets loaded everywhere, so we effectively always load multi_json. We could relax that, but I liked caching the results of the `:respond_to?` call, since introspecting on every call would incur considerably more overhead than requiring once. I'm open to suggestions if anyone has a way to blend the two approaches.