8 Commits

Author SHA1 Message Date
Jack Nagel
b754ad0d0b Update vendored OkJson 2014-02-10 13:17:16 -05:00
Jack Nagel
e445bdc717 Remove MultiJson
Closes Homebrew/homebrew#20696.
2013-06-22 21:40:26 -05:00
Jack Nagel
d8aab8cb04 Vendor OkJson directly 2013-06-22 21:34:02 -05:00
Jack Nagel
b568742428 Fix JSON smoke test
- Simplify encoding example because hashes are unordered.
 - Fix broken require
2013-01-17 22:29:20 -06:00
Jack Nagel
997f9d0075 Update multi_json to 1.5.0
This contains updates to the OkJson library that allow objects to define
to_json for serialization, and this will be used in the upcoming options
and deps work.
2013-01-17 21:39:43 -06:00
Charlie Sharpsteen
7248afc490 Hardwire multi_json backend
The `multi_json` gem dynamically selects a JSON implementation from a list of
candidates. Since we cannot control which gems are installed on a user's
machine, this patch hardwires `multi_json` to use the included copy of `ok_json`.

`ok_json` is a pure-Ruby JSON encoder/decoder that is bundled with
`multi_json`. `ok_json` may not be as fast as other choices, but speed is not
critical for our application.

Closes Homebrew/homebrew#8574.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-13 19:23:00 -08:00
Charlie Sharpsteen
0dc87a5100 Add copyright notice for MultiJson 2011-11-13 13:15:06 -08:00
Charlie Sharpsteen
1d1cd374b3 Vendor Library: multi-json 1.0.3
Multi-JSON is a library that provides encode/decode support for casting Ruby
objects to JSON strings and back again. This version of the library has been
tested against ruby versions 1.8.6 and later.

Having a JSON encoder/decoder in the toolbox helps now that the GitHub API only
returns results in JSON format.
2011-11-13 12:14:55 -08:00