engineyard/engineyard — pull request #157 by rwz (2012-12-05 09:33:34+00:00)
Title: Using MultiJson instead of json_pure

We use engineyard gem as a dependency in our rails app and have problems with json_pure in it's dependencies.

Because our app us quite big, we use a lot of other gems, many of them depend on json gem. This produces situations, where you don't really know what implementation you're using and what exactly gets loaded when you do 'require "json"'.

Also, we had a very hard-to-track bug related to that. The problem was that we couldn't recreate it in development, cause it was using different "json", from production.

Well, anyway. Depending on multi_json seems to be a great choice for you guys, mostly because it doesn't break things in apps like ours. Also, it uses pure-ruby okjson single-file implementation if nothing else and more speedy is available, so folks on jruby or rubinius won't be left behind by this.

Somewhat relevant: https://github.com/engineyard/engineyard-serverside-adapter/pull/3