13368378d1db33f6b56e94a8e2b521622df6653b
[packages/precise/mcollective.git] / lib / mcollective / vendor / json / README-json-jruby.markdown
1 JSON-JRuby
2 ==========
3
4 JSON-JRuby is a port of Florian Frank's native
5 [`json` library](http://json.rubyforge.org/) to JRuby.
6 It aims to be a perfect drop-in replacement for `json_pure`.
7
8
9 Development version
10 ===================
11
12 The latest version is available from the
13 [Git repository](http://github.com/mernen/json-jruby/tree):
14
15     git clone git://github.com/mernen/json-jruby.git
16
17
18 Compiling
19 =========
20
21 You'll need JRuby version 1.2 or greater to build JSON-JRuby.
22 Its path must be set on the `jruby.dir` property of
23 `nbproject/project.properties` (defaults to `../jruby`).
24
25 Additionally, you'll need [Ant](http://ant.apache.org/), and
26 [Ragel](http://www.cs.queensu.ca/~thurston/ragel/) 6.4 or greater.
27
28 Then, from the folder where the sources are located, type:
29
30     ant clean jar
31
32 to clean any leftovers from previous builds and generate the `.jar` files.
33 To generate a RubyGem, specify the `gem` action rather than `jar`.